CVE-2021-3762
Path traversal in claircore
Also known as GHSA-mq47-6wwv-v79w, GO-2022-0346
Mitigation
- Upgrade github.com/quay/claircore to one of 0.4.8, 1.1.0, 0.5.5 (or later in the same release line).
Who should check
- Projects that depend on Go package github.com/quay/claircore (< 0.4.8)
- Anyone running quay/claircore Affects v0.4.6 and higher, v0.5.3 and higher | Fixedin claircore v0.4.8, v0.5.5.
Vulnerability facts
- Affected
- github.com/quay/claircore < 0.4.8
- Fixed in
- 0.4.8, 1.1.0, 0.5.5
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 9.8 (v3.1, NVD)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 4.81% chance of exploitation in 30 days (percentile 93, 2026-11-26)
- CWE
- CWE-22
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/quay/claircore | < 0.4.8 | 0.4.8, 1.1.0, 0.5.5 | osv |
| quay/claircore | Affects v0.4.6 and higher, v0.5.3 and higher | Fixedin claircore v0.4.8, v0.5.5. | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2021-3762. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2021-3762.md Affected: github.com/quay/claircore < 0.4.8 Fixed in: 0.4.8, 1.1.0, 0.5.5 Steps: 1. Search this machine and project for github.com/quay/claircore (Go), quay/claircore: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- 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://github.com/quay/claircore/commit/dff671c665141f126c072de8a744855d4916c9c7
- https://github.com/quay/claircore/commit/ed5f52aec1c82746725e9cc23e98316eab8be25a
Exploits and PoCs
FAQ
Is CVE-2021-3762 being exploited?
There is no confirmed exploitation: CVE-2021-3762 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 4.81% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2021-3762?
Critical: CVSS 9.8 (v3.1, scored by NVD). Remote, no login needed.
Which versions are affected by CVE-2021-3762?
github.com/quay/claircore < 0.4.8.
Is there a fix for CVE-2021-3762?
Yes. Fixed in 0.4.8, 1.1.0, 0.5.5. Upgrade github.com/quay/claircore to one of 0.4.8, 1.1.0, 0.5.5 (or later in the same release line).
How do I check if I'm affected by CVE-2021-3762?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.