{"id":"CVE-2022-25856","aliases":["CVE-2022-25856","GHSA-qpgx-64h2-gc3c","GO-2022-0492","SNYK-GOLANG-GITHUBCOMARGOPROJARGOEVENTSSENSORSARTIFACTS-2864522"],"related":[],"kind":"vulnerability","state":"published","title":"Directory Traversal","summary":"The package github.com/argoproj/argo-events/sensors/artifacts before 1.7.1 are vulnerable to Directory Traversal in the (g *GitArtifactReader).Read() API in git.go. This could allow arbitrary file reads if the GitArtifactReader is provided a pathname containing a symbolic link or an implicit directory name such as ...","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The package github.com/argoproj/argo-events/sensors/artifacts before 1.7.1 are vulnerable to Directory Traversal in the (g *GitArtifactReader).Read() API in git.go. This could allow arbitrary file reads if the GitArtifactReader is provided a pathname containing a symbolic link or an implicit directory name such as ...","source":"cvelist"},{"lang":"en","text":"### Impact\nA path traversal issue was found in the `(g *GitArtifactReader).Read() API. Read()` calls into `(g *GitArtifactReader).readFromRepository()` that opens and reads the file that contains the trigger resource definition:\n\n```go\nfunc (g *GitArtifactReader) readFromRepository(r *git.Repository, dir string)\n```\n\nNo checks are made on this file at read time, which could lead an attacker to read files anywhere on the system. This could be achieved by either using symbolic links, or putting `../` in the path.\n\n### Patches\nA patch for this vulnerability has been released in the following Argo Events version:\n\nv1.7.1\n\n### Credits\nDisclosed by [Ada Logics](https://adalogics.com/) in a security audit sponsored by CNCF and facilitated by OSTIF.\n\n### For more information\nOpen an issue in the [Argo Events issue tracker](https://github.com/argoproj/argo-events/issues) or [discussions](https://github.com/argoproj/argo-events/discussions)\nJoin us on [Slack](https://argoproj.github.io/community/join-slack) in channel #argo-events","format":"markdown","source":"ghsa"},{"lang":"en","text":"GitArtifactReader is vulnerable to directory traversal attacks.\n\nThe GitArtifactReader.Read function reads and returns the contents of a Git repository file. A maliciously crafted repository can exploit this to cause Read to read from arbitrary files on the filesystem.","format":"markdown","source":"go"},{"lang":"es","text":"El paquete github.com/argoproj/argo-events/sensors/artifacts versiones anteriores a 1.7.1, es vulnerable a un Salto de Directorio en la API (g *GitArtifactReader).Read() en git.go. Esto podría permitir la lectura arbitraria de archivos si al GitArtifactReader le es proporcionada una ruta que contenga un enlace simbólico o un nombre de directorio implícito como ...","source":"nvd"}],"published":"2022-06-17T01:03:47.000Z","modified":"2026-07-08T06:50:01.357Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-22","CWE-59"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"1.7.1","status":"affected"}],"product":"github.com/argoproj/argo-events/sensors/artifacts","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.7.1"}],"ecosystem":"Go","package":"github.com/argoproj/argo-events","purl":"pkg:golang/github.com/argoproj/argo-events","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.7.1"}],"ecosystem":"Go","package":"github.com/argoproj/argo-events","purl":"pkg:golang/github.com/argoproj/argo-events","source":"go"},{"ranges":[{"status":"affected","fixed":"1.7.1"}],"vendor":"argo_events_project","product":"argo_events","cpe":"cpe:2.3:a:argo_events_project:argo_events:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMARGOPROJARGOEVENTSSENSORSARTIFACTS-2864522","tags":["exploit","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/argoproj/argo-events/commit/d0f66dbce78bc31923ca057b20fc722aa24ca961","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/argoproj/argo-events/issues/1947","tags":["exploit","issue-tracking","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/argoproj/argo-events/security/advisories/GHSA-qpgx-64h2-gc3c","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25856","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/argoproj/argo-events/pull/1965","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/argoproj/argo-events","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0492","tags":["web"],"sources":["ghsa"]}],"credits":["Derek Wang"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-25856","url":"https://www.cve.org/CVERecord?id=CVE-2022-25856","licence":"CVE Terms of Use","modified":"2024-09-17T04:24:21.034Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qpgx-64h2-gc3c","url":"https://github.com/advisories/GHSA-qpgx-64h2-gc3c","licence":"CC-BY-4.0","modified":"2026-07-08T06:50:01.357Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0492","url":"https://pkg.go.dev/vuln/GO-2022-0492","licence":"CC-BY-4.0","modified":"2026-07-08T06:50:01.357Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-25856","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25856","licence":"Public domain","modified":"2026-06-17T04:34:23.997Z"}],"updatedAt":"2026-11-25T22:58:12.449Z","epss":{"score":0.01939,"percentile":0.80727,"date":"2026-12-01T12:00:22.000Z"}}