{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "state": "PUBLISHED",
        "cveId": "CVE-2021-3999",
        "assignerOrgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
        "assignerShortName": "redhat",
        "dateUpdated": "2025-12-02T20:54:34.966Z",
        "dateReserved": "2021-11-22T00:00:00.000Z",
        "datePublished": "2022-08-24T00:00:00.000Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
                "shortName": "redhat",
                "dateUpdated": "2022-11-04T00:00:00.000Z"
            },
            "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"
                },
                {
                    "name": "[debian-lts-announce] 20221017 [SECURITY] [DLA 3152-1] glibc security update",
                    "tags": [
                        "mailing-list"
                    ],
                    "url": "https://lists.debian.org/debian-lts-announce/2022/10/msg00021.html"
                },
                {
                    "url": "https://security.netapp.com/advisory/ntap-20221104-0001/"
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "type": "CWE",
                            "lang": "en",
                            "description": "CWE-193 - Off-by-one Error",
                            "cweId": "CWE-193"
                        }
                    ]
                }
            ]
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-03T17:16:03.318Z"
                },
                "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"
                        ]
                    },
                    {
                        "name": "[debian-lts-announce] 20221017 [SECURITY] [DLA 3152-1] glibc security update",
                        "tags": [
                            "mailing-list",
                            "x_transferred"
                        ],
                        "url": "https://lists.debian.org/debian-lts-announce/2022/10/msg00021.html"
                    },
                    {
                        "url": "https://security.netapp.com/advisory/ntap-20221104-0001/",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            },
            {
                "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"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2025-12-02T20:54:34.966Z"
                }
            }
        ]
    }
}