UBUNTU-CVE-2021-3838

    Dashboard / Vulnerabilities / UBUNTU-CVE-2021-3838

    UBUNTU-CVE-2021-3838

    Published: 14 Feb 2023Last Modified: 4 Feb 2026

    Summary:

    Details: DomPDF before version 2.0.0 is vulnerable to PHAR deserialization due to a lack of checking on the protocol before passing it into the file_get_contents() function. An attacker who can upload files of any type to the server can pass in the phar:// protocol to unserialize the uploaded file and instantiate arbitrary PHP objects. This can lead to remote code execution, especially when DOMPdf is used with frameworks with documented POP chains like Laravel or vulnerable developer code.

    Affected packages

    Package

    Name: php-dompdf

    Purl: pkg:deb/ubuntu/[email protected]+dfsg-2ubuntu1+esm1?arch=source&distro=esm-apps/xenial

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -0.6.1+dfsg-2ubuntu1+esm1

    Affected versions

    0.6.1+dfsg-2
    0.6.1+dfsg-2build1
    0.6.1+dfsg-2ubuntu1

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    UBUNTU-CVE-2021-3838 | CVE-DB