CVE-2025-24013: Codeigniter4/framework Missing Validation Of Header Name Vulnerability
MODERATECVE-2025-24013 is a MODERATE (CVSS 5.3) missing validation of header name vulnerability (CWE-436: Interpretation Conflict) affecting Codeigniter4/framework libraries in the Packagist ecosystem. The issue involves missing validation of header name and value in codeigniter4/framework. Remediation is available by upgrading affected packages to version 4.5.8.
CVE-2025-24013 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N).
How to Fix CVE-2025-24013
To remediate this vulnerability, upgrade all affected Codeigniter4/framework dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade codeigniter4/framework to 4.5.8
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for codeigniter4/framework
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-24013, inspect your project dependencies for Codeigniter4/framework:
inspect dependencies for codeigniter4/framework
Analyze the terminal output to locate any version of Codeigniter4/framework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.5.8), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-436: Interpretation Conflict, where product a handles inputs or steps differently than product b, which causes a to perform incorrect actions based on its perception of b's state. In Codeigniter4/framework, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-24013 Affected Codeigniter4/framework Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
codeigniter4/framework
|
Packagist |
< 4.5.8
|
4.5.8
|
References
Frequently Asked Questions
What is CVE-2025-24013?
Which Codeigniter4/framework versions are affected?
What version fixes CVE-2025-24013?
Is codeigniter4/framework affected?
What is the CVSS score of CVE-2025-24013?
What CWE is associated with CVE-2025-24013?
How can I check Packagist dependencies for CVE-2025-24013?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-x5mq-jjr3-vmx6",
"modified" : "2025-01-21T21:13:41Z",
"published" : "2025-01-21T21:13:40Z",
"aliases" : [ "CVE-2025-24013" ],
"summary" : "Missing validation of header name and value in codeigniter4/framework",
"details" : "### Impact\nLack 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.\n\n### Patches\nUpgrade to v4.5.8 or later.\n\n### Workarounds\nValidate HTTP header keys and/or values if using user-supplied values before passing them to `Header` class.\n\n### Differences from CVE-2023-29197\n\n1. **Affected Software**:\n * CVE-2023-29197 specifically addresses a vulnerability in the `guzzlehttp/psr7` library.\n * The reported issue in this Security Advisory is within the **CodeIgniter4** framework and does not depend on or use the `guzzlehttp/psr7` library.\n\n2. **Root Cause and Implementation**:\n * The vulnerability reported arises from an issue in the **Header class** of CodeIgniter4, which is unrelated to the functionality or implementation of `guzzlehttp/psr7`.\n\n3. **Scope of Impact**:\n * 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.\n\n### References\n* https://datatracker.ietf.org/doc/html/rfc7230#section-3.2\n* https://github.com/advisories/GHSA-wxmh-65f7-jcvw",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "codeigniter4/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.5.8"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-x5mq-jjr3-vmx6"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-24013"
}, {
"type" : "WEB",
"url" : "https://github.com/codeigniter4/CodeIgniter4/commit/5f8aa24280fb09947897d6b322bf1f0e038b13b6"
}, {
"type" : "WEB",
"url" : "https://datatracker.ietf.org/doc/html/rfc7230#section-3.2"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-wxmh-65f7-jcvw"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/codeigniter4/CodeIgniter4"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-436" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-01-21T21:13:40Z",
"nvd_published_at" : "2025-01-20T16:15:28Z"
}
}