# CVE-2021-3762: Path traversal in claircore

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.81%, higher than 92% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-03-03T21:41:19.000Z
- Modified: 2026-06-17T04:05:43.017Z
- Also known as: GHSA-mq47-6wwv-v79w, GO-2022-0346
- Weaknesses: CWE-22
- Assigned by: redhat

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

(As written by CVE List.)

## Affected

- quay/claircore: Affects v0.4.6 and higher, v0.5.3 and higher | Fixedin claircore v0.4.8, v0.5.5.
- github.com/quay/claircore (Go): before 0.4.8; from 1.0.0 before 1.1.0; from 0.5.0 before 0.5.5; before 1.1.0
- redhat clair: from 0.4.6 before 0.4.8; from 0.5.3 before 0.5.5
- redhat quay: 3.5.6

## Every score

- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://vulmon.com/exploitdetails?qidtp=maillist_oss_security&qid=d19fce9ede06e13dfb5630ece7f14f83> (exploit, third-party-advisory, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2000795> (issue-tracking, patch, third-party-advisory, web)
- <https://github.com/quay/claircore/pull/478> (fix, patch, third-party-advisory, web)
- <https://github.com/quay/clair/pull/1379> (patch, third-party-advisory, web)
- <https://github.com/quay/clair/pull/1380> (patch, third-party-advisory, web)
- <https://github.com/quay/claircore/commit/691f2023a1720a0579e688b69a2f4bfe1f4b7821> (fix, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3762> (advisory)
- <https://github.com/quay/claircore/commit/dff671c665141f126c072de8a744855d4916c9c7> (web)
- <https://github.com/quay/claircore/commit/ed5f52aec1c82746725e9cc23e98316eab8be25a> (web)
- <https://github.com/quay/claircore> (package)
- <https://github.com/quay/claircore/commits/v0.4.8> (web)
- <https://github.com/quay/claircore/commits/v0.5.5> (web)
- <https://github.com/quay/claircore/commits/v1.1.0> (web)
- <https://pkg.go.dev/vuln/GO-2022-0346> (web)

## Sources

- CVE List: [CVE-2021-3762](https://www.cve.org/CVERecord?id=CVE-2021-3762), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-mq47-6wwv-v79w](https://github.com/advisories/GHSA-mq47-6wwv-v79w), CC-BY-4.0, modified 2023-11-08
- Go Vulnerability Database: [GO-2022-0346](https://pkg.go.dev/vuln/GO-2022-0346), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2021-3762](https://nvd.nist.gov/vuln/detail/CVE-2021-3762), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3762 · Whole record: https://cve.day/CVE-2021-3762.json · Rebuilt by cve.day 2026-11-25T22:58:07.115Z
