{"answers":{"affected":"It affects 4 products.","exploited":"There is no known exploitation of CVE-2021-20254 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2021-20254 is a medium-severity vulnerability in Debian Debian Linux, published on 5 May 2021. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-20254 and fix it if it is affected.\n\nWhat it is: CVE-2021-20254 is a medium-severity vulnerability in Debian Debian Linux, published on 5 May 2021. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-20254 in the wild and no public exploit code.\n\nAffected product: Debian Debian Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-20254/ (Markdown: https://insights.sbomify.com/CVE-2021-20254/index.md)","id":"CVE-2021-20254","markdown":"https://insights.sbomify.com/CVE-2021-20254/index.md","name":"CVE-2021-20254","record":{"aliases":["ALPINE-CVE-2021-20254","ALSA-2021:4058","AZL-36999","AZL-7352","DEBIAN-CVE-2021-20254","ECHO-3f66-59c9-67b2","GHSA-3r9x-25h6-9v89","RHSA-2021:2313","RHSA-2021:3724","RHSA-2021:3988","RHSA-2021:4058","RHSA-2021:4866","RLSA-2021:4058","SUSE-SU-2021:1438-1","SUSE-SU-2021:1439-1","SUSE-SU-2021:1442-1","SUSE-SU-2021:1445-1","SUSE-SU-2021:14709-1","SUSE-SU-2021:1492-1","UBUNTU-CVE-2021-20254","USN-4930-1"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Samba file server","requires_auth":"low_privilege","summary":"A flaw in Samba's group mapping allows reading beyond array bounds, potentially exposing or modifying user group membership data.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"fedora","vendor":"fedoraproject"},{"product":"enterprise_linux","vendor":"redhat"},{"product":"samba","vendor":"samba"}],"cvss":{"score":6.8,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"description":"A flaw was found in samba. The Samba smbd file server must map Windows group identities (SIDs) into unix group ids (gids). The code that performs this had a flaw that could allow it to read data beyond the end of the array in the case where a negative cache entry had been added to the mapping cache. This could cause the calling code to return those values into the process token that stores the group membership for a user. The highest threat from this vulnerability is to data confidentiality and integrity.","ecosystems":["AlmaLinux:8","Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::computenode","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation","Red Hat:enterprise_linux:8::baseos","Red Hat:enterprise_linux:8::crb","Red Hat:rhel_aus:7.7::server","Red Hat:rhel_e4s:7.7::server","Red Hat:rhel_eus:8.2::baseos","Red Hat:rhel_eus:8.2::crb","Red Hat:rhel_tus:7.7::server","Red Hat:storage:3.5:samba:el8","Rocky Linux:8","SUSE:HPE Helion OpenStack 8","SUSE:Linux Enterprise High Availability Extension 12 SP3","SUSE:Linux Enterprise High Availability Extension 12 SP4","SUSE:Linux Enterprise High Availability Extension 12 SP5","SUSE:Linux Enterprise High Availability Extension 15","SUSE:Linux Enterprise High Performance Computing 15-ESPOS","SUSE:Linux Enterprise High Performance Computing 15-LTSS","SUSE:Linux Enterprise Point of Sale 11 SP3","SUSE:Linux Enterprise Server 11 SP4-LTSS","SUSE:Linux Enterprise Server 12 SP2-BCL","SUSE:Linux Enterprise Server 12 SP3-BCL","SUSE:Linux Enterprise Server 12 SP3-LTSS","SUSE:Linux Enterprise Server 12 SP4-LTSS","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server 15-LTSS","SUSE:Linux Enterprise Server for SAP Applications 12 SP3","SUSE:Linux Enterprise Server for SAP Applications 12 SP4","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15","SUSE:Linux Enterprise Software Development Kit 12 SP5","SUSE:OpenStack Cloud 8","SUSE:OpenStack Cloud 9","SUSE:OpenStack Cloud Crowbar 8","SUSE:OpenStack Cloud Crowbar 9"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Information disclosure in samba","id":"CVE-2021-20254","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"debian:debian_linux","products":["debian:debian_linux","fedoraproject:fedora","redhat:enterprise_linux","samba:samba"],"type":"information_disclosure","year":"2021"},"n_packages":375,"n_references":7,"next":{"headline":"Denial of service in QEMU","id":"CVE-2021-20255"},"packages":[{"ecosystem":"AlmaLinux:8","fixed":["4.13.3-5.el8_4"],"introduced":["0"],"last_affected":[],"package":"libsmbclient-devel","purl":"pkg:rpm/almalinux/libsmbclient-devel","source":"ALSA-2021:4058"},{"ecosystem":"AlmaLinux:8","fixed":["4.13.3-5.el8_4"],"introduced":["0"],"last_affected":[],"package":"libwbclient-devel","purl":"pkg:rpm/almalinux/libwbclient-devel","source":"ALSA-2021:4058"},{"ecosystem":"AlmaLinux:8","fixed":["4.13.3-5.el8_4"],"introduced":["0"],"last_affected":[],"package":"samba-devel","purl":"pkg:rpm/almalinux/samba-devel","source":"ALSA-2021:4058"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"libsmbclient","purl":"pkg:rpm/redhat/libsmbclient","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"libsmbclient-devel","purl":"pkg:rpm/redhat/libsmbclient-devel","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"libwbclient","purl":"pkg:rpm/redhat/libwbclient","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"libwbclient-devel","purl":"pkg:rpm/redhat/libwbclient-devel","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"samba","purl":"pkg:rpm/redhat/samba","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"samba-client","purl":"pkg:rpm/redhat/samba-client","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"samba-client-libs","purl":"pkg:rpm/redhat/samba-client-libs","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"samba-common","purl":"pkg:rpm/redhat/samba-common","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"samba-common-libs","purl":"pkg:rpm/redhat/samba-common-libs","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"samba-common-tools","purl":"pkg:rpm/redhat/samba-common-tools","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"samba-dc","purl":"pkg:rpm/redhat/samba-dc","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"samba-dc-libs","purl":"pkg:rpm/redhat/samba-dc-libs","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"samba-debuginfo","purl":"pkg:rpm/redhat/samba-debuginfo","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"samba-devel","purl":"pkg:rpm/redhat/samba-devel","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"samba-krb5-printing","purl":"pkg:rpm/redhat/samba-krb5-printing","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"samba-libs","purl":"pkg:rpm/redhat/samba-libs","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"samba-pidl","purl":"pkg:rpm/redhat/samba-pidl","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"samba-python","purl":"pkg:rpm/redhat/samba-python","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"samba-python-test","purl":"pkg:rpm/redhat/samba-python-test","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"samba-test","purl":"pkg:rpm/redhat/samba-test","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"samba-test-libs","purl":"pkg:rpm/redhat/samba-test-libs","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"samba-vfs-glusterfs","purl":"pkg:rpm/redhat/samba-vfs-glusterfs","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"samba-winbind","purl":"pkg:rpm/redhat/samba-winbind","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"samba-winbind-clients","purl":"pkg:rpm/redhat/samba-winbind-clients","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"samba-winbind-krb5-locator","purl":"pkg:rpm/redhat/samba-winbind-krb5-locator","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"samba-winbind-modules","purl":"pkg:rpm/redhat/samba-winbind-modules","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"libsmbclient-devel","purl":"pkg:rpm/redhat/libsmbclient-devel","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"libwbclient-devel","purl":"pkg:rpm/redhat/libwbclient-devel","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"samba","purl":"pkg:rpm/redhat/samba","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"samba-dc","purl":"pkg:rpm/redhat/samba-dc","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"samba-dc-libs","purl":"pkg:rpm/redhat/samba-dc-libs","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"samba-debuginfo","purl":"pkg:rpm/redhat/samba-debuginfo","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"samba-devel","purl":"pkg:rpm/redhat/samba-devel","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"samba-krb5-printing","purl":"pkg:rpm/redhat/samba-krb5-printing","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"samba-pidl","purl":"pkg:rpm/redhat/samba-pidl","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"samba-python","purl":"pkg:rpm/redhat/samba-python","source":"RHSA-2021:2313"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:4.10.16-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"samba-python-test","purl":"pkg:rpm/redhat/samba-python-test","source":"RHSA-2021:2313"}],"prev":{"headline":"Privilege escalation in ansible-tower","id":"CVE-2021-20253"},"products":["samba"],"published":"2021-05-05","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"A flaw in Samba's group mapping allows reading beyond array bounds, potentially exposing or modifying user group membership data.","url":"https://insights.sbomify.com/CVE-2021-20254/"}