Local code execution via freed path pointer
Published Apr 30, 2020 · Updated Aug 4, 2024
Use-after-free in GNU C Library glob() 2.14 through 2.31 allows local users to execute code through a crafted tilde-expanded path. In posix/glob.c, end_name points inside the heap-allocated dirname buffer, but tilde expansion frees dirname before copying from end_name into the replacement path. Exploitation requires a path large enough to force heap allocation and a program that processes the attacker-controlled pattern with glob().
Summary
What happened
Use-after-free in GNU C Library glob() 2.14 through 2.31 allows local users to execute code through a crafted tilde-expanded path. In posix/glob.c, end_name points inside the heap-allocated dirname buffer, but tilde expansion frees dirname before copying from end_name into the replacement path. Exploitation requires a path large enough to force heap allocation and a program that processes the attacker-controlled pattern with glob().
The record
- CVE
- CVE-2020-1752
- Published
- Apr 30, 2020
- Updated
- Aug 4, 2024
- Vendor
- GNU Project
- Product
- GNU C Library
- Classifications
- CWE-416, T1203
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- Apr 30, 2020CVE publishedPublication date reported by the CVE source.
- Aug 4, 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=Affected: versions 2.14 and later
- Affected versionversion=Fixed: version 2.32
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.
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