CVE & CISA-KEV Catalog

CVE-2021-3838

CRITICAL
9.8
CVSS v3
NVD

Description

DomPDF before version 2.0.0 is vulnerable to PHAR deserialization due to a lack of checking on the protocol before passing it into the file_get_contents() function. An attacker who can upload files of any type to the server can pass in the phar:// protocol to unserialize the uploaded file and instantiate arbitrary PHP objects. This can lead to remote code execution, especially when DOMPdf is used with frameworks with documented POP chains like Laravel or vulnerable developer code.

How to fix

Remediation Available
php-dompdfDebian
Fixed in:0.6.2+dfsg-3.1+deb11u1CVE-2021-3838
Fixed in:2.0.2+dfsg-1CVE-2021-3838
Fixed in:2.0.2+dfsg-1CVE-2021-3838
php-dompdfUbuntu
Fixed in:0.6.1+dfsg-2ubuntu1+esm1USN-6277-1
Fixed in:0.6.2+dfsg-3ubuntu0.18.04.1~esm1USN-6277-1
Fixed in:0.6.2+dfsg-3ubuntu0.20.04.1USN-6277-1
Fixed in:0.6.2+dfsg-3.1ubuntu0.1USN-6277-2

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploit Intelligence

1.43%probability of exploitation in 30 days
70thpercentile

Moderate risk: more likely to be exploited than 70% of all known CVEs.

References

Related Vulnerabilities

Other CWE-502 (Deserialization of Untrusted Data) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2023-0669High7.2100%KEV + RansomFix
CVE-2021-44228Critical10.0100%KEV + RansomFix
CVE-2021-35464Critical9.8100%KEV + RansomFix
CVE-2023-29300Critical9.8100%KEV + Ransom-
CVE-2025-53770Critical9.8100%KEV + RansomFix
CVE-2022-47986Critical9.8100%KEV + Ransom-
Embed a live status badge for CVE-2021-3838
CVE-2021-3838 severity badge

Markdown

[![CVE-2021-3838](https://tridentstack.com/cve/badge/CVE-2021-3838.svg)](https://tridentstack.com/cve/CVE-2021-3838)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-3838"><img src="https://tridentstack.com/cve/badge/CVE-2021-3838.svg" alt="CVE-2021-3838"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-19.