Skip to main content
CVE-2026-13705VulnerabilityPublished Updated

Libimager perl: Imager versions before 1.032 for Perl have a heap out-of-bounds read in the bundled Imager::File::SGI

Affects libimager-perlSource GCVE Database

0
Compare
Authoritative record:CVE-2026-13705· High 7.1

Not known to be exploited · CVSS 7.1 High.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 3.1 base score
7.1High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.1% chance of exploitation in 30 days – higher than 6% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 6 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10libimager-perlpkg:deb/ubuntu/libimager-perl?arch=source&distro=stonkingOther threatsAffected
  • 1.029+dfsg-1 – 1.035+dfsg-1
4 affected builds
Fixed in–
Ubuntu 26.04 LTSlibimager-perlpkg:deb/ubuntu/libimager-perl?arch=source&distro=resoluteOther threatsAffected
  • =1.027+dfsg-1
  • =1.029+dfsg-1
Fixed in–
Ubuntu 25.10libimager-perlpkg:deb/ubuntu/libimager-perl?arch=source&distro=questingOther threatsAffected
  • =1.027+dfsg-1
Fixed in–
Ubuntu 24.04 LTSlibimager-perlpkg:deb/ubuntu/libimager-perl?arch=source&distro=nobleOther threatsAffected
  • 1.019+dfsg-2 – 1.023+dfsg-1build2
6 affected builds
Fixed in–
Ubuntu 22.04 LTSlibimager-perlpkg:deb/ubuntu/libimager-perl?arch=source&distro=jammyOther threatsAffected
  • =1.012+dfsg-1build1
  • =1.012+dfsg-2
  • =1.012+dfsg-2build1
Fixed in–
Ubuntu 20.04 LTSlibimager-perlpkg:deb/ubuntu/libimager-perl?arch=source&distro=focalOther threatsAffected
  • =1.011+dfsg-1
  • =1.011+dfsg-1build1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

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.

References

Community reviews

Loading reviews…