Advisory

UBUNTU-CVE-2021-3838

Also known as: CVE-2021-3838

Summary

The record has no 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.

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2023-02-14 00:00 UTC
Modified
2026-02-04 03:15 UTC

Affected packages and fixes

php-dompdf

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 0.6.2+dfsg-3ubuntu0.20.04.1 (ecosystem)

Fixed versions

0.6.2+dfsg-3ubuntu0.20.04.1

Fix

  • Fixed version 0.6.2+dfsg-3ubuntu0.20.04.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

php-dompdf

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 0.6.2+dfsg-3.1ubuntu0.1 (ecosystem)

Fixed versions

0.6.2+dfsg-3.1ubuntu0.1

Fix

  • Fixed version 0.6.2+dfsg-3.1ubuntu0.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences