UBUNTU-CVE-2026-59942

Source
https://ubuntu.com/security/CVE-2026-59942
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-59942.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-59942
Upstream
Published
2026-07-28T21:17:00Z
Modified
2026-08-06T03:10:22.699583627Z
Severity
  • 6.3 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N CVSS Calculator
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

Dompdf is an HTML to PDF converter for PHP. Versions 3.15 and prior are vulnerable to a Denial of Service (DoS) attack via resource exhaustion. An attacker can crash the PHP process by providing a specially crafted HTML document containing a single image with massive dimensions (e.g., 30,000x30,000 pixels). While Dompdf implements internal checks to validate image dimensions, these can be bypassed by using a high-entropy image (such as random noise) encoded in Base64 and wrapped in specific CSS containers. The vulnerability exists because the dimension validation happens early, but the resource allocation for calculating the object's bounding box and internal buffers during the rendering phase does not strictly limit the cumulative CPU time or memory usage for a single object that has passed the initial check. An unauthenticated remote attacker can cause a complete Denial of Service on the web server by submitting a crafted HTML string. This affects any application that allows users to provide HTML content or URLs that are subsequently converted to PDF using Dompdf. This issue has been fixed in version 3.16.

References

Affected packages

Ubuntu:Pro:16.04:LTS / php-dompdf

Package

Name
php-dompdf
Purl
pkg:deb/ubuntu/php-dompdf?arch=source&distro=esm-apps%2Fxenial

Affected ranges

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

Affected versions

0.*
0.6.1+dfsg-2
0.6.1+dfsg-2build1
0.6.1+dfsg-2ubuntu1
0.6.1+dfsg-2ubuntu1+esm1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "0.6.1+dfsg-2ubuntu1+esm1",
            "binary_name": "php-dompdf"
        }
    ]
}

Database specific

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

Ubuntu:Pro:18.04:LTS / php-dompdf

Package

Name
php-dompdf
Purl
pkg:deb/ubuntu/php-dompdf?arch=source&distro=esm-apps%2Fbionic

Affected ranges

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

Affected versions

0.*
0.6.2+dfsg-3
0.6.2+dfsg-3ubuntu0.18.04.1~esm1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "0.6.2+dfsg-3ubuntu0.18.04.1~esm1",
            "binary_name": "php-dompdf"
        }
    ]
}

Database specific

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

Ubuntu:20.04:LTS / php-dompdf

Package

Name
php-dompdf
Purl
pkg:deb/ubuntu/php-dompdf?arch=source&distro=focal

Affected ranges

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

Affected versions

0.*
0.6.2+dfsg-3
0.6.2+dfsg-3ubuntu0.20.04.1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "0.6.2+dfsg-3ubuntu0.20.04.1",
            "binary_name": "php-dompdf"
        }
    ]
}

Database specific

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

Ubuntu:22.04:LTS / php-dompdf

Package

Name
php-dompdf
Purl
pkg:deb/ubuntu/php-dompdf?arch=source&distro=jammy

Affected ranges

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

Affected versions

0.*
0.6.2+dfsg-3.1
0.6.2+dfsg-3.1ubuntu0.1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "0.6.2+dfsg-3.1ubuntu0.1",
            "binary_name": "php-dompdf"
        }
    ]
}

Database specific

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