Skip to content
Heist/ feed
Back to feed
CriticalFix available

php-dompdf — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2021-3902

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
php-dompdf
Affected versions
Not specified
Fixed versions
2.0.2+dfsg-1
CVEs
CVE-2021-3902
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 00:38 UTC · Revision 1

Source evidence

DEBIAN-CVE-2021-3902

core-osv · Original source

Published 15 Nov 2024, 11:15 UTC

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:DEBIAN-CVE-2021-3902

php-dompdf

Fixed versions: 2.0.2+dfsg-1

Complete source record
{
  "id": "ab6d0aa2a4388472e9599fee7dba17268fa7e72c0a01a9409c9b3ae26b2caa30",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-3902",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-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:DEBIAN-CVE-2021-3902",
    "products": [
      {
        "name": {
          "value": "php-dompdf",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.0.2+dfsg-1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "DEBIAN-CVE-2021-3902",
      "aliases": [
        "DEBIAN-CVE-2021-3902"
      ],
      "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": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.0.2+dfsg-1"
                }
              ]
            }
          ],
          "package": {
            "name": "php-dompdf",
            "purl": "pkg:deb/debian/php-dompdf?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-3902.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-23T18:03:31.834923374Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-3902"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2021-3902"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-3902",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 421807,
  "published_at": "2024-11-15T11:15:06.19+00:00"
}