# CVE-2024-2961: The iconv() function in the GNU C Library versions 2.39 and older may overflow the output buffer passed to it by up to…

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.3
- **CVSS:** 7.3 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 39.01% (percentile 99, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2024-04-17T17:27:40.541Z
- **Modified:** 2026-11-04T17:17:22.810Z

## Who should check

- Anyone running The GNU C Library glibc \>= 2.1.93, \< 2.40

## 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 and fixed versions

- The GNU C Library glibc: \>= 2.1.93, \< 2.40 (cvelist)

## Mitigation

- Upgrade glibc to 2.40 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-2961. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-2961.md
Affected: The GNU C Library glibc >= 2.1.93, < 2.40
Fixed in: The GNU C Library glibc 2.40

Steps:
1. Search this machine and project for The GNU C Library glibc: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-2961 being exploited?

There is no confirmed exploitation: CVE-2024-2961 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 39.01% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-2961?

High: CVSS 7.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-2961?

The GNU C Library glibc \>= 2.1.93, \< 2.40.

### Is there a fix for CVE-2024-2961?

Yes. Fixed in The GNU C Library glibc 2.40. Upgrade glibc to 2.40 or later.

### How do I check if I'm affected by CVE-2024-2961?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- exploit: <https://www.ambionics.io/blog/iconv-cve-2024-2961-p1>
- other: <https://sourceware.org/git/?p=glibc.git;a=blob;f=advisories/GLIBC-SA-2024-0004>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/P3I4KYS6EU6S7QZ47WFNTPVAHFIUQNEL/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YAMJQI3Y6BHWV3CUTYBXOZONCUJNOB2Z/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BTJFBGHDYG5PEIFD5WSSSKSFZ2AZWC5N/>
- other: <http://www.openwall.com/lists/oss-security/2024/04/24/2>
- other: <http://www.openwall.com/lists/oss-security/2024/04/17/9>
- other: <http://www.openwall.com/lists/oss-security/2024/04/18/4>
- other: <https://lists.debian.org/debian-lts-announce/2024/05/msg00001.html>
- other: <http://www.openwall.com/lists/oss-security/2024/05/27/2>
- other: <http://www.openwall.com/lists/oss-security/2024/05/27/6>
- other: <http://www.openwall.com/lists/oss-security/2024/05/27/1>
- other: <http://www.openwall.com/lists/oss-security/2024/05/27/4>
- other: <http://www.openwall.com/lists/oss-security/2024/05/27/5>
- other: <http://www.openwall.com/lists/oss-security/2024/05/27/3>
- other: <https://security.netapp.com/advisory/ntap-20240531-0002/>
- other: <http://www.openwall.com/lists/oss-security/2024/07/22/5>
- other: <https://www.ambionics.io/blog/iconv-cve-2024-2961-p2>
- other: <https://www.ambionics.io/blog/iconv-cve-2024-2961-p3>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-2961>

HTML: <https://flawdb.com/CVE-2024-2961> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-2961>
