{"id":"CVE-2021-3902","published":"2024-11-15T10:52:10Z","modified":"2024-11-18T14:35:29Z","title":"Improper Restriction of XML External Entity Reference in dompdf/dompdf","vendor":"dompdf","product":"dompdf/dompdf","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00951,"percentile":0.62139,"provenance":"source"},"cwes":[{"id":"CWE-611","name":"Improper Restriction of XML External Entity Reference"}],"references":[{"url":"https://huntr.com/bounties/a6071c07-806f-429a-8656-a4742e4191b1","tags":[]},{"url":"https://github.com/dompdf/dompdf/commit/f56bc8e40be6c0ae0825e6c7396f4db80620b799","tags":[]}],"priority":{"score":19.3,"factors":[{"name":"EPSS percentile","points":12.43},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"dompdf","affectedVersions":[{"vendor":"dompdf","product":"dompdf/dompdf","versions":[">= unspecified, < 2.0.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2024-11-18T14:34:31.414760Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"dompdf/dompdf","vulnerableRanges":["<2.0.0"],"patched":["2.0.0"],"from":["GHSA-3vjh-xrhf-v9xh"],"provenance":"source"}],"summary":{"text":"The dompdf/dompdf library's SVG parser contains an improper restriction of XML external entity (XXE) flaw, affecting all versions prior to 2.0.0. An attacker with network access and no authentication or user interaction, who can get dompdf to process a crafted SVG, can perform server-side request forgery, read internal image files, and trigger PHAR deserialization, and this works even when the isRemoteEnabled option is set to false.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:39Z"},"euvd":{"id":"EUVD-2024-3187","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-dompdf-dompdf-cve-2022-28368","parents":[{"from":"CVE-2023-23924","to":"CVE-2021-3902","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/Image/Cache.php"],"commits":["https://github.com/dompdf/dompdf/commit/f56bc8e40be6c0ae0825e6c7396f4db80620b799","https://github.com/dompdf/dompdf/commit/7558f07f693b2ac3266089f21051e6b78c6a0c85"],"basis":"shared function","functions":["resolve_url"]}]},{"from":"CVE-2023-24813","to":"CVE-2021-3902","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/Image/Cache.php"],"commits":["https://github.com/dompdf/dompdf/commit/f56bc8e40be6c0ae0825e6c7396f4db80620b799","https://github.com/dompdf/dompdf/commit/95009ea98230f9b084b040c34e3869ef3dccc9aa"],"basis":"shared function","functions":["resolve_url"]}]},{"from":"CVE-2023-50262","to":"CVE-2021-3902","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/Image/Cache.php"],"commits":["https://github.com/dompdf/dompdf/commit/f56bc8e40be6c0ae0825e6c7396f4db80620b799","https://github.com/dompdf/dompdf/commit/41cbac16f3cf56affa49f06e8dae66d0eac2b593"],"basis":"shared function","functions":["resolve_url"]}]}]}}