Code execution via signed size comparison
Published Jan 9, 2024 · Updated Jun 17, 2025
Integer overflow in FreeImage 3.18.0 allows context-dependent attackers to disclose memory, crash a process, or execute code. _MemoryReadProc casts an unsigned read size above 0x80000000 to signed long, bypasses its remaining-byte check, and passes the oversized value to memcpy. A consuming application must load a crafted BMP through the memory-reading path; exploitation can read beyond source data or overwrite the destination heap buffer.
Summary
What happened
Integer overflow in FreeImage 3.18.0 allows context-dependent attackers to disclose memory, crash a process, or execute code. _MemoryReadProc casts an unsigned read size above 0x80000000 to signed long, bypasses its remaining-byte check, and passes the oversized value to memcpy. A consuming application must load a crafted BMP through the memory-reading path; exploitation can read beyond source data or overwrite the destination heap buffer.
The record
- CVE
- CVE-2023-47992
- Published
- Jan 9, 2024
- Updated
- Jun 17, 2025
- Vendor
- Unknown vendor
- Product
- Unknown product
- Classifications
- CWE-190, T1203
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jan 9, 2024CVE publishedPublication date reported by the CVE source.
- Jun 17, 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?
What conditions does exploitation require?
What is affected?
Affected products and versions are unavailable in this record.
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
- FreeImage CVE-2023-47992 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