CVE-2024-47049 is a high-severity (CVSS 8.2) Path Traversal vulnerability in czim/file-handling. A fix is available for czim/file-handling — see the affected versions and patch details below.
czim/file-handling vulnerable to SSRF and directory traversal
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2024-47049.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
czim/file-handling🐘czim/file-handlingReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.
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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐘Packagist | czim/file-handling | all versions | 1.5.0composer require czim/file-handling:^1.5.0 |
| 🐘Packagist | czim/file-handling | ≥ 2.0.0&&< 2.3.0 | 2.3.0composer require czim/file-handling:^2.3.0 |
Affected Products
file-handlingczimDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for czim/file-handling, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update czim/file-handling to 1.5.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2024-47049 is resolved across your whole dependency graph.
Workarounds
Resolve every user-supplied path to its canonical form and reject anything that escapes the intended directory, and run the component under an account that has no read or write access outside the directory it legitimately serves.
Frequently Asked Questions
Is CVE-2024-47049 in your dependencies?
Find it across Packagist, including transitive dependencies.