ubuntu-cve-2026-13705
Vulnerability from osv_ubuntu
Published
2026-07-06 13:16
Modified
2026-07-09 15:15
Summary
Details
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.
Severity
7.1 (High)
N/A (UNKNOWN)
References
{
"affected": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libimager-perl",
"binary_version": "1.004+dfsg-1build1"
}
]
},
"package": {
"ecosystem": "Ubuntu:16.04:LTS",
"name": "libimager-perl",
"purl": "pkg:deb/ubuntu/libimager-perl@1.004+dfsg-1build1?arch=source\u0026distro=xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.003+dfsg-1",
"1.004+dfsg-1",
"1.004+dfsg-1build1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libimager-perl",
"binary_version": "1.006+dfsg-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "libimager-perl",
"purl": "pkg:deb/ubuntu/libimager-perl@1.006+dfsg-1?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.005+dfsg-2build1",
"1.006+dfsg-1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libimager-perl",
"binary_version": "1.011+dfsg-1build1"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "libimager-perl",
"purl": "pkg:deb/ubuntu/libimager-perl@1.011+dfsg-1build1?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.011+dfsg-1",
"1.011+dfsg-1build1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libimager-perl",
"binary_version": "1.012+dfsg-2build1"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "libimager-perl",
"purl": "pkg:deb/ubuntu/libimager-perl@1.012+dfsg-2build1?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.012+dfsg-1build1",
"1.012+dfsg-2",
"1.012+dfsg-2build1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libimager-perl",
"binary_version": "1.023+dfsg-1build2"
}
]
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "libimager-perl",
"purl": "pkg:deb/ubuntu/libimager-perl@1.023+dfsg-1build2?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.019+dfsg-2",
"1.020+dfsg-1",
"1.022+dfsg-1",
"1.023+dfsg-1",
"1.023+dfsg-1build1",
"1.023+dfsg-1build2"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libimager-perl",
"binary_version": "1.027+dfsg-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:25.10",
"name": "libimager-perl",
"purl": "pkg:deb/ubuntu/libimager-perl@1.027+dfsg-1?arch=source\u0026distro=questing"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.027+dfsg-1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libimager-perl",
"binary_version": "1.029+dfsg-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:26.04:LTS",
"name": "libimager-perl",
"purl": "pkg:deb/ubuntu/libimager-perl@1.029+dfsg-1?arch=source\u0026distro=resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.027+dfsg-1",
"1.029+dfsg-1"
]
}
],
"aliases": [],
"details": "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 \u003e 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 \u003c count \u003c= 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-\u003eread triggers the over-read before the parser rejects the malformed image, which can crash the process.",
"id": "UBUNTU-CVE-2026-13705",
"modified": "2026-07-09T15:15:45Z",
"published": "2026-07-06T13:16:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2026-13705"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2026-13705"
},
{
"type": "REPORT",
"url": "https://lists.security.metacpan.org/cve-announce/msg/41572386/"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2026-13705"
]
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
Loading…
Loading…