high8.2
CVE-2024-47049
czim/file-handling vulnerable to SSRF and directory traversal
Impact
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 | Affected | Fixed in |
|---|---|---|---|
| composer | czim/file-handling | < 1.5.0 | 1.5.0 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Czim | File-Handling | before 1.5.0 from 2.0.0 before 2.3.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/czim/file-handling/blob/2.3.0/SECURITY.md
- https://github.com/advisories/GHSA-6rgh-r6j3-3223
- https://nvd.nist.gov/vuln/detail/CVE-2024-47049
- https://github.com/czim/file-handling/commit/95dfda850536bf35e684619598b9d02f4c97680d
- https://github.com/czim/file-handling/commit/dcf879896efe3457f51af9c8eab9f70dfc709a99