{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2023-4641",
        "assignerOrgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
        "state": "PUBLISHED",
        "assignerShortName": "redhat",
        "dateReserved": "2023-08-30T17:16:27.137Z",
        "datePublished": "2023-12-27T15:43:22.929Z",
        "dateUpdated": "2024-08-02T07:31:06.633Z"
    },
    "containers": {
        "cna": {
            "title": "Shadow-utils: possible password leak during passwd(1) change",
            "metrics": [
                {
                    "other": {
                        "content": {
                            "value": "Low",
                            "namespace": "https://access.redhat.com/security/updates/classification/"
                        },
                        "type": "Red Hat severity rating"
                    }
                },
                {
                    "cvssV3_1": {
                        "attackComplexity": "HIGH",
                        "attackVector": "LOCAL",
                        "availabilityImpact": "NONE",
                        "baseScore": 4.7,
                        "baseSeverity": "MEDIUM",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "NONE",
                        "privilegesRequired": "LOW",
                        "scope": "UNCHANGED",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N",
                        "version": "3.1"
                    },
                    "format": "CVSS"
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "value": "A flaw was found in shadow-utils. When asking for a new password, shadow-utils asks the password twice. If the password fails on the second attempt, shadow-utils fails in cleaning the buffer used to store the first entry. This may allow an attacker with enough access to retrieve the password from the memory."
                }
            ],
            "affected": [
                {
                    "versions": [
                        {
                            "status": "unaffected",
                            "version": "4.14.0-rc1",
                            "lessThan": "*",
                            "versionType": "semver"
                        }
                    ],
                    "packageName": "shadow-utils",
                    "collectionURL": "https://github.com/shadow-maint/shadow",
                    "defaultStatus": "affected"
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat Enterprise Linux 8",
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "packageName": "shadow-utils",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "2:4.6-19.el8",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:enterprise_linux:8::crb",
                        "cpe:/o:redhat:enterprise_linux:8::baseos"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat Enterprise Linux 8.6 Extended Update Support",
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "packageName": "shadow-utils",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "2:4.6-17.el8_6",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/o:redhat:rhel_eus:8.6::baseos",
                        "cpe:/a:redhat:rhel_eus:8.6::crb"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat Enterprise Linux 8.8 Extended Update Support",
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "packageName": "shadow-utils",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "2:4.6-17.el8_8.2",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/o:redhat:rhel_eus:8.8::baseos",
                        "cpe:/a:redhat:rhel_eus:8.8::crb"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat Enterprise Linux 9",
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "packageName": "shadow-utils",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "2:4.9-8.el9",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:enterprise_linux:9::crb",
                        "cpe:/o:redhat:enterprise_linux:9::baseos"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat Enterprise Linux 6",
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "packageName": "shadow-utils",
                    "defaultStatus": "unknown",
                    "cpes": [
                        "cpe:/o:redhat:enterprise_linux:6"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat Enterprise Linux 7",
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "packageName": "shadow-utils",
                    "defaultStatus": "unknown",
                    "cpes": [
                        "cpe:/o:redhat:enterprise_linux:7"
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://access.redhat.com/errata/RHSA-2023:6632",
                    "name": "RHSA-2023:6632",
                    "tags": [
                        "vendor-advisory",
                        "x_refsource_REDHAT"
                    ]
                },
                {
                    "url": "https://access.redhat.com/errata/RHSA-2023:7112",
                    "name": "RHSA-2023:7112",
                    "tags": [
                        "vendor-advisory",
                        "x_refsource_REDHAT"
                    ]
                },
                {
                    "url": "https://access.redhat.com/errata/RHSA-2024:0417",
                    "name": "RHSA-2024:0417",
                    "tags": [
                        "vendor-advisory",
                        "x_refsource_REDHAT"
                    ]
                },
                {
                    "url": "https://access.redhat.com/errata/RHSA-2024:2577",
                    "name": "RHSA-2024:2577",
                    "tags": [
                        "vendor-advisory",
                        "x_refsource_REDHAT"
                    ]
                },
                {
                    "url": "https://access.redhat.com/security/cve/CVE-2023-4641",
                    "tags": [
                        "vdb-entry",
                        "x_refsource_REDHAT"
                    ]
                },
                {
                    "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2215945",
                    "name": "RHBZ#2215945",
                    "tags": [
                        "issue-tracking",
                        "x_refsource_REDHAT"
                    ]
                }
            ],
            "datePublic": "2023-06-17T00:00:00+00:00",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-303",
                            "description": "Incorrect Implementation of Authentication Algorithm",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "x_redhatCweChain": "CWE-303: Incorrect Implementation of Authentication Algorithm",
            "timeline": [
                {
                    "lang": "en",
                    "time": "2023-06-17T00:00:00+00:00",
                    "value": "Reported to Red Hat."
                },
                {
                    "lang": "en",
                    "time": "2023-06-17T00:00:00+00:00",
                    "value": "Made public."
                }
            ],
            "providerMetadata": {
                "orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
                "shortName": "redhat",
                "dateUpdated": "2024-05-03T15:32:38.166Z"
            }
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T07:31:06.633Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://access.redhat.com/errata/RHSA-2023:6632",
                        "name": "RHSA-2023:6632",
                        "tags": [
                            "vendor-advisory",
                            "x_refsource_REDHAT",
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://access.redhat.com/errata/RHSA-2023:7112",
                        "name": "RHSA-2023:7112",
                        "tags": [
                            "vendor-advisory",
                            "x_refsource_REDHAT",
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://access.redhat.com/errata/RHSA-2024:0417",
                        "name": "RHSA-2024:0417",
                        "tags": [
                            "vendor-advisory",
                            "x_refsource_REDHAT",
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://access.redhat.com/errata/RHSA-2024:2577",
                        "name": "RHSA-2024:2577",
                        "tags": [
                            "vendor-advisory",
                            "x_refsource_REDHAT",
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://access.redhat.com/security/cve/CVE-2023-4641",
                        "tags": [
                            "vdb-entry",
                            "x_refsource_REDHAT",
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2215945",
                        "name": "RHBZ#2215945",
                        "tags": [
                            "issue-tracking",
                            "x_refsource_REDHAT",
                            "x_transferred"
                        ]
                    }
                ]
            }
        ]
    }
}