CVE-2021-3762
JSON

9.8critical

Path traversal in claircore

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
4.81% (higher than 92% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
redhat
Also known as
GHSA-mq47-6wwv-v79wGO-2022-0346

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

Product or packageVersionsReported by
quay/claircoreAffects v0.4.6 and higher, v0.5.3 and higher | Fixedin claircore v0.4.8, v0.5.5.CVE List
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.0GitHub Advisory Database, Go Vulnerability Database
redhat clairfrom 0.4.6 before 0.4.8, from 0.5.3 before 0.5.5NVD
redhat quay3.5.6NVD

All scores

GitHub7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

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.

Go Vulnerability Database

A maliciously crafted RPM file can cause the Scanner.Scan function to write files with arbitrary contents to arbitrary locations on the local filestem.

NVD (es)

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

References

https://bugzilla.redhat.com/show_bug.cgi?id=2000795issue-tracking, patch, third-party-advisory, web
https://github.com/quay/claircore/pull/478fix, patch, third-party-advisory, web
https://github.com/quay/clair/pull/1379patch, third-party-advisory, web
https://github.com/quay/clair/pull/1380patch, third-party-advisory, web
https://github.com/quay/claircore/commit/691f2023a1720a0579e688b69a2f4bfe1f4b7821fix, patch, third-party-advisory, web
https://vulmon.com/exploitdetails?qidtp=maillist_oss_security&qid=d19fce9ede06e13dfb5630ece7f14f83exploit, third-party-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2021-3762advisory
https://github.com/quay/claircore/commit/dff671c665141f126c072de8a744855d4916c9c7web
https://github.com/quay/claircore/commit/ed5f52aec1c82746725e9cc23e98316eab8be25aweb
https://github.com/quay/claircorepackage
https://github.com/quay/claircore/commits/v0.4.8web
https://github.com/quay/claircore/commits/v0.5.5web

Sources

SourceRecordLicence
CVE ListCVE-2021-3762 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-mq47-6wwv-v79w changed 2023-11-08CC-BY-4.0
Go Vulnerability DatabaseGO-2022-0346 changed 2024-05-20CC-BY-4.0
NVDCVE-2021-3762 changed 2026-06-17Public domain