CVE-2022-2400: Dompdf before v2.0.0 vulnerable to chroot check bypass

Published Jul 18, 2022
·
Updated

Dompdf before v2.0.0 vulnerable to chroot check bypass

Other sources

Dompdf prior to version 2.0.0 is vulnerable to a chroot check bypass, which could cause disclosure of png and jpeg files.

— GitHub

External Control of File Name or Path in GitHub repository dompdf/dompdf prior to 2.0.0.

— Ubuntu

Affected Software

9 affected componentsFixes available
debian/php-dompdf<=0.6.2+dfsg-3, <=0.6.2+dfsg-3.1
0.6.2+dfsg-3+deb10u22.0.3+dfsg-12.0.4+dfsg-1
ubuntu/php-dompdf<2.0.0
2.0.0
ubuntu/php-dompdf<0.6.1+dfsg-2ubuntu1+
0.6.1+dfsg-2ubuntu1+
ubuntu/php-dompdf<0.6.2+dfsg-3.1ubuntu0.1
0.6.2+dfsg-3.1ubuntu0.1
ubuntu/php-dompdf<0.6.2+dfsg-3ubuntu0.18.04.1~
0.6.2+dfsg-3ubuntu0.18.04.1~
ubuntu/php-dompdf<0.6.2+dfsg-3ubuntu0.20.04.1
0.6.2+dfsg-3ubuntu0.20.04.1
Dompdf Project Dompdf<2.0.0
composer/dompdf/dompdf<2.0.0
2.0.0
composer/dompdf/dompdf<2.0.0
2.0.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/php-dompdf to a version that resolves this vulnerability.

    Fixed in 0.6.2+dfsg-3+deb10u2Fixed in 2.0.3+dfsg-1Fixed in 2.0.4+dfsg-1
  2. Upgrade

    Upgrade ubuntu/php-dompdf to a version that resolves this vulnerability.

    Fixed in 2.0.0
  3. Upgrade

    Upgrade ubuntu/php-dompdf to a version that resolves this vulnerability.

    Fixed in 0.6.1+dfsg-2ubuntu1+
  4. Upgrade

    Upgrade ubuntu/php-dompdf to a version that resolves this vulnerability.

    Fixed in 0.6.2+dfsg-3.1ubuntu0.1
  5. Upgrade

    Upgrade ubuntu/php-dompdf to a version that resolves this vulnerability.

    Fixed in 0.6.2+dfsg-3ubuntu0.18.04.1~
  6. Upgrade

    Upgrade ubuntu/php-dompdf to a version that resolves this vulnerability.

    Fixed in 0.6.2+dfsg-3ubuntu0.20.04.1
  7. Upgrade

    Upgrade composer/dompdf/dompdf to a version that resolves this vulnerability.

    Fixed in 2.0.0
  8. Upgrade

    Upgrade dompdf/dompdf to a version that resolves this vulnerability.

    Fixed in 2.0.0

Event History

Jul 18, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 19, 2022
Advisory Published
via GitHub·12:00 AM
Data Sourced
via GitHub·12:00 AM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via Packagist·12:00 AM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2022-2400?

CVE-2022-2400 is a vulnerability that allows an attacker to control the file name or path in the GitHub repository dompdf/dompdf prior to version 2.0.0.

2

Which software versions are affected by CVE-2022-2400?

Versions 0.6.2+dfsg-3+deb10u2, 2.0.3+dfsg-1, and 2.0.3+dfsg-3 of the debian/php-dompdf package are affected. Version 2.0.0 of the ubuntu/php-dompdf package is also affected.

3

How can I fix CVE-2022-2400 in debian/php-dompdf?

To fix CVE-2022-2400 in debian/php-dompdf, update to version 0.6.2+dfsg-3.1 or later.

4

How can I fix CVE-2022-2400 in ubuntu/php-dompdf?

To fix CVE-2022-2400 in ubuntu/php-dompdf, update to version 2.0.0 or later.

5

Where can I find more information about CVE-2022-2400?

More information about CVE-2022-2400 can be found in the references: [link1](https://huntr.dev/bounties/a6da5e5e-86be-499a-a3c3-2950f749202a), [link2](https://github.com/dompdf/dompdf/commit/99aeec1efec9213e87098d42eb09439e7ee0bb6a), [link3](https://lists.debian.org/debian-lts-announce/2023/07/msg00017.html).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203