CVE-2025-24013: Missing validation of header name and value in codeigniter4/framework

Published Jan 20, 2025
·
Updated

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

4 affected componentsFixes available
composer/codeigniter4/framework<4.5.8
4.5.8
CodeIgniter Codeigniter<4.5.8
CodeIgniter Codeigniter<4.5.8
composer/codeigniter4/framework<4.5.8
4.5.8

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/codeigniter4/framework to a version that resolves this vulnerability.

    Fixed in 4.5.8
  2. Upgrade

    Upgrade codeigniter4/framework to a version that resolves this vulnerability.

    Fixed in 4.5.8
  3. Compensating control

    Validate HTTP header keys and/or values when using user-supplied values before passing them to the CodeIgniter4 Header class.

Event History

Jan 20, 2025
CVE Published
via MITRE·03:57 PM
Data Sourced
via MITRE·03:57 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 21, 2025
Advisory Published
via GitHub·09:13 PM
Data Sourced
via GitHub·09:13 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via Packagist·09:13 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

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.

2

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.

3

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.

4

Which versions of CodeIgniter are affected by CVE-2025-24013?

CVE-2025-24013 affects all CodeIgniter versions prior to 4.5.8.

5

Can attackers exploit CVE-2025-24013?

Yes, attackers may exploit CVE-2025-24013 by constructing deliberately malformed headers to disrupt application behavior.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203