{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "state": "PUBLISHED",
        "cveId": "CVE-2021-3999",
        "assignerOrgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
        "assignerShortName": "redhat",
        "dateUpdated": "2024-08-03T17:16:03.318Z",
        "dateReserved": "2021-11-22T00:00:00",
        "datePublished": "2022-08-24T00:00:00"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
                "shortName": "redhat",
                "dateUpdated": "2022-11-04T00:00:00"
            },
            "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"
                        ]
                    }
                ]
            }
        ]
    }
}