{"id":"CVE-2021-3762","aliases":["CVE-2021-3762","GHSA-mq47-6wwv-v79w","GO-2022-0346"],"related":[],"kind":"vulnerability","state":"published","title":"Path traversal in claircore","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"A maliciously crafted RPM file can cause the Scanner.Scan function to write files with arbitrary contents to arbitrary locations on the local filestem.","format":"markdown","source":"go"},{"lang":"es","text":"Se ha encontrado una vulnerabilidad de salto de directorio en el motor ClairCore de Clair. Un atacante puede explotar esto al suministrar una imagen de contenedor diseñada que, cuando es escaneada por Clair, permite una escritura de archivos arbitrarios en el sistema de archivos, permitiendo potencialmente una ejecución de código remota","source":"nvd"}],"published":"2022-03-03T21:41:19.000Z","modified":"2026-06-17T04:05:43.017Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"Affects v0.4.6 and higher, v0.5.3 and higher | Fixedin claircore v0.4.8, v0.5.5.","status":"affected"}],"product":"quay/claircore","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.4.8"}],"ecosystem":"Go","package":"github.com/quay/claircore","purl":"pkg:golang/github.com/quay/claircore","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.0.0","status":"affected","fixed":"1.1.0"}],"ecosystem":"Go","package":"github.com/quay/claircore","purl":"pkg:golang/github.com/quay/claircore","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.5.0","status":"affected","fixed":"0.5.5"}],"ecosystem":"Go","package":"github.com/quay/claircore","purl":"pkg:golang/github.com/quay/claircore","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.1.0"}],"ecosystem":"Go","package":"github.com/quay/claircore","purl":"pkg:golang/github.com/quay/claircore","source":"go"},{"ranges":[{"status":"affected","introduced":"0.4.6","fixed":"0.4.8"},{"status":"affected","introduced":"0.5.3","fixed":"0.5.5"}],"vendor":"redhat","product":"clair","cpe":"cpe:2.3:a:redhat:clair:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"3.5.6"}],"vendor":"redhat","product":"quay","cpe":"cpe:2.3:a:redhat:quay:3.5.6:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2000795","tags":["issue-tracking","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/quay/claircore/pull/478","tags":["fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/quay/clair/pull/1379","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/quay/clair/pull/1380","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/quay/claircore/commit/691f2023a1720a0579e688b69a2f4bfe1f4b7821","tags":["fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://vulmon.com/exploitdetails?qidtp=maillist_oss_security&qid=d19fce9ede06e13dfb5630ece7f14f83","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3762","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/quay/claircore/commit/dff671c665141f126c072de8a744855d4916c9c7","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/quay/claircore/commit/ed5f52aec1c82746725e9cc23e98316eab8be25a","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/quay/claircore","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/quay/claircore/commits/v0.4.8","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/quay/claircore/commits/v0.5.5","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/quay/claircore/commits/v1.1.0","tags":["web"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0346","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"redhat","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-3762","url":"https://www.cve.org/CVERecord?id=CVE-2021-3762","licence":"CVE Terms of Use","modified":"2024-08-03T17:09:08.890Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mq47-6wwv-v79w","url":"https://github.com/advisories/GHSA-mq47-6wwv-v79w","licence":"CC-BY-4.0","modified":"2023-11-08T04:06:18.944Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0346","url":"https://pkg.go.dev/vuln/GO-2022-0346","licence":"CC-BY-4.0","modified":"2024-05-20T16:03:47.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-3762","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3762","licence":"Public domain","modified":"2026-06-17T04:05:43.017Z"}],"updatedAt":"2026-11-25T22:58:07.115Z","epss":{"score":0.04815,"percentile":0.92165,"date":"2026-12-01T12:00:22.000Z"}}