CVE-2021-3762 json
Path traversal in claircore
published 2022-03-03 4 y ago modified 2026-06-17 4 mo ago also GHSA-mq47-6wwv-v79w , GO-2022-0346 , EUVD-2022-1483
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.8%
- EPSS 4.8% chance of exploitation in 30 days, percentile 92%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/quay/claircore 0.4.8, 0.5.5, 1.1.0
- redhat clair 0.4.8, 0.5.5
- github.com/quay/claircore@691f202 commit
- github.com/quay/claircore@dff671c commit
- github.com/quay/claircore@ed5f52a commit
- github.com/quay/claircore#478 pull request
- github.com/quay/clair#1379 pull request
- github.com/quay/clair#1380 pull request
- bugzilla.redhat.com/show_bug.cgi?id=2000795 advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-3762 updated cvss 7.5
quay/claircore: directory traversal when scanning crafted container image layer allows for arbitrary file write
-
Red Hat Quay v3 quay/clair-rhel8 v3.5.7-8fixed: vendor fix RHSA-2021:3665
-
Red Hat Quay v3 quay/quay-rhel8 v3.5.7-8, quay/quay-builder-rhel8 v3.5.7-8, quay/quay-operator-rhel8 v3.5.7-6, quay/quay-operator-bundle v3.5.7-6, quay/quay-bridge-operator-bundle v3.5.7-7, quay/quay-bridge-operator-rhel8 v3.5.7-11, +3 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
4.81% chance of exploitation in the next 30 days, higher than 92% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- vulmon.com https://vulmon.com/exploitdetails?qidtp=maillist_oss_security&qid=d19fce9ede06e13dfb5630ece7f14f83 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/quay/claircore | <0.4.8 >=1.0.0, <1.1.0 >=0.5.0, <0.5.5 <1.1.0 |
0.4.8 1.1.0 0.5.5 |
Affected products
- n/a quay/claircore
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/quay/claircore/pull/478
web, patch, third-party-advisory
-
github.com
/quay/clair/pull/1379
web, patch, third-party-advisory
-
github.com
/quay/clair/pull/1380
web, patch, third-party-advisory
-
github.com
/quay/claircore/commit/691f2023a1720a0579e688b69a2f4bfe1f4b7821
web, patch, third-party-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=2000795
web, issue-tracking, patch, third-party-advisory
-
github.com
/quay/claircore/commit/dff671c665141f126c072de8a744855d4916c9c7
web
-
github.com
/quay/claircore/commit/ed5f52aec1c82746725e9cc23e98316eab8be25a
web
-
vulmon.com
/exploitdetails?qidtp=maillist_oss_security&qid=d19fce9ede06e13dfb5630ece7f14f83
web, exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-3762
advisory
-
github.com
/quay/claircore
package
-
github.com
/quay/claircore/commits/v0.4.8
web
-
github.com
/quay/claircore/commits/v0.5.5
web
-
github.com
/quay/claircore/commits/v1.1.0
web
-
pkg.go.dev
/vuln/GO-2022-0346
web
Sources
- CVE List CVE-2021-3762
- GitHub Advisory GHSA-mq47-6wwv-v79w
- NVD CVE-2021-3762
- OSV GO-2022-0346
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.