# CVE-2021-3999: A flaw was found in glibc.

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.81%, higher than 58% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-08-24T00:00:00.000Z
- Modified: 2026-10-14T10:17:50.007Z
- Weaknesses: CWE-193
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

## Description

A flaw was found in glibc. An off-by-one buffer overflow and underflow in getcwd() may lead to memory corruption when the size of the buffer is exactly 1. A local attacker who can control the input buffer and size passed to getcwd() in a setuid program could use this flaw to potentially execute arbitrary code and escalate their privileges on the system.

(As written by CVE List.)

## Affected

- glibc: Fixed in glibc v2.31 and above.
- gnu glibc: before 2.31
- debian debian_linux: 10.0; 11.0
- netapp e-series_performance_analyzer: no versions given
- netapp nfs_plug-in: no versions given
- netapp ontap_select_deploy_administration_utility: no versions given
- netapp h300s_firmware: no versions given
- netapp h500s_firmware: no versions given
- netapp h700s_firmware: no versions given
- netapp h410s_firmware: no versions given
- netapp h410c_firmware: no versions given

## Every score

- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://www.openwall.com/lists/oss-security/2022/01/24/4> (exploit, mailing-list, third-party-advisory)
- <https://sourceware.org/bugzilla/show_bug.cgi?id=28769> (issue-tracking, third-party-advisory)
- <https://sourceware.org/git/gitweb.cgi?p=glibc.git%3Bh=23e0e8f5f1fb5ed150253d986ecccdc90c2dcd5e>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2024637> (issue-tracking, third-party-advisory)
- <https://access.redhat.com/security/cve/CVE-2021-3999> (third-party-advisory)
- <https://security-tracker.debian.org/tracker/CVE-2021-3999> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/10/msg00021.html> (mailing-list, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20221104-0001/> (third-party-advisory)
- <https://cert-portal.siemens.com/productcert/html/ssa-831302.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>

## Sources

- CVE List: [CVE-2021-3999](https://www.cve.org/CVERecord?id=CVE-2021-3999), CVE Terms of Use, modified 2026-10-14
- NVD: [CVE-2021-3999](https://nvd.nist.gov/vuln/detail/CVE-2021-3999), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2021-3999 · Whole record: https://cve.day/CVE-2021-3999.json · Rebuilt by cve.day 2026-11-25T22:58:07.779Z
