GHSA-6rgh-r6j3-3223high8.2
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.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
czim/file-handling Packagist
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 1.5.0Ecosystem versions | 1.5.0 |
| From 2.0.0 before 2.3.0Ecosystem versions | 2.3.0 |
Version evidence: OSV · GHSA-6rgh-r6j3-3223
View original version evidence (39 explicit versions)
Original source 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.
References
- Security advisory nvd.nist.gov/vuln/detail/CVE-2024-47049
- Patch github.com/czim/file-handling/commit/95dfda850536bf35e684619598b9d02f4c97680d
- Patch github.com/czim/file-handling/commit/dcf879896efe3457f51af9c8eab9f70dfc709a99
- Source reference github.com/czim/file-handling
- Security advisory github.com/czim/file-handling/blob/2.3.0/SECURITY.md