Path traversal in CodeIgniter4 - #VU169823

 

Path traversal in CodeIgniter4 - #VU169823

Published: November 23, 2026


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

Vulnerability details

The vulnerability allows a remote attacker to read or write files outside the intended directory if the application uses the sanitized result in filesystem operations.

The vulnerability exists due to improper neutralization of backslashes in sanitize_filename() and its Security::sanitizeFilename() alias when slash stripping changes the input after traversal filtering. A remote attacker can submit crafted filenames or paths to cause directory traversal in relative-path mode on any platform or in either mode on Windows, or to introduce a NUL byte into the sanitized result.


Affected software

CodeIgniter4

Remediation

Install security update from vendor's website.

CodeIgniter4 - update to 4.7.6

External References

Related Security Bulletins