{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-43566 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2021-43566 is a low-severity vulnerability in Samba Samba, published on 11 Jan 2022. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-43566 and fix it if it is affected.\n\nWhat it is: CVE-2021-43566 is a low-severity vulnerability in Samba Samba, published on 11 Jan 2022. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-43566 in the wild and no public exploit code.\n\nAffected product: Samba Samba. 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-43566/ (Markdown: https://insights.sbomify.com/CVE-2021-43566/index.md)","id":"CVE-2021-43566","markdown":"https://insights.sbomify.com/CVE-2021-43566/index.md","name":"CVE-2021-43566","record":{"aliases":["ALPINE-CVE-2021-43566","AZL-37006","AZL-7489","CLSA-2026-1780064574","CLSA-2026-1780070780","CLSA-2026-1780134251","DEBIAN-CVE-2021-43566","ECHO-d69c-9803-2415","GHSA-rcx2-p86p-53w9","OESA-2022-1507","RHBA-2021:4438","UBUNTU-CVE-2021-43566"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Samba file server","requires_auth":"low_privilege","summary":"A race condition in Samba allows malicious clients to create directories outside exported shares if SMB1 or NFS is enabled.","user_interaction":"not_required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"samba","vendor":"samba"}],"cvss":{"score":2.5,"severity":"low","source":"nvd","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"}],"description":"All versions of Samba prior to 4.13.16 are vulnerable to a malicious client using an SMB1 or NFS race to allow a directory to be created in an area of the server file system not exported under the share definition. Note that SMB1 has to be enabled, or the share also available via NFS in order for this attack to succeed.","ecosystems":["Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:8::baseos","Red Hat:enterprise_linux:8::crb"],"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":"Race condition in n/a","id":"CVE-2021-43566","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"samba:samba","products":["samba:samba"],"type":"race_condition","year":"2021"},"n_packages":85,"n_references":3,"next":{"headline":"ecdsa-elixir fails to check signatures, vulnerable to message forging","id":"CVE-2021-43568"},"packages":[{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"ctdb-debuginfo","purl":"pkg:rpm/redhat/ctdb-debuginfo","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"libsmbclient-debuginfo","purl":"pkg:rpm/redhat/libsmbclient-debuginfo","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"libwbclient-debuginfo","purl":"pkg:rpm/redhat/libwbclient-debuginfo","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"python3-samba-debuginfo","purl":"pkg:rpm/redhat/python3-samba-debuginfo","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"samba-client-debuginfo","purl":"pkg:rpm/redhat/samba-client-debuginfo","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"samba-client-libs-debuginfo","purl":"pkg:rpm/redhat/samba-client-libs-debuginfo","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"samba-common-libs-debuginfo","purl":"pkg:rpm/redhat/samba-common-libs-debuginfo","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"samba-common-tools-debuginfo","purl":"pkg:rpm/redhat/samba-common-tools-debuginfo","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"samba-debuginfo","purl":"pkg:rpm/redhat/samba-debuginfo","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"samba-debugsource","purl":"pkg:rpm/redhat/samba-debugsource","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"samba-krb5-printing-debuginfo","purl":"pkg:rpm/redhat/samba-krb5-printing-debuginfo","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"samba-libs-debuginfo","purl":"pkg:rpm/redhat/samba-libs-debuginfo","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"samba-test-debuginfo","purl":"pkg:rpm/redhat/samba-test-debuginfo","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"samba-test-libs-debuginfo","purl":"pkg:rpm/redhat/samba-test-libs-debuginfo","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"samba-vfs-iouring","purl":"pkg:rpm/redhat/samba-vfs-iouring","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"samba-vfs-iouring-debuginfo","purl":"pkg:rpm/redhat/samba-vfs-iouring-debuginfo","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"samba-winbind-clients-debuginfo","purl":"pkg:rpm/redhat/samba-winbind-clients-debuginfo","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"samba-winbind-debuginfo","purl":"pkg:rpm/redhat/samba-winbind-debuginfo","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"samba-winbind-krb5-locator-debuginfo","purl":"pkg:rpm/redhat/samba-winbind-krb5-locator-debuginfo","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"samba-winbind-modules-debuginfo","purl":"pkg:rpm/redhat/samba-winbind-modules-debuginfo","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"samba-winexe-debuginfo","purl":"pkg:rpm/redhat/samba-winexe-debuginfo","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"ctdb","purl":"pkg:rpm/redhat/ctdb","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"ctdb-debuginfo","purl":"pkg:rpm/redhat/ctdb-debuginfo","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"libsmbclient","purl":"pkg:rpm/redhat/libsmbclient","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"libsmbclient-debuginfo","purl":"pkg:rpm/redhat/libsmbclient-debuginfo","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"libwbclient","purl":"pkg:rpm/redhat/libwbclient","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"libwbclient-debuginfo","purl":"pkg:rpm/redhat/libwbclient-debuginfo","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"python3-samba","purl":"pkg:rpm/redhat/python3-samba","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"python3-samba-debuginfo","purl":"pkg:rpm/redhat/python3-samba-debuginfo","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"python3-samba-test","purl":"pkg:rpm/redhat/python3-samba-test","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"samba","purl":"pkg:rpm/redhat/samba","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"samba-client","purl":"pkg:rpm/redhat/samba-client","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"samba-client-debuginfo","purl":"pkg:rpm/redhat/samba-client-debuginfo","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"samba-client-libs","purl":"pkg:rpm/redhat/samba-client-libs","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"samba-client-libs-debuginfo","purl":"pkg:rpm/redhat/samba-client-libs-debuginfo","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"samba-common","purl":"pkg:rpm/redhat/samba-common","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"samba-common-libs","purl":"pkg:rpm/redhat/samba-common-libs","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"samba-common-libs-debuginfo","purl":"pkg:rpm/redhat/samba-common-libs-debuginfo","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"samba-common-tools","purl":"pkg:rpm/redhat/samba-common-tools","source":"RHBA-2021:4438"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.5-2.el8"],"introduced":["0"],"last_affected":[],"package":"samba-common-tools-debuginfo","purl":"pkg:rpm/redhat/samba-common-tools-debuginfo","source":"RHBA-2021:4438"}],"prev":{"headline":"x/crypto/ssh vulnerable to panic via malformed packets","id":"CVE-2021-43565"},"products":["n/a"],"published":"2022-01-11","related":[{"cvss_score":10,"headline":"Integer overflow in n/a","id":"CVE-2012-1182","kev_date_added":null,"published":"2012-04-10"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2007-2446","kev_date_added":null,"published":"2007-05-14"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2004-0600","kev_date_added":null,"published":"2004-07-23"},{"cvss_score":10,"headline":"Denial of service in n/a","id":"CVE-1999-0810","kev_date_added":null,"published":"2000-01-04"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-1999-0182","kev_date_added":null,"published":"1999-09-29"},{"cvss_score":9.8,"headline":"Weak cryptography in Samba","id":"CVE-2022-45141","kev_date_added":null,"published":"2023-03-06"},{"cvss_score":9.3,"headline":"Other in n/a","id":"CVE-2009-1886","kev_date_added":null,"published":"2009-06-24"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHBA"},{"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-04","vendors":["n/a"]},"summary":"A race condition in Samba allows malicious clients to create directories outside exported shares if SMB1 or NFS is enabled.","url":"https://insights.sbomify.com/CVE-2021-43566/"}