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. 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
1. Affected Software: CVE-2023-29197 specifically addresses a vulnerability in the guzzlehttp/psr7 library. The reported issue in this Security Advisory is within the CodeIgniter4 framework and does not depend on or use the guzzlehttp/psr7 library.
2. 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.
3. 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/psr7 library.
References https://datatracker.ietf.org/doc/html/rfc7230#section-3.2 https://github.com/advisories/GHSA-wxmh-65f7-jcvw
Other sources
CodeIgniter is a PHP full-stack web framework. Prior to 4.5.8, CodeIgniter lacked 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. This vulnerability is fixed in 4.5.8.
— NVD
Missing validation of header name and value in codeigniter4/framework
— Packagist
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/codeigniter4/frameworkto a version that resolves this vulnerability.Fixed in 4.5.8 - Upgrade
Upgrade
codeigniter4/frameworkto a version that resolves this vulnerability.Fixed in 4.5.8 - Compensating control
Validate HTTP header keys and/or values when using user-supplied values before passing them to the CodeIgniter4 Header class.
Event History
Frequently Asked Questions
What is the severity of CVE-2025-24013?
CVE-2025-24013 has been classified as a moderate severity vulnerability due to its potential to disrupt application functionality.
How do I fix CVE-2025-24013?
To remediate CVE-2025-24013, upgrade to CodeIgniter version 4.5.8 or later to ensure proper header validation.
What are the risks associated with CVE-2025-24013?
The risks of CVE-2025-24013 include application errors and the generation of invalid HTTP requests due to malformed headers.
Which versions of CodeIgniter are affected by CVE-2025-24013?
CVE-2025-24013 affects all CodeIgniter versions prior to 4.5.8.
Can attackers exploit CVE-2025-24013?
Yes, attackers may exploit CVE-2025-24013 by constructing deliberately malformed headers to disrupt application behavior.