Memory corruption via undersized lossless JPEG buffer
Published Sep 25, 2023 · Updated Nov 4, 2025
Out-of-bounds write in Accusoft ImageGear 20.1 allows remote attackers to corrupt memory by supplying a malformed lossless JPEG file. In allocate_buffer_for_jpeg_decoding, an SOF3 frame with a zero x_image value produces a one-byte heap allocation that is later written through an int16_t pointer. The host application must pass the crafted file to ImageGear's JPEG loader; the demonstrated consequence is heap corruption and process termination.
Summary
What happened
Out-of-bounds write in Accusoft ImageGear 20.1 allows remote attackers to corrupt memory by supplying a malformed lossless JPEG file. In allocate_buffer_for_jpeg_decoding, an SOF3 frame with a zero x_image value produces a one-byte heap allocation that is later written through an int16_t pointer. The host application must pass the crafted file to ImageGear's JPEG loader; the demonstrated consequence is heap corruption and process termination.
The record
- CVE
- CVE-2023-40163
- Published
- Sep 25, 2023
- Updated
- Nov 4, 2025
- Vendor
- Accusoft
- Product
- ImageGear
- Classifications
- CWE-787, T1203
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Sep 25, 2023CVE publishedPublication date reported by the CVE source.
- Nov 4, 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=20.1
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
- Malformed SOF3 JPEG 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