CVE-2024-29904: CodeIgniter4 DoS Vulnerability
Impact A vulnerability was found in the Language class that allowed DoS attacks. This vulnerability can be exploited by an attacker to consume a large amount of memory on the server.
Patches Upgrade to v4.4.7 or later. See upgrading guide.
Workarounds - Disabling Auto Routing prevents a known attack vector in the framework. - Do not pass invalid values to the lang() function or Language class.
References - https://codeigniter4.github.io/userguide/outgoing/localization.html#language-localization - https://codeigniter4.github.io/userguide/general/commonfunctions.html#lang
Other sources
CodeIgniter is a PHP full-stack web framework A vulnerability was found in the Language class that allowed DoS attacks. This vulnerability can be exploited by an attacker to consume a large amount of memory on the server. Upgrade to v4.4.7 or later.
— MITRE
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.4.7 - Upgrade
Upgrade
CodeIgniter4to a version that resolves this vulnerability.Fixed in v4.4.7 - Configuration
Disable Auto Routing to prevent the known attack vector.
CodeIgniter4 Auto Routing = disabled - Compensating control
Do not pass invalid values to the lang() function or Language class.
Event History
Frequently Asked Questions
What is the severity of CVE-2024-29904?
CVE-2024-29904 is a medium severity vulnerability that allows for Denial of Service (DoS) attacks by consuming excessive memory on the server.
How do I fix CVE-2024-29904?
To resolve CVE-2024-29904, upgrade to version 4.4.7 or later of the CodeIgniter framework.
What software is affected by CVE-2024-29904?
CVE-2024-29904 affects versions of the CodeIgniter 4 framework prior to 4.4.7.
Can CVE-2024-29904 be exploited remotely?
Yes, CVE-2024-29904 can be exploited by attackers remotely to launch Denial of Service attacks.
Is there a patch available for CVE-2024-29904?
Yes, a patch is available and can be applied by upgrading to CodeIgniter framework version 4.4.7 or later.