czim/file-handling · Security
czim/file-handling vulnerable to SSRF and directory traversal
- GHSA ID
- GHSA-6rgh-r6j3-3223
- CVE ID
- CVE-2024-47049
- Severity
- medium
- Published
- Updated
- CVSS
- 8.2 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
- CVSS v3
- 8.2 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
- CVSS v4
- 6.9 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:L/SA:N
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.
CWEs
- CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
- CWE-918 · Server-Side Request Forgery (SSRF)
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 ↗