Path traversal in CodeIgniter4 - CVE-2026-63222

 

Path traversal in CodeIgniter4 - CVE-2026-63222

Published: July 7, 2026


Vulnerability identifier: #VU137013
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-63222
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to overwrite files outside the intended upload directory.

The vulnerability exists due to path traversal in UploadedFile::move() when using the client-provided filename by default while handling file uploads without a second filename argument. A remote attacker can supply a crafted filename containing path traversal sequences to overwrite files outside the intended upload directory.

The issue occurs only when UploadedFile::move() is called without a second argument, and the impact depends on the destination path and server configuration.


Affected software

CodeIgniter4

How to mitigate CVE-2026-63222

Install security update from vendor's website.

CodeIgniter4 - update to 4.7.4

External References

Related Security Bulletins