Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. czim/file-handling
  4. ›
  5. CVE-2024-47049

CVE-2024-47049: czim/file-handling vulnerable to SSRF and directory traversal

September 17, 2024 (updated March 19, 2025)

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

  • github.com/advisories/GHSA-6rgh-r6j3-3223
  • github.com/czim/file-handling
  • github.com/czim/file-handling/blob/2.3.0/SECURITY.md
  • github.com/czim/file-handling/commit/95dfda850536bf35e684619598b9d02f4c97680d
  • github.com/czim/file-handling/commit/dcf879896efe3457f51af9c8eab9f70dfc709a99
  • nvd.nist.gov/vuln/detail/CVE-2024-47049

Code Behaviors & Features

Detect and mitigate CVE-2024-47049 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.5.0, all versions starting from 2.0.0 before 2.3.0

Fixed versions

  • 1.5.0
  • 2.3.0

Solution

Upgrade to versions 1.5.0, 2.3.0 or above.

Impact 8.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

packagist/czim/file-handling/CVE-2024-47049.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:59 +0000.