Description
The iconv() function in the GNU C Library versions 2.39 and older may overflow the output buffer passed to it by up to 4 bytes when converting strings to the ISO-2022-CN-EXT character set, which may be used to crash an application or overwrite a neighbouring variable.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| The GNU C Library | glibc | 2.1.93 – < 2.40 | 2.40 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | glibc | 2.37-18 | — |
| Debian 13 | glibc | 2.37-18 | — |
| Debian 12 | glibc | 2.36-9+deb12u6 | DSA-5673-1 |
| Debian 11 | glibc | 2.31-13+deb11u9 | DSA-5673-1 |
| Debian 10 | glibc | 2.28-10+deb10u3 | DLA-3807-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | glibc | 2.39-0ubuntu8.1 | USN-6737-2 |
| Ubuntu 22.04 LTS | glibc | 2.35-0ubuntu3.7 | USN-6737-1 |
| Ubuntu 20.04 LTS | glibc | 2.31-0ubuntu9.15 | USN-6737-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | glibc | 2.27-3ubuntu1.6+esm2 | USN-6762-1 |
| Ubuntu Pro 16.04 LTS | glibc | 2.23-0ubuntu11.3+esm6 | USN-6762-1 |
| Ubuntu Pro 14.04 LTS | eglibc | 2.19-0ubuntu6.15+esm3 | USN-6762-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9 | nscd +214 | 2.34-100.el9_4.2 | RHSA-2024:3339 |
| RHEL 8 | nscd +213 | 2.28-236.el8_9.13 | RHSA-2024:3269, RHSA-2024:2722 |
| RHEL 7 | nscd +7 | 2.17-326.el7_9.3 | RHSA-2024:3588 |
Show 9 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Rhev Hypervisor 4 | glibc-devel +1 | 2.28-189.10.el8_6 | RHSA-2024:2799 |
| RHEL 9.2 EUS | nscd +214 | 2.34-60.el9_2.14 | RHSA-2024:3411 |
| RHEL 9.0 EUS | nscd +214 | 2.34-28.el9_0.6 | RHSA-2024:3423 |
| RHEL 8.8 EUS | nscd +213 | 2.28-225.el8_8.11 | RHSA-2024:3312 |
| RHEL 8.6 EUS | nscd +213 | 2.28-189.10.el8_6 | RHSA-2024:2799 |
| RHEL 8.4 TUS | glibc-utils +2 | 2.28-151.el8_4.2 | RHSA-2024:3309 |
| RHEL 8.4 E4S | glibc +180 | 2.28-151.el8_4.2 | RHSA-2024:3309 |
| RHEL 8.4 AUS | nscd +208 | 2.28-151.el8_4.2 | RHSA-2024:3309 |
| RHEL 8.2 AUS | nscd +208 | 2.28-101.el8_2.2 | RHSA-2024:3464 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 9 | nscd +214 | 2.34-100.el9_4.2 | ALSA-2024:3339 |
| AlmaLinux 8 | nscd +213 | 2.28-236.el8_9.13 | ALSA-2024:3269, ALSA-2024:2722 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 9 | glibc | 2.34-100.el9_4.2 | RLSA-2024:3339 |
| Rocky Linux 8 | glibc | 2.28-236.el8_9.13 | RLSA-2024:3269, RLSA-2024:2722 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP5 | glibc | 2.31-150300.74.1 | SUSE-SU-2024:1375-1 |
| SLES 15 SP4 | glibc | 2.31-150300.74.1 | SUSE-SU-2024:1375-1 |
| SLES 15 SP3 | glibc | 2.31-150300.74.1 | SUSE-SU-2024:1375-1 |
| SLES 15 SP2 | glibc | 2.26-150000.13.73.1 | SUSE-SU-2024:1977-1 |
| SLES 12 SP5 | glibc | 2.22-114.34.1 | SUSE-SU-2024:1675-1 |
Show 20 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 11 SP4 | glibc | 2.11.3-17.110.52.1 | SUSE-SU-2024:1728-1 |
| SLES for SAP 15 SP4 | glibc | 2.31-150300.74.1 | SUSE-SU-2024:1375-1 |
| SLES for SAP 15 SP3 | glibc | 2.31-150300.74.1 | SUSE-SU-2024:1375-1 |
| SLES for SAP 15 SP2 | glibc | 2.26-150000.13.73.1 | SUSE-SU-2024:1977-1 |
| SLES for SAP 12 SP5 | glibc | 2.22-114.34.1 | SUSE-SU-2024:1675-1 |
| SLE Micro 6.0 | glibc | 2.38-7.1 | SUSE-SU-2025:20038-1 |
| SLE Micro 5.5 | glibc | 2.31-150300.74.1 | SUSE-SU-2024:1375-1 |
| SLE Micro 5.4 | glibc | 2.31-150300.74.1 | SUSE-SU-2024:1375-1 |
| SLE Micro 5.3 | glibc | 2.31-150300.74.1 | SUSE-SU-2024:1375-1 |
| SLE Micro 5.2 | glibc | 2.31-150300.74.1 | SUSE-SU-2024:1375-1 |
| SLE Micro 5.1 | glibc | 2.31-150300.74.1 | SUSE-SU-2024:1375-1 |
| SLE Live Patching 15 SP5 | glibc-livepatches | 0.1-150400.3.3.1 | SUSE-SU-2024:1805-1 |
| SLE Live Patching 15 SP4 | glibc-livepatches | 0.1-150400.3.3.1 | SUSE-SU-2024:1805-1 |
| SLE HPC 15 SP4 | glibc | 2.31-150300.74.1 | SUSE-SU-2024:1375-1 |
| SLE HPC 15 SP3 | glibc | 2.31-150300.74.1 | SUSE-SU-2024:1375-1 |
| SLE HPC 15 SP2 | glibc | 2.26-150000.13.73.1 | SUSE-SU-2024:1977-1 |
| SUSE Package Hub 15 SP6 | phpMyAdmin | 5.2.2-bp156.4.3.1 | openSUSE-SU-2025:0081-1 |
| SUSE Manager Server 4.3 | glibc | 2.31-150300.74.1 | SUSE-SU-2024:1375-1 |
| SUSE Manager Proxy 4.3 | glibc | 2.31-150300.74.1 | SUSE-SU-2024:1375-1 |
| SUSE Enterprise Storage 7.1 | glibc | 2.31-150300.74.1 | SUSE-SU-2024:1375-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | glibc | 2.39-5.1 | openSUSE-SU-2024:13877-1 |
| openSUSE Tumbleweed | phpMyAdmin | 5.2.2-1.1 | openSUSE-SU-2025:14688-1 |
| openSUSE Leap 15.6 | phpMyAdmin | 5.2.2-bp156.4.3.1 | openSUSE-SU-2025:0081-1 |
| openSUSE Leap 15.5 | glibc | 2.31-150300.74.1 | SUSE-SU-2024:1375-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap Micro 5.4 | glibc | 2.31-150300.74.1 | SUSE-SU-2024:1375-1 |
| openSUSE Leap Micro 5.3 | glibc | 2.31-150300.74.1 | SUSE-SU-2024:1375-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | nscd +217 | 2.34-52.amzn2023.0.10 | ALAS2023-2024-589 |
| Amazon Linux 2 | nscd +199 | 2.26-64.amzn2.0.1 | ALAS2-2024-2521 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 9 | nscd +214 | 2.34-100.0.1.el9_4.2 | ELSA-2024-3339 |
| Oracle Linux 8 | nscd +213 | 2.28-236.0.1.el8_9.13 | ELSA-2024-3269, ELSA-2024-2722 |
| Oracle Linux 7 | nscd +6 | 2.17-326.0.9.el7_9.3 | ELSA-2024-3588 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | glibc | 2.39-r2 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
CosmicSting: Magento Arbitrary File Read (CVE-2024-34102) + PHP Buffer Overflow in the iconv() function of glibc (CVE-2024-2961)
exploit/linux/http/magento_xxe_to_glibc_buf_overflow
GitHub 17 repositories · most starred shown
-
ambionics/cnext-exploits ★ 504 · May 27, 2024
Exploits for CNEXT (CVE-2024-2961), a buffer overflow in the glibc's iconv()
-
kyotozx/CVE-2024-2961-Remote-File-Read ★ 5 · Jan 27, 2025
This script demonstrates a proof-of-concept (PoC) for exploiting a file read vulnerability in the iconv library, as detailed in Ambionics Security's blog https://www.ambionics.io/blog/iconv-cve-2024-…
-
rvzsec/CVE-2024-2961 ★ 5 · May 20, 2024
CVE-2024–2961 Security Issue Mitigation Script
-
suce0155/CVE-2024-2961 ★ 4 · Feb 4, 2025
CVE-2024-2961 Cnext RCE Exploit with Buddyforms 2.7.7
-
kjdfklha/CVE-2024-2961_poc ★ 2 · Jun 4, 2024
-
mattaperkins/FIX-CVE-2024-2961 ★ 2 · Apr 24, 2024
Quick mitigation script
-
omarelshopky/exploit_cve-2023-26326_using_cve-2024-2961 ★ 1 · Feb 2, 2025
Exploit for CVE-2023-26326 in the WordPress BuddyForms plugin, leveraging CVE-2024-2961 for remote code execution. This exploit bypasses PHP 8+ deserialization limitations by chaining vulnerabilities…
-
tnishiox/cve-2024-2961 ★ 0 · Jun 4, 2024
-
exfil0/test_iconv ★ 0 · Jun 3, 2024
This repository contains a C program to test for CVE-2024-2961, a buffer overflow vulnerability in the iconv() function of glibc.
-
absolutedesignltd/iconvfix ★ 0 · May 30, 2024
Bash script to patch for CVE-2024-2961
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 49
- ALSA-2024:3339 Important: glibc security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2024:3269 Important: glibc security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2024:2722 Important: glibc security update AlmaLinux Security Advisories · Oct 29, 2026
- RHSA-2024:3588 Red Hat Security Advisory: glibc security update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- RHSA-2024:3464 Red Hat Security Advisory: glibc security update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- RHSA-2024:3423 Red Hat Security Advisory: glibc security update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- RHSA-2024:3411 Red Hat Security Advisory: glibc security update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- RHSA-2024:3339 Red Hat Security Advisory: glibc security update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- RHSA-2024:3312 Red Hat Security Advisory: glibc security update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- RHSA-2024:3309 Red Hat Security Advisory: glibc security update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- RHSA-2024:3269 Red Hat Security Advisory: glibc security update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- RHSA-2024:2799 Red Hat Security Advisory: glibc security update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- RHSA-2024:2722 Red Hat Security Advisory: glibc security update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- SSA-082556 SSA-082556: Vulnerabilities in the additional GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP V3.1.5 Siemens ProductCERT · Oct 13, 2026
- WID-SEC-2025-0001 IBM DB2: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 11, 2026
- WID-SEC-2024-0926 GNU libc: Schwachstelle ermöglicht Codeausführung BSI CERT-Bund (WID) · Sep 15, 2026
- USN-6762-1 eglibc, glibc vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026
- ICSA-25-162-05 Siemens SIMATIC S7-1500 CPU family CISA ICS & IT advisories · May 14, 2026
- WID-SEC-2024-1226 Red Hat OpenShift: Mehrere Schwachstellen BSI CERT-Bund (WID) · May 11, 2026
- USN-6737-2 glibc vulnerability Ubuntu Security Notices (USN) · Apr 27, 2026
- USN-6737-1 glibc vulnerability Ubuntu Security Notices (USN) · Apr 27, 2026
- SUSE-SU-2025:20038-1 Security update for glibc SUSE / openSUSE Security Updates · Mar 23, 2026
- DSA-5673-1 glibc - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-3807-1 glibc - security update Debian Security (DSA / DLA) · Mar 9, 2026
- RLSA-2024:3339 Important: glibc security update Rocky Linux Security Advisories · Feb 5, 2026
- RLSA-2024:3269 Important: glibc security update Rocky Linux Security Advisories · Feb 4, 2026
- RLSA-2024:2722 Important: glibc security update Rocky Linux Security Advisories · Feb 4, 2026
- SUSE-SU-2024:1728-1 Security update for glibc SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:1805-1 Security update for glibc-livepatches SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2025:14688-1 phpMyAdmin-5.2.2-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:1977-1 Security update for glibc SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:1675-1 Security update for glibc SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:13877-1 glibc-2.39-5.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2025:0081-1 Security update for phpMyAdmin SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:1375-1 Security update for glibc SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2025-0225 Dell PowerProtect Data Domain: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 1, 2025
- WID-SEC-2025-0794 Juniper Junos Space: Mehrere Schwachstellen BSI CERT-Bund (WID) · Sep 4, 2025
- NCSC-2025-0187 Kwetsbaarheden verholpen in Siemens producten NCSC-NL (Netherlands) · Jun 10, 2025
- WID-SEC-2024-1307 Red Hat OpenShift Service Mesh Containers: Mehrere Schwachstellen BSI CERT-Bund (WID) · Feb 5, 2025
- NCSC-2025-0021 Kwetsbaarheden verholpen in Oracle Communications NCSC-NL (Netherlands) · Jan 22, 2025
- NCSC-2025-0020 Kwetsbaarheden verholpen in Oracle Database producten NCSC-NL (Netherlands) · Jan 22, 2025
- WID-SEC-2024-1642 Oracle Communications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 20, 2024
- NCSC-2024-0294 Kwetsbaarheden verholpen in Oracle Communications NCSC-NL (Netherlands) · Jul 17, 2024
- ELSA-2024-3588 Important: glibc security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Jun 5, 2024
- ELSA-2024-3339 Important: glibc security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · May 29, 2024
- ELSA-2024-3269 Important: glibc security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · May 29, 2024
- ELSA-2024-2722 Important: glibc security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · May 8, 2024
- ALAS2023-2024-589 Important: glibc security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Apr 25, 2024
- ALAS2-2024-2521 Important: glibc security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Apr 24, 2024
References
- https://sourceware.org/git/?p=glibc.git;a=blob;f=advisories/GLIBC-SA-2024-0004
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/P3I4KYS6EU6S7QZ47WFNTPVAHFIUQNEL/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YAMJQI3Y6BHWV3CUTYBXOZONCUJNOB2Z/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BTJFBGHDYG5PEIFD5WSSSKSFZ2AZWC5N/
- http://www.openwall.com/lists/oss-security/2024/04/24/2
- http://www.openwall.com/lists/oss-security/2024/04/17/9
- http://www.openwall.com/lists/oss-security/2024/04/18/4
- https://lists.debian.org/debian-lts-announce/2024/05/msg00001.html
- http://www.openwall.com/lists/oss-security/2024/05/27/2
- http://www.openwall.com/lists/oss-security/2024/05/27/6
- http://www.openwall.com/lists/oss-security/2024/05/27/1
- http://www.openwall.com/lists/oss-security/2024/05/27/4
- http://www.openwall.com/lists/oss-security/2024/05/27/5
- http://www.openwall.com/lists/oss-security/2024/05/27/3
- https://security.netapp.com/advisory/ntap-20240531-0002/
- http://www.openwall.com/lists/oss-security/2024/07/22/5