CVE-2024-2961The 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…
- 7.3HighCVSS base score
- 88.3%Exploitation in 30 daysEPSS · top 0.2% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 1Public exploitsMetasploit, Nuclei and Exploit-DB
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Metasploit module for it. A reference of the record is tagged as an exploit. CISA's SSVC rates its exploitation: a proof of concept is public.
Show the exploits2
Metasploit modules1 module
- CosmicSting: Magento Arbitrary File Read (CVE-2024-34102) + PHP Buffer Overflow in the iconv() function of glibc (CVE-2024-2961) (Metasploit module) (opens in a new tab)
exploit/linux/http/magento_xxe_to_glibc_buf_overflowRank excellentdisclosed 26 Jul 2024
References tagged exploit1 reference
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By glibc
- 22 days later
· 22 days later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| CISA-ADPADP (enrichment) | 3.1 | High7.3 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H |
| NVDNVD · Undergoing Analysis | 3.1 | High7.3 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H |
- EPSS (exploitation in 30 days)
- 88.3% · top 0.2% of all CVEs (15 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.3.
Affected products
- affected 2.1.93 – < 2.40
References
References20
- https://sourceware.org/git/?p=glibc.git;a=blob;f=advisories/GLIBC-SA-2024-0004 (opens in a new tab)x_transferred
- https://lists.fedoraproject.org/archives/list/[email protected]/message/P3I4KYS6EU6S7QZ47WFNTPVAHFIUQNEL/ (opens in a new tab)x_transferred
- https://lists.fedoraproject.org/archives/list/[email protected]/message/YAMJQI3Y6BHWV3CUTYBXOZONCUJNOB2Z/ (opens in a new tab)x_transferred
- https://lists.fedoraproject.org/archives/list/[email protected]/message/BTJFBGHDYG5PEIFD5WSSSKSFZ2AZWC5N/ (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/04/24/2 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/04/17/9 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/04/18/4 (opens in a new tab)x_transferred
- https://lists.debian.org/debian-lts-announce/2024/05/msg00001.html (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/05/27/2 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/05/27/6 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/05/27/1 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/05/27/4 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/05/27/5 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/05/27/3 (opens in a new tab)x_transferred
- https://security.netapp.com/advisory/ntap-20240531-0002/ (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/22/5 (opens in a new tab)x_transferred
- https://www.ambionics.io/blog/iconv-cve-2024-2961-p1 (opens in a new tab)exploit
- https://www.ambionics.io/blog/iconv-cve-2024-2961-p2 (opens in a new tab)
- https://www.ambionics.io/blog/iconv-cve-2024-2961-p3 (opens in a new tab)
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2024-27902 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2024-2961)Record last updated .