Advisories · PHP & Laravel
CVE-2024-2961
High
CVSS 7.3
Actively exploited
glibc iconv buffer overflow reachable from PHP
Disclosed 2024 · Last reviewed 2 Dec 2026
A buffer overflow in glibc iconv could be reached by a PHP request that forced a rare charset conversion.
What happened
The ISO-2022-CN-EXT converter wrote past the end of an output buffer.
Affected and patched versions
- Affected
- glibc iconv builds that still accept the ISO-2022-CN-EXT charset. PHP is the usual way a remote request reaches it.
- Patched
- The glibc package your distribution shipped for CVE-2024-2961.
How to check your server
Check
php -v
How to fix and harden
- Upgrade glibc from the distribution. The package version is distro-specific.
- Upgrade PHP from the same distribution after glibc is patched.
- Do not treat the PHP version string alone as proof the charset bug is fixed.
Fix
php -v
Sources
Version ranges and fixes follow the vendor advisory. When a distribution backports a fix, trust its security tracker over the upstream version number. New advisories: RSS · JSON