Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. dompdf/dompdf
  4. ›
  5. CVE-2022-28368

CVE-2022-28368: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

April 3, 2022 (updated August 8, 2023)

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

References

  • github.com/advisories/GHSA-x752-qjv4-c4hc
  • github.com/dompdf/dompdf/commit/4c70e1025bcd9b7694b95dd552499bd83cd6141d
  • github.com/dompdf/dompdf/issues/2598
  • github.com/dompdf/dompdf/pull/2808
  • github.com/snyk-labs/php-goof
  • nvd.nist.gov/vuln/detail/CVE-2022-28368
  • packagist.org/packages/dompdf/dompdf
  • snyk.io/blog/security-alert-php-pdf-library-dompdf-rce/

Code Behaviors & Features

Detect and mitigate CVE-2022-28368 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.2.1

Fixed versions

  • 1.2.1

Solution

Upgrade to version 1.2.1 or above.

Impact 9.8 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

packagist/dompdf/dompdf/CVE-2022-28368.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:25 +0000.