# CVE-2024-33602: nscd: netgroup cache assumes NSS callback uses in-buffer strings

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

- **Severity:** HIGH 7.4
- **CVSS:** 7.4 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.45% (percentile 31, 2026-11-26)
- **CWE:** CWE-466
- **Published:** 2024-05-06T19:22:12.383Z
- **Modified:** 2026-10-15T00:40:40.109Z

## Who should check

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

## Description

nscd: netgroup cache assumes NSS callback uses in-buffer strings

The Name Service Cache Daemon's (nscd) netgroup cache can corrupt memory
when the NSS callback does not store all strings in the provided buffer.
The flaw was introduced in glibc 2.15 when the cache was added to nscd.

This vulnerability is only present in the nscd binary.

## Affected and fixed versions

- The GNU C Library glibc: \>= 2.15, \< 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-33602. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-33602.md
Affected: The GNU C Library glibc >= 2.15, < 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-33602 being exploited?

There is no confirmed exploitation: CVE-2024-33602 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.45% chance of exploitation in the next 30 days (as of 2026-11-26).

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

High: CVSS 7.4 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

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

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

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

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-33602?

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

- other: <https://sourceware.org/git/?p=glibc.git;a=blob;f=advisories/GLIBC-SA-2024-0008>
- other: <https://security.netapp.com/advisory/ntap-20240524-0012/>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00026.html>
- other: <http://www.openwall.com/lists/oss-security/2024/07/22/5>
- 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-33602>

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