CVE-2026-63222: CodeIgniter Path Traversal in UploadedFile move method

CVE-2026-63222 · Severity: high · CVSS 7.5 · Published 2026-07-31

CodeIgniter, a popular web application framework, contains a vulnerability in how it handles file uploads. An attacker can exploit this to save malicious files outside of the intended upload folder, potentially allowing them to overwrite critical system files or execute unauthorized code. This could lead to a complete compromise of the web server and its data.

Technologies: codeigniter4/framework (Packagist). Vendors: Packagist.

Quick answers

Is CVE-2026-63222 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-63222 being exploited in the wild.
How severe is CVE-2026-63222?
High severity, with a CVSS score of 7.5, published 31 July 2026.
Which products and versions are affected?
codeigniter4/framework (Packagist) < 4.7.4, ECOSYSTEM:introduced=0,fixed=4.7.4.
Is there a fix for CVE-2026-63222?
Yes. codeigniter4/framework (Packagist): upgrade to 4.7.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-63222 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-63222?
Check whether you run codeigniter4/framework (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • codeigniter4/framework (Packagist): upgrade to 4.7.4 or later
    composer require codeigniter4/framework:^4.7.4

Technical details

A path traversal vulnerability (CWE-22) exists in CodeIgniter 4's `UploadedFile::move()` method. When this method is called without a second argument, it defaults to using the client-provided filename without proper sanitization. A remote attacker can provide a filename containing traversal sequences (e.g., `../../shell.php`) to write uploaded content to arbitrary directories reachable by the web server process. While the patch in version 4.7.4 sanitizes the default behavior, developers who explicitly pass unsanitized client-provided names as the second argument remain vulnerable. The vulnerability is reachable over the network without authentication if the application exposes file upload functionality using the affected method.

Affected products

  • CodeIgniter CodeIgniter4 < 4.7.4

Identifiers

  • CVE-2026-63222
  • GHSA-hhmc-q9hp-r662

Timeline

  • 2026-07-07: disclosed
  • 2026-07-31: advisory: NVD publication date
  • 2026-08-07: patched: GitHub Advisory reviewed and updated

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.