{"id":"CVE-2024-2961","published":"2024-04-17T17:27:40Z","modified":"2026-11-04T16:45:41Z","title":"The iconv() function in the GNU C Library versions 2.39 and older may overflow the output buffer passed to it by up to…","vendor":"The GNU C Library","product":"glibc","tier":"core","eol":null,"affectedVersions":[{"vendor":"The GNU C Library","product":"glibc","versions":[">= 2.1.93, < 2.40"]}],"capec":[{"id":"CAPEC-100","name":"Overflow Buffers"}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-30T03:56:00.502390Z","from":"CISA ADP","provenance":"source"},"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"The GNU C Library (glibc) iconv() function, in versions 2.39 and older, can write up to 4 bytes past the end of the output buffer when converting strings to the ISO-2022-CN-EXT character set. An attacker who can get an application to perform that conversion, using local access and no privileges or user interaction, could crash the application or overwrite a neighbouring variable.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:11:59Z"},"cvss":{"score":7.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.8833,"percentile":0.99775,"date":"2026-11-20","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2024-09-16","exploitedFirstSeen":"2024-09-16","ransomware":false,"evidence":[{"url":"https://sansec.io/research/cosmicsting","date":"2024-09-16"},{"url":"https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/the-state-of-magecart-a-persistent-threat-to-e-commerce-security/","date":"2025-01-09"}],"evidenceTotal":2,"provenance":"source"},"exploited":true,"otx":{"pulseCount":9,"pulses":[{"name":"Midwest Malware","url":"https://otx.alienvault.com/pulse/6a8e6c8dc6d3df83aac08378","created":"2026-08-26"},{"name":"Chinese actor compromises thousands of Wordpress sites.","url":"https://otx.alienvault.com/pulse/6a3d9550854c32513bf067db","created":"2026-06-25"},{"name":"The State of Magecart: A Persistent Threat to E-Commerce Security","url":"https://otx.alienvault.com/pulse/67869ca0f709b648d61a7dbb","created":"2025-01-14"},{"name":"CosmicSting attack & defense overview","url":"https://otx.alienvault.com/pulse/670f9ac13eeb10cd3705730e","created":"2024-10-16"},{"name":"Persistent backdoors injected on Adobe Commerce via new CosmicSting attack","url":"https://otx.alienvault.com/pulse/66fe4aa0dbe2f21a258bd30f","created":"2024-10-03"},{"name":"CosmicSting attack threatens 75% of Adobe Commerce stores","url":"https://otx.alienvault.com/pulse/66d96a3d67f791ac4434ffa5","created":"2024-09-05"},{"name":"ACTUALIZACION | Oracle Critical Patch Update Advisory - July 2024","url":"https://otx.alienvault.com/pulse/66a1221a4c2d00084ba3bcba","created":"2024-07-24"},{"name":"pulse2","url":"https://otx.alienvault.com/pulse/662edc10a9158fb6cbe169ee","created":"2024-04-28"},{"name":"MUI programu Microsoft Office Access (w języku angielskim) zostało użyte do wysłania złośliwego oprogramowania na serwer w Czechach jest to pierwszy tego typu atak na komputer.                     e","url":"https://otx.alienvault.com/pulse/6608aaf7ca0e965e593ed1d4","created":"2024-03-31"}],"provenance":"machine"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"}],"references":[{"url":"https://sourceware.org/git/?p=glibc.git;a=blob;f=advisories/GLIBC-SA-2024-0004","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/P3I4KYS6EU6S7QZ47WFNTPVAHFIUQNEL/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YAMJQI3Y6BHWV3CUTYBXOZONCUJNOB2Z/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BTJFBGHDYG5PEIFD5WSSSKSFZ2AZWC5N/","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2024/04/24/2","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2024/04/17/9","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2024/04/18/4","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/05/msg00001.html","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2024/05/27/2","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2024/05/27/6","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2024/05/27/1","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2024/05/27/4","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2024/05/27/5","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2024/05/27/3","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20240531-0002/","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2024/07/22/5","tags":[]},{"url":"https://www.ambionics.io/blog/iconv-cve-2024-2961-p1","tags":["exploit"]},{"url":"https://www.ambionics.io/blog/iconv-cve-2024-2961-p2","tags":[]},{"url":"https://www.ambionics.io/blog/iconv-cve-2024-2961-p3","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.html","tags":[]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2024-27902","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-27902","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":15,"skipped":2,"earliest":"2024-04-24","earliestUrl":"https://github.com/mattaperkins/FIX-CVE-2024-2961","repos":[{"name":"ambionics/cnext-exploits","url":"https://github.com/ambionics/cnext-exploits","stars":505,"created":"2024-05-27"},{"name":"rvzsec/CVE-2024-2961","url":"https://github.com/rvzsec/CVE-2024-2961","stars":5,"created":"2024-05-20"},{"name":"kyotozx/CVE-2024-2961-Remote-File-Read","url":"https://github.com/kyotozx/CVE-2024-2961-Remote-File-Read","stars":5,"created":"2025-01-27"},{"name":"suce0155/CVE-2024-2961","url":"https://github.com/suce0155/CVE-2024-2961","stars":4,"created":"2025-02-04"},{"name":"mattaperkins/FIX-CVE-2024-2961","url":"https://github.com/mattaperkins/FIX-CVE-2024-2961","stars":2,"created":"2024-04-24"}]},"metasploit":[{"name":"CosmicSting: Magento Arbitrary File Read (CVE-2024-34102) + PHP Buffer Overflow in the iconv() function of glibc (CVE-2024-2961)","module":"exploit/linux/http/magento_xxe_to_glibc_buf_overflow","type":"exploit","disclosureDate":"2024-07-26","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/magento_xxe_to_glibc_buf_overflow.rb"}],"first":{"date":"2024-04-24","source":"PoC-in-GitHub","url":"https://github.com/mattaperkins/FIX-CVE-2024-2961"},"provenance":"source"},"exploitRefs":["https://www.ambionics.io/blog/iconv-cve-2024-2961-p1"],"flow":[],"timeline":[{"date":"2024-04-17","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2024-2961","provenance":"source"},{"date":"2024-04-24","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub; later: Metasploit 2024-07-26","url":"https://github.com/mattaperkins/FIX-CVE-2024-2961","provenance":"source"},{"date":"2024-09-16","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://sansec.io/research/cosmicsting","provenance":"source"}],"speed":{"daysToPublicExploit":7,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":67.3,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 796 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.96,"detail":"percentile 0.9978"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 reference tagged Exploit; 15 PoC-in-GitHub repos; 1 Metasploit module"},{"name":"Mentioned in OTX pulses","points":2.27,"detail":"9 pulses"},{"name":"CVSS severity","points":5.11,"detail":"base score 7.3"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}