{"id":"CVE-2021-3999","state":"PUBLISHED","title":"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 ","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.","publishedAt":"2022-08-24T00:00:00.000Z","updatedAt":"2026-10-14T09:59:03.285Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"CISA-ADP"},"assigner":"redhat","products":["n/a glibc"],"affected":[{"vendor":"n/a","product":"glibc","versions":[{"version":"Fixed in glibc v2.31 and above.","status":"affected"}]}],"references":["https://www.openwall.com/lists/oss-security/2022/01/24/4","https://sourceware.org/bugzilla/show_bug.cgi?id=28769","https://sourceware.org/git/gitweb.cgi?p=glibc.git%3Bh=23e0e8f5f1fb5ed150253d986ecccdc90c2dcd5e","https://bugzilla.redhat.com/show_bug.cgi?id=2024637","https://access.redhat.com/security/cve/CVE-2021-3999","https://security-tracker.debian.org/tracker/CVE-2021-3999","https://lists.debian.org/debian-lts-announce/2022/10/msg00021.html","https://security.netapp.com/advisory/ntap-20221104-0001/","https://cert-portal.siemens.com/productcert/html/ssa-831302.html","https://cert-portal.siemens.com/productcert/html/ssa-398330.html"],"weaknesses":["CWE-193"],"ingestedAt":"2026-10-29T19:48:55.807Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/3xxx/CVE-2021-3999.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2021-3999","state":"PUBLISHED","datePublished":"2022-08-24T00:00:00.000Z","dateUpdated":"2026-10-14T09:59:03.285Z","assignerShortName":"redhat","assignerOrgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","dateReserved":"2021-11-22T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n/a","product":"glibc","versions":[{"version":"Fixed in glibc v2.31 and above.","status":"affected"}]}],"references":[{"url":"https://www.openwall.com/lists/oss-security/2022/01/24/4"},{"url":"https://sourceware.org/bugzilla/show_bug.cgi?id=28769"},{"url":"https://sourceware.org/git/gitweb.cgi?p=glibc.git%3Bh=23e0e8f5f1fb5ed150253d986ecccdc90c2dcd5e"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2024637"},{"url":"https://access.redhat.com/security/cve/CVE-2021-3999"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-3999"},{"url":"https://lists.debian.org/debian-lts-announce/2022/10/msg00021.html","name":"[debian-lts-announce] 20221017 [SECURITY] [DLA 3152-1] glibc security update","tags":["mailing-list"]},{"url":"https://security.netapp.com/advisory/ntap-20221104-0001/"}],"problemTypes":[{"descriptions":[{"cweId":"CWE-193","type":"CWE","lang":"en","description":"CWE-193 - Off-by-one Error"}]}],"providerMetadata":{"shortName":"redhat","orgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","dateUpdated":"2022-11-04T00:00:00.000Z"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://www.openwall.com/lists/oss-security/2022/01/24/4","tags":["x_transferred"]},{"url":"https://sourceware.org/bugzilla/show_bug.cgi?id=28769","tags":["x_transferred"]},{"url":"https://sourceware.org/git/gitweb.cgi?p=glibc.git%3Bh=23e0e8f5f1fb5ed150253d986ecccdc90c2dcd5e","tags":["x_transferred"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2024637","tags":["x_transferred"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-3999","tags":["x_transferred"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-3999","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/10/msg00021.html","name":"[debian-lts-announce] 20221017 [SECURITY] [DLA 3152-1] glibc security update","tags":["mailing-list","x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20221104-0001/","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T17:16:03.318Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.8,"attackVector":"LOCAL","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2025-12-02T20:54:28.821189Z","id":"CVE-2021-3999","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-12-02T20:54:34.966Z"}},{"affected":[{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIPLUS S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]}],"references":[{"url":"https://cert-portal.siemens.com/productcert/html/ssa-831302.html"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html"}],"providerMetadata":{"shortName":"siemens-SADP","orgId":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","dateUpdated":"2026-10-14T09:59:03.285Z"},"x_adpType":"supplier"}]}}}