Out-of-bounds read in TONYC Imager
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA.
Summary
Imager versions before 1.032 for Perl have a heap out-of-bounds read in the bundled Imager::File::SGI reader via a 16-bit RLE literal run in read_rgb_16_rle. read_rgb_16_rle guards each literal run with if (count > data_left), but count is a pixel count while every 16-bit sample consumes two bytes. The copy loop reads inp[0] * 256 + inp[1] and advances two bytes per pixel, so a run with data_left / 2 < count <= data_left passes the guard yet consumes 2 * count bytes and reads past the end of the buffer. The 8-bit path is unaffected because there one pixel is one byte. Reading a crafted SGI image through Imager->read triggers the over-read before the parser rejects the malformed image, which can crash the process.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
- Fix · CNA Imager (TONYC) Fixed in 1.032
Timeline
- 2026-10-02 Threatist record created from CVE-2026-13705
- 2026-10-03 Alias added: GHSA-pmgh-mrwc-qw67
References
More TONYC vulnerabilities
- TI-2026-15600 Out-of-bounds read in TONYC Imager CVSS 3.1HIGH 7.5
- TI-2026-12218 Imager versions before 1.033 for Perl treat unsigned EXIF IFD entry counts as signed CVSS 3.1CRITICAL 9.8
- TI-2026-11557 Memory leak in TONYC Imager::File::JPEG CVSS 3.1HIGH 7.5
- TI-2026-07618 Out-of-bounds write in TONYC Imager CVSS 3.1MEDIUM 6.5
- TI-2026-07428 Out-of-bounds write in TONYC Imager::File::GIF CVSS 3.1MEDIUM 5.3
Sources
- CVE-2026-13705 · CVE Program
- CVE-2026-13705 · NVD
- FIRST EPSS
- GHSA-pmgh-mrwc-qw67 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences