Out-of-bounds read via empty ZIP filename
Published Jun 8, 2024 · Updated Mar 14, 2025
Out-of-bounds read in libarchive before 3.7.4 allows attackers to read memory via a crafted ZIP archive processed with mac-ext enabled. The slurp_central_directory function reads name[tmp_length - 1] without first ensuring that the ZIP entry filename length is nonzero. The archive must contain an empty filename and be read with mac-ext; the upstream proof of concept observes the invalid read but reports no sanitizer-detected crash.
Summary
What happened
Out-of-bounds read in libarchive before 3.7.4 allows attackers to read memory via a crafted ZIP archive processed with mac-ext enabled. The slurp_central_directory function reads name[tmp_length - 1] without first ensuring that the ZIP entry filename length is nonzero. The archive must contain an empty filename and be read with mac-ext; the upstream proof of concept observes the invalid read but reports no sanitizer-detected crash.
The record
- CVE
- CVE-2024-37407
- Published
- Jun 8, 2024
- Updated
- Mar 14, 2025
- Vendor
- libarchive
- Product
- libarchive
- Classifications
- CWE-125
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jun 8, 2024CVE publishedPublication date reported by the CVE source.
- Mar 14, 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=0 <=3.7.4
What conditions does exploitation require?
What is affected?
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 malformed ZIP proof of conceptproof 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