UBUNTU-CVE-2026-13705

Source
https://ubuntu.com/security/CVE-2026-13705
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13705.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-13705
Upstream
Published
2026-07-06T13:16:00Z
Modified
2026-07-09T17:15:27Z
Severity
  • 7.1 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H CVSS Calculator
  • Ubuntu - medium
Summary
[none]
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.

References

Affected packages

Ubuntu:16.04:LTS
libimager-perl

Package

Name
libimager-perl
Purl
pkg:deb/ubuntu/libimager-perl?arch=source&distro=xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.003+dfsg-1
1.004+dfsg-1
1.004+dfsg-1build1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libimager-perl",
            "binary_version": "1.004+dfsg-1build1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13705.json"
Ubuntu:18.04:LTS
libimager-perl

Package

Name
libimager-perl
Purl
pkg:deb/ubuntu/libimager-perl?arch=source&distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.005+dfsg-2build1
1.006+dfsg-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libimager-perl",
            "binary_version": "1.006+dfsg-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13705.json"
Ubuntu:20.04:LTS
libimager-perl

Package

Name
libimager-perl
Purl
pkg:deb/ubuntu/libimager-perl?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.011+dfsg-1
1.011+dfsg-1build1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libimager-perl",
            "binary_version": "1.011+dfsg-1build1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13705.json"
Ubuntu:22.04:LTS
libimager-perl

Package

Name
libimager-perl
Purl
pkg:deb/ubuntu/libimager-perl?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.012+dfsg-1build1
1.012+dfsg-2
1.012+dfsg-2build1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libimager-perl",
            "binary_version": "1.012+dfsg-2build1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13705.json"
Ubuntu:24.04:LTS
libimager-perl

Package

Name
libimager-perl
Purl
pkg:deb/ubuntu/libimager-perl?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

1.*
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.023+dfsg-1build2"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13705.json"
Ubuntu:25.10
libimager-perl

Package

Name
libimager-perl
Purl
pkg:deb/ubuntu/libimager-perl?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.027+dfsg-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libimager-perl",
            "binary_version": "1.027+dfsg-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13705.json"
Ubuntu:26.04:LTS
libimager-perl

Package

Name
libimager-perl
Purl
pkg:deb/ubuntu/libimager-perl?arch=source&distro=resolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.027+dfsg-1
1.029+dfsg-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libimager-perl",
            "binary_version": "1.029+dfsg-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13705.json"