Security advisory
An improper restriction of external entities (XXE) vulnerability in dompdf/dompdf's SVG parser allows for Server-Side Request Forgery (SSRF) and deserialization attacks. This issue affects all versions prior to 2.0.0. The vulnerability can be exploited even if the isRemoteEnabled option is set to false. It allows attackers to perform SSRF, disclose internal image files, and cause PHAR deserialization attacks.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-3902
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:52 UTC · Revision 1
Source evidence
An improper restriction of external entities (XXE) vulnerability in dompdf/dompdf's SVG parser allows for Server-Side Request Forgery (SSRF) and deserialization attacks. This issue affects all versions prior to 2.0.0. The vulnerability can be exploited even if the isRemoteEnabled option is set to false. It allows attackers to perform SSRF, disclose internal image files, and cause PHAR deserialization attacks.
osv:CVE-2021-3902
Complete source record
{
"id": "2a9bdc09bdf63eab3dd6d341d4b8a03d9fa8e83ac3e36df0da0d5455dc5e2fc9",
"url": "https://osv.dev/vulnerability/CVE-2021-3902",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-3902",
"summary": "An improper restriction of external entities (XXE) vulnerability in dompdf/dompdf's SVG parser allows for Server-Side Request Forgery (SSRF) and deserialization attacks. This issue affects all versions prior to 2.0.0. The vulnerability can be exploited even if the isRemoteEnabled option is set to false. It allows attackers to perform SSRF, disclose internal image files, and cause PHAR deserialization attacks.",
"evidence": "osv:CVE-2021-3902",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2021-3902",
"aliases": [
"CVE-2021-3902",
"GHSA-3vjh-xrhf-v9xh"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/dompdf/dompdf",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "79573d8b8a141ec8a17312515de8740eed014fa9"
},
{
"fixed": "f56bc8e40be6c0ae0825e6c7396f4db80620b799"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:dompdf_project:dompdf:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "2.0.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "f56bc8e40be6c0ae0825e6c7396f4db80620b799"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v1.2.2",
"v1.2.1",
"v1.2.0",
"v1.1.1",
"v1.1.0",
"v1.0.2",
"v1.0.1",
"v1.0.0",
"v0.8.6",
"v0.8.5",
"v0.8.4",
"v0.8.3",
"v0.8.2",
"v0.8.1",
"v0.8.0",
"v0.7.0",
"v0.7.0-beta3",
"v0.6.2",
"v0.6.1",
"v0.6.0",
"v0.6.0-b3"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3902.json"
}
}
],
"modified": "2026-10-20T10:54:52.236062164Z",
"provider": "osv",
"references": [
"https://github.com/dompdf/dompdf/commit/f56bc8e40be6c0ae0825e6c7396f4db80620b799",
"https://huntr.com/bounties/a6071c07-806f-429a-8656-a4742e4191b1"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-3902",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 386309,
"published_at": "2024-11-15T11:15:06.19+00:00"
}