{"schemaVersion":3,"id":"CVE-2021-3762","aliases":["GHSA-mq47-6wwv-v79w","GO-2022-0346"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2022-03-03T21:41:19.000Z","modified":"2024-08-03T17:09:08.890Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.04815,"percentile":0.91874,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.04815},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.04815,"percentile":0.91874}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.04815,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.04815,"percentile":0.91874}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_6F30C999B1CE3385","name":"Exploit Reference (vulmon.com)","source":"reference","url":"https://vulmon.com/exploitdetails?qidtp=maillist_oss_security&qid=d19fce9ede06e13dfb5630ece7f14f83","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"github.com/quay","product":"claircore","name":"github.com/quay/claircore","label":"claircore","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/quay/claircore","purlType":"golang","versions":[{"text":"< 0.4.8","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.0.0, < 1.1.0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 0.5.0, < 0.5.5","noFixRecorded":false,"fixedIn":null},{"text":"< 1.1.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.4.8 | ≥ 1.0.0, < 1.1.0 | ≥ 0.5.0, < 0.5.5 | < 1.1.0","eol":null,"hubHref":null},{"vendor":"redhat","product":"clair","name":"clair","label":"clair","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.4.6, < 0.4.8","noFixRecorded":false,"fixedIn":null},{"text":"≥ 0.5.3, < 0.5.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.4.6, < 0.4.8 | ≥ 0.5.3, < 0.5.5","eol":null,"hubHref":"/vendor/redhat/clair"},{"vendor":"redhat","product":"quay","name":"quay","label":"quay","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"3.5.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"3.5.6","eol":null,"hubHref":"/vendor/redhat/quay"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2000795","label":"bugzilla.redhat.com/show_bug.cgi?id=2000795","hostname":"bugzilla.redhat.com","tags":["X Refsource MISC","WEB","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://github.com/quay/claircore/pull/478","label":"github.com/quay/claircore/pull/478","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Patch","Third Party Advisory"]},{"url":"https://github.com/quay/clair/pull/1379","label":"github.com/quay/clair/pull/1379","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://github.com/quay/clair/pull/1380","label":"github.com/quay/clair/pull/1380","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://github.com/quay/claircore/commit/691f2023a1720a0579e688b69a2f4bfe1f4b7821","label":"github.com/quay/claircore/commit/691f2023a1720a0579e688b69a2f4bfe1f4b7821","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Patch","Third Party Advisory"]},{"url":"https://vulmon.com/exploitdetails?qidtp=maillist_oss_security&qid=d19fce9ede06e13dfb5630ece7f14f83","label":"vulmon.com/exploitdetails?qidtp=maillist_oss_security&qid=d19fce9ede06e13dfb5630ece7f14f83","hostname":"vulmon.com","tags":["X Refsource MISC","WEB","Exploit","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3762","label":"nvd.nist.gov/vuln/detail/CVE-2021-3762","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/quay/claircore/commit/dff671c665141f126c072de8a744855d4916c9c7","label":"github.com/quay/claircore/commit/dff671c665141f126c072de8a744855d4916c9c7","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/quay/claircore/commit/ed5f52aec1c82746725e9cc23e98316eab8be25a","label":"github.com/quay/claircore/commit/ed5f52aec1c82746725e9cc23e98316eab8be25a","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/quay/claircore","label":"github.com/quay/claircore","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/quay/claircore/commits/v0.4.8","label":"github.com/quay/claircore/commits/v0.4.8","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/quay/claircore/commits/v0.5.5","label":"github.com/quay/claircore/commits/v0.5.5","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/quay/claircore/commits/v1.1.0","label":"github.com/quay/claircore/commits/v1.1.0","hostname":"github.com","tags":["WEB"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0346","label":"pkg.go.dev/vuln/GO-2022-0346","hostname":"pkg.go.dev","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-03-03T21:41:19.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T17:09:08.890Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T19:59:04.121Z","stale":false,"partial":false}}