# CVE-2022-28368: Remote code injection in dompdf/dompdf

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 83.9%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-04-03T00:00:00.000Z
- Modified: 2026-06-17T04:38:26.510Z
- Also known as: GHSA-x752-qjv4-c4hc
- Weaknesses: CWE-79
- Assigned by: mitre

## 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).

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- dompdf/dompdf (Packagist): before 1.2.1
- dompdf_project dompdf: before 1.2.1

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://snyk.io/blog/security-alert-php-pdf-library-dompdf-rce/> (exploit, third-party-advisory)
- <http://packetstormsecurity.com/files/171738/Dompdf-1.2.1-Remote-Code-Execution.html> (exploit, web)
- <https://github.com/dompdf/dompdf/issues/2598> (patch, third-party-advisory, web)
- <https://github.com/snyk-labs/php-goof> (third-party-advisory, web)
- <https://packagist.org/packages/dompdf/dompdf#v1.2.1> (product, third-party-advisory, web)
- <https://github.com/dompdf/dompdf/pull/2808> (patch, third-party-advisory, web)
- <https://github.com/dompdf/dompdf/commit/4c70e1025bcd9b7694b95dd552499bd83cd6141d> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-28368> (advisory)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/dompdf/dompdf/CVE-2022-28368.yaml> (web)
- <https://github.com/advisories/GHSA-x752-qjv4-c4hc> (advisory)
- <https://github.com/dompdf/dompdf> (package)
- <https://snyk.io/blog/security-alert-php-pdf-library-dompdf-rce> (web)

## Sources

- CVE List: [CVE-2022-28368](https://www.cve.org/CVERecord?id=CVE-2022-28368), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-x752-qjv4-c4hc](https://github.com/advisories/GHSA-x752-qjv4-c4hc), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2022-28368](https://nvd.nist.gov/vuln/detail/CVE-2022-28368), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-28368 · Whole record: https://cve.day/CVE-2022-28368.json · Rebuilt by cve.day 2026-11-25T22:58:10.381Z
