Arbitrary file overwrite via newly created symlink
Published Feb 14, 2023 · Updated Feb 13, 2025
Path traversal in Git before 2.30.8 and affected later maintenance branches allows attackers to overwrite files via a crafted patch. Git apply validates paths against existing symbolic links but fails to recheck a path after the same patch creates or renames a symbolic link, so a later file entry follows that link outside the working tree. Exploitation requires a user or automated process to apply untrusted patch input; the overwrite runs with that process's file permissions, with no direct read or code-execution capability established.
Summary
What happened
Path traversal in Git before 2.30.8 and affected later maintenance branches allows attackers to overwrite files via a crafted patch. Git apply validates paths against existing symbolic links but fails to recheck a path after the same patch creates or renames a symbolic link, so a later file entry follows that link outside the working tree. Exploitation requires a user or automated process to apply untrusted patch input; the overwrite runs with that process's file permissions, with no direct read or code-execution capability established.
The record
- CVE
- CVE-2023-23946
- Published
- Feb 14, 2023
- Updated
- Feb 13, 2025
- Vendor
- Git
- Product
- Git
- Classifications
- CWE-22, T1204.002
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- Feb 14, 2023CVE publishedPublication date reported by the CVE source.
- Feb 13, 2025Record 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=< 2.30.8
- Affected versionversion=>= 2.31.0, < 2.31.7
- Affected versionversion=>= 2.32.0, < 2.32.6
- Affected versionversion=>= 2.33.0, < 2.33.7
- Affected versionversion=>= 2.34.0, < 2.34.7
- Affected versionversion=>= 2.35.0, < 2.35.7
- Affected versionversion=>= 2.36.0, < 2.36.5
- Affected versionversion=>= 2.37.0, < 2.37.6
- Affected versionversion=>= 2.38.0, < 2.38.4
- Affected versionversion=>= 2.39.0, < 2.39.2
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
- CVE-2023-23946 POC Exploitproof of concept · unverified
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