
CVE catalog
CVE-2026-59941
Dompdf is an HTML to PDF converter for PHP. Versions…
Dompdf is an HTML to PDF converter for PHP. Versions 3.15 and prior accept a BMP image and generates a PDF-compatible PNG based only on its declared header dimensions and never bounds width × height before the image is converted through GD. A 58-byte BMP whose header declares e.g. 6000×6000 is accepted and later drives imagecreatetruecolor($width, $height) (and PHP's native BMP decoder) to allocate the full pixel canvas. A payload can fit in a single HTTP request: the BMP can be inlined as a data:image/bmp;base64,… URI inside attacker-controlled HTML, so no upload, no remote fetch, and no chroot-reachable file is required. I measured a 169-byte request driving a dompdf render to ~412 MB peak RSS and ~4.8 s of CPU/wall time, versus ~34 MB for an identically-sized benign request — roughly a 12× memory amplification per request, repeatable and unauthenticated. This issue has been fixed in version 3.16.
- Severity
- Medium · CVSS 6.3
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.64% · Oct 27, 2026
Projects and upstream resources
Reported versions and fixes
Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.
Version impact has not been established. The original provider fields are retained below.
Provider details and historical evidence
Original provider fields
{
"package_releases": [
{
"name": "php-dompdf",
"status": "vulnerable",
"release": "sid",
"version": "3.1.4+dfsg-2"
},
{
"name": "php-dompdf",
"status": "vulnerable",
"release": "bookworm",
"version": "2.0.3+dfsg-1+deb12u1"
}
],
"fixed_versions": [
{
"bug": 1142987,
"name": "php-dompdf",
"type": "source",
"origin": null,
"release": "sid",
"urgency": "not yet assigned",
"fixed_version": ""
},
{
"bug": 1142987,
"name": "php-dompdf",
"type": "source",
"origin": null,
"release": "bookworm",
"urgency": "not yet assigned",
"fixed_version": ""
}
],
"distribution_packages": [
{
"name": "dompdf/dompdf",
"ecosystem": "composer",
"fixed_version": "3.1.6"
},
{
"name": "php-dompdf",
"distro": "ubuntu",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"release": "pro",
"versions": [
"0.6.2+dfsg-3",
"0.6.2+dfsg-3ubuntu0.18.04.1~esm1"
],
"ecosystem": "deb",
"fixed_version": "",
"provider_record_id": "UBUNTU-CVE-2026-59941"
},
{
"name": "php-dompdf",
"distro": "ubuntu",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"release": "20.04",
"versions": [
"0.6.2+dfsg-3",
"0.6.2+dfsg-3ubuntu0.20.04.1"
],
"ecosystem": "deb",
"fixed_version": "",
"provider_record_id": "UBUNTU-CVE-2026-59941"
},
{
"name": "php-dompdf",
"distro": "ubuntu",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"release": "22.04",
"versions": [
"0.6.2+dfsg-3.1",
"0.6.2+dfsg-3.1ubuntu0.1"
],
"ecosystem": "deb",
"fixed_version": "",
"provider_record_id": "UBUNTU-CVE-2026-59941"
}
]
}OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [php-dompdf]Unknown
Details (2)
2.0.3+dfsg-1+deb12u1· all · bookwormAffected
nvd · php-dompdf · debian · bookworm; nvd · php-dompdf · debian · 12
2.0.3+dfsg-1+deb12u1· all · bookwormAffected
nvd · php-dompdf · debian · bookworm; nvd · php-dompdf · debian · 12
Observed:
References
- [https://github.com/advisories/GHSA-8hg6-c449-896m]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-59941]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-59941]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-59941]
- [https://security-tracker.debian.org/tracker/CVE-2026-59941]
[Debian Security Tracker] · [FIRST EPSS] · [GitHub Advisory Database] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database]