Framework: CodeIgniter: Uploaded file extension validation bypass in `is_image` and `mime_in` rules (CVE-2026-63223)
A critical vulnerability in CodeIgniter 4 prior to version 4.7.4 allows unsafe file upload validation bypass when using the is_image or mime_in rules without additional safe extension checks. This can lead to remote code execution if uploaded files are saved with client-supplied filenames in web-accessible directories where PHP execution is possible. The vulnerability is addressed in version 4.7.4 and later.
AI Analysis
Technical Summary
CVE-2026-63223 is a critical unsafe file upload validation vulnerability in the CodeIgniter 4 framework affecting versions prior to 4.7.4. Applications that rely solely on the is_image or mime_in validation rules without an independent extension check (such as ext_in on patched versions), save uploaded files using the client-supplied filename, and place uploads in web-accessible directories where PHP files can execute, are vulnerable. This can lead to remote code execution by bypassing file extension validation. The vendor has released version 4.7.4 to fix this issue.
Potential Impact
Successful exploitation can lead to remote code execution, compromising confidentiality, integrity, and availability of affected systems. The vulnerability arises from improper validation of uploaded file extensions and unsafe handling of filenames, allowing attackers to upload malicious PHP files that execute on the server.
Mitigation Recommendations
Upgrade to CodeIgniter version 4.7.4 or later, where this vulnerability is fixed. As workarounds, save uploaded files outside the public web root (e.g., under writable/uploads), avoid preserving client-supplied filenames by using $file->store() or $file->move() with random names, disable script execution in public upload directories, manually verify client filename extensions before moving files, reject files with disallowed image extensions for image uploads, and ensure MIME-type validation matches the client extension.
Framework: CodeIgniter: Uploaded file extension validation bypass in `is_image` and `mime_in` rules (CVE-2026-63223)
Description
A critical vulnerability in CodeIgniter 4 prior to version 4.7.4 allows unsafe file upload validation bypass when using the is_image or mime_in rules without additional safe extension checks. This can lead to remote code execution if uploaded files are saved with client-supplied filenames in web-accessible directories where PHP execution is possible. The vulnerability is addressed in version 4.7.4 and later.
CVSS v3.1
Score 9.8critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-63223 is a critical unsafe file upload validation vulnerability in the CodeIgniter 4 framework affecting versions prior to 4.7.4. Applications that rely solely on the is_image or mime_in validation rules without an independent extension check (such as ext_in on patched versions), save uploaded files using the client-supplied filename, and place uploads in web-accessible directories where PHP files can execute, are vulnerable. This can lead to remote code execution by bypassing file extension validation. The vendor has released version 4.7.4 to fix this issue.
Potential Impact
Successful exploitation can lead to remote code execution, compromising confidentiality, integrity, and availability of affected systems. The vulnerability arises from improper validation of uploaded file extensions and unsafe handling of filenames, allowing attackers to upload malicious PHP files that execute on the server.
Mitigation Recommendations
Upgrade to CodeIgniter version 4.7.4 or later, where this vulnerability is fixed. As workarounds, save uploaded files outside the public web root (e.g., under writable/uploads), avoid preserving client-supplied filenames by using $file->store() or $file->move() with random names, disable script execution in public upload directories, manually verify client filename extensions before moving files, reject files with disallowed image extensions for image uploads, and ensure MIME-type validation matches the client extension.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-mmj4-63m4-r6h5
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-63223"]
- Ecosystems
- ["Packagist"]
- Database Specific Severity
- CRITICAL
- Cvss Version
- 3.1
Threat ID: 6a7742a8bf8831d539b08cde
Added to database: 08/08/2026, 14:52:24 UTC
Last enriched: 08/08/2026, 15:19:47 UTC
Last updated: 08/09/2026, 00:41:16 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.