Path traversal in CodeIgniter4 - #VU169823
Published: November 23, 2026
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.