CVE-2021-3999

7.8 HIGH
Published: August 24, 2022 Modified: December 02, 2025

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
https://access.redhat.com/security/cve/CVE-2021-3999
Source: secalert@redhat.com
Third Party Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=2024637
Source: secalert@redhat.com
Issue Tracking Third Party Advisory
https://lists.debian.org/debian-lts-announce/2022/10/msg00021.html
Source: secalert@redhat.com
Mailing List Third Party Advisory
https://security-tracker.debian.org/tracker/CVE-2021-3999
Source: secalert@redhat.com
Third Party Advisory
https://security.netapp.com/advisory/ntap-20221104-0001/
Source: secalert@redhat.com
Third Party Advisory
https://sourceware.org/bugzilla/show_bug.cgi?id=28769
Source: secalert@redhat.com
Issue Tracking Third Party Advisory
https://www.openwall.com/lists/oss-security/2022/01/24/4
Source: secalert@redhat.com
Exploit Mailing List Third Party Advisory
https://access.redhat.com/security/cve/CVE-2021-3999
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=2024637
Source: af854a3a-2127-422b-91ae-364da2661108
Issue Tracking Third Party Advisory
https://lists.debian.org/debian-lts-announce/2022/10/msg00021.html
Source: af854a3a-2127-422b-91ae-364da2661108
Mailing List Third Party Advisory
https://security-tracker.debian.org/tracker/CVE-2021-3999
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://security.netapp.com/advisory/ntap-20221104-0001/
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://sourceware.org/bugzilla/show_bug.cgi?id=28769
Source: af854a3a-2127-422b-91ae-364da2661108
Issue Tracking Third Party Advisory
https://www.openwall.com/lists/oss-security/2022/01/24/4
Source: af854a3a-2127-422b-91ae-364da2661108
Exploit Mailing List Third Party Advisory

16 reference(s) from NVD

Quick Stats

CVSS v3 Score
7.8 / 10.0
EPSS (Exploit Probability)
1.0%
77th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

debian gnu netapp