CVE-2025-24013: Missing validation of header name and value in codeigniter4/framework
Impact Lack of proper header validation for its name and value. The potential attacker can construct deliberately malformed headers with Header class. This could disrupt application functionality, potentially causing errors or generating invalid HTTP requests.
Published Jan 21, 2025
Affected packages
codeigniter4/framework
- Ecosystem
- Composer (PHP)
- Affected
- < 4.5.8
- Fixed in
- 4.5.8
- Check
composer show codeigniter4/framework
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
Lack of proper header validation for its name and value. The potential attacker can construct deliberately malformed headers with Header class. This could disrupt application functionality, potentially causing errors or generating invalid HTTP requests. In some cases, these malformed requests might lead to a DoS scenario if a remote service’s web application firewall interprets them as malicious and blocks further communication with the application.
Patches
Upgrade to v4.5.8 or later.
Workarounds
Validate HTTP header keys and/or values if using user-supplied values before passing them to Header class.
Differences from CVE-2023-29197
- Affected Software:
- CVE-2023-29197 specifically addresses a vulnerability in the
guzzlehttp/psr7library. - The reported issue in this Security Advisory is within the CodeIgniter4 framework and does not depend on or use the
guzzlehttp/psr7library.
- Root Cause and Implementation:
- The vulnerability reported arises from an issue in the Header class of CodeIgniter4, which is unrelated to the functionality or implementation of
guzzlehttp/psr7.
- Scope of Impact:
- The vulnerability described in this Security Advisory affects applications built with the CodeIgniter4 framework, which does not use or rely on the
guzzlehttp/psr7library.
References
- https://datatracker.ietf.org/doc/html/rfc7230#section-3.2
- https://github.com/advisories/GHSA-wxmh-65f7-jcvw
Credited to neznaika0.
References
- https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-x5mq-jjr3-vmx6
- https://nvd.nist.gov/vuln/detail/CVE-2025-24013
- https://github.com/codeigniter4/CodeIgniter4/commit/5f8aa24280fb09947897d6b322bf1f0e038b13b6
- https://datatracker.ietf.org/doc/html/rfc7230#section-3.2
- https://github.com/advisories/GHSA-wxmh-65f7-jcvw
- https://github.com/advisories/GHSA-x5mq-jjr3-vmx6
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-63220
CodeIgniter: Spoofable forwarded HTTPS headers in IncomingRequest::isSecure()
medium4.8Aug 7, 2026CVE-2026-63221
CodeIgniter: SQL injection in Query Builder deleteBatch() when used with where() conditions
critical9.4Aug 7, 2026CVE-2026-63222
CodeIgniter: Path traversal in UploadedFile::move() when using client-provided filenames
high7.5Aug 7, 2026CVE-2026-63223
CodeIgniter: Uploaded file extension validation bypass in `is_image` and `mime_in` rules
critical9.8Aug 7, 2026CVE-2026-48062
CodeIgniter4 has a validation bypass when uploading file extensions via `ext_in` rule
critical9.8Jun 11, 2026CVE-2025-54418
CodeIgniter4's ImageMagick Handler has Command Injection Vulnerability
critical9.8Jul 28, 2025
