Arbitrary file overwrite via tar path traversal
Published Mar 3, 2022 · Updated Aug 3, 2024
Path traversal in affected Red Hat ClairCore releases allows attackers to overwrite arbitrary files via a crafted container image. The RPM package scanner joins untrusted tar member and link names to its extraction root without forcing them beneath that root, so repeated parent-directory elements escape the scan directory. Exploitation requires an embedding service to scan an attacker-controlled image; a successful write can replace scanner-host files and lead to code execution.
Summary
What happened
Path traversal in affected Red Hat ClairCore releases allows attackers to overwrite arbitrary files via a crafted container image. The RPM package scanner joins untrusted tar member and link names to its extraction root without forcing them beneath that root, so repeated parent-directory elements escape the scan directory. Exploitation requires an embedding service to scan an attacker-controlled image; a successful write can replace scanner-host files and lead to code execution.
The record
- CVE
- CVE-2021-3762
- Published
- Mar 3, 2022
- Updated
- Aug 3, 2024
- Vendor
- Red Hat
- Product
- ClairCore
- Classifications
- CWE-22
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Mar 3, 2022CVE publishedPublication date reported by the CVE source.
- Aug 3, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=Affects v0.4.6 and higher, v0.5.3 and higher | Fixedin claircore v0.4.8, v0.5.5.
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo