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

CVE-2022-41343: Files or Directories Accessible to External Parties

September 25, 2022 (updated November 21, 2022)

registerFont in FontMetrics.php in Dompdf before 2.0.1 allows remote file inclusion because a URI validation failure does not halt font registration, as demonstrated by a @font-face rule.

References

  • github.com/dompdf/dompdf/issues/2994
  • github.com/dompdf/dompdf/pull/2995
  • github.com/dompdf/dompdf/releases/tag/v2.0.1
  • nvd.nist.gov/vuln/detail/CVE-2022-41343

Code Behaviors & Features

Detect and mitigate CVE-2022-41343 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 2.0.1

Fixed versions

  • 2.0.1

Solution

Upgrade to version 2.0.1 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-552: Files or Directories Accessible to External Parties

Source file

packagist/dompdf/dompdf/CVE-2022-41343.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:47 +0000.