Memory corruption via undersized Analyze header
Published Mar 15, 2024 · Updated Aug 27, 2024
Heap-based buffer overflow in GREYC CImg before 3.3.3 allows attackers to corrupt memory via a crafted Analyze/NIfTI file. The _load_analyze function accepts a header_size below four, allocates that undersized heap buffer, then subtracts four and passes the underflowed length to cimg::fread, which writes controlled file bytes out of bounds. A host application must invoke the loader on the crafted file; the resulting memory corruption can crash that process or enable code execution in its security context.
Summary
What happened
Heap-based buffer overflow in GREYC CImg before 3.3.3 allows attackers to corrupt memory via a crafted Analyze/NIfTI file. The _load_analyze function accepts a header_size below four, allocates that undersized heap buffer, then subtracts four and passes the underflowed length to cimg::fread, which writes controlled file bytes out of bounds. A host application must invoke the loader on the crafted file; the resulting memory corruption can crash that process or enable code execution in its security context.
The record
- CVE
- CVE-2024-26540
- Published
- Mar 15, 2024
- Updated
- Aug 27, 2024
- Vendor
- GREYC
- Product
- CImg
- Classifications
- CWE-122, T1203
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- Mar 15, 2024CVE publishedPublication date reported by the CVE source.
- Aug 27, 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 <3.3.3
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
- CImg _load_analyze proof-of-concept fileproof 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