Host file overwrite via unchecked archive links
Published Jan 25, 2021 · Updated Aug 3, 2024
Path traversal in ORAS CLI 0.4.0 through 0.8.1 allows remote attackers to overwrite host files via a crafted registry artifact. The pkg/content extractTarDirectory routine follows tar symbolic and hard-link targets without confirming that resolved paths remain beneath the chosen output directory. Exploitation requires a user to run oras pull against the malicious artifact, and writes inherit that user's filesystem permissions.
Summary
What happened
Path traversal in ORAS CLI 0.4.0 through 0.8.1 allows remote attackers to overwrite host files via a crafted registry artifact. The pkg/content extractTarDirectory routine follows tar symbolic and hard-link targets without confirming that resolved paths remain beneath the chosen output directory. Exploitation requires a user to run oras pull against the malicious artifact, and writes inherit that user's filesystem permissions.
The record
- CVE
- CVE-2021-21272
- Published
- Jan 25, 2021
- Updated
- Aug 3, 2024
- Vendor
- ORAS Project
- Product
- ORAS CLI
- Classifications
- CWE-22, CWE-59, CAPEC-126, CAPEC-132, T1204.002
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Jan 25, 2021CVE 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=>= 0.4.0, < 0.9.0
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
- Upstream symbolic-link and hard-link regression exploitproof of concept · demonstrated
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