CVE-2024-47049: czim/file-handling vulnerable to SSRF and directory traversal
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.
Published Sep 17, 2024 · Updated Sep 27, 2024
Affected packages
czim/file-handling
- Ecosystem
- Composer (PHP)
- Affected
- < 1.5.0
- Fixed in
- 1.5.0
- Check
composer show czim/file-handling
czim/file-handling
- Ecosystem
- Composer (PHP)
- Affected
- >= 2.0.0, < 2.3.0
- Fixed in
- 2.3.0
- Check
composer show czim/file-handling
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-47049
- https://github.com/czim/file-handling/blob/2.3.0/SECURITY.md
- https://github.com/czim/file-handling/commit/95dfda850536bf35e684619598b9d02f4c97680d
- https://github.com/czim/file-handling/commit/dcf879896efe3457f51af9c8eab9f70dfc709a99
- https://github.com/advisories/GHSA-6rgh-r6j3-3223
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
