CVE-2026-13705: 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

Published Jul 6, 2026
·
Updated

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 readrgb16rle.

readrgb16rle guards each literal run with if (count > dataleft), 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 dataleft / 2 < count <= dataleft 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.

Affected Software

1 affected component
Imager Imager (Perl)<1.032

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Imager (Perl) to a version that resolves this vulnerability.

    Fixed in 1.032

Event History

Jul 6, 2026
CVE Published
via MITRE·12:03 PM
Data Sourced
via MITRE·12:03 PM
RemedyDescriptionWeakness
Data Sourced
via NVD·01:16 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-13705?

CVE-2026-13705 has a severity rating of high, with a CVSS score of 7.1.

2

How do I fix CVE-2026-13705?

To mitigate CVE-2026-13705, upgrade to Imager version 1.032 or later.

3

What causes the vulnerability in CVE-2026-13705?

CVE-2026-13705 is caused by a heap out-of-bounds read in the bundled Imager::File::SGI reader due to improper handling of 16-bit RLE literal runs.

4

Is CVE-2026-13705 a critical vulnerability?

While CVE-2026-13705 is classified as high severity, it is not considered critical.

5

What are the potential impacts of CVE-2026-13705?

CVE-2026-13705 could lead to information disclosure due to the heap out-of-bounds read.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203
CVE-2026-13705 - 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 - SecAlerts