{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-3652 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2021-3652 is a medium-severity authentication bypass vulnerability in 389-ds-base, published on 18 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-3652 and fix it if it is affected.\n\nWhat it is: CVE-2021-3652 is a medium-severity authentication bypass vulnerability in 389-ds-base, published on 18 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-3652 in the wild and no public exploit code.\n\nAffected product: 389-ds-base. 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-3652/ (Markdown: https://insights.sbomify.com/CVE-2021-3652/index.md)","id":"CVE-2021-3652","markdown":"https://insights.sbomify.com/CVE-2021-3652/index.md","name":"CVE-2021-3652","record":{"aliases":["DEBIAN-CVE-2021-3652","GHSA-qc73-mcqm-3m29","MGASA-2021-0440","RHSA-2021:3079","RHSA-2021:3807","RHSA-2021:3906","RLSA-2021:3079","SUSE-SU-2021:2801-1","SUSE-SU-2021:2857-1","openSUSE-SU-2021:1211-1","openSUSE-SU-2021:2801-1"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"LDAP directory server","requires_auth":"none","summary":"An attacker can authenticate as a user with a disabled password if an asterisk is used as the password hash, bypassing authentication controls.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"389-ds-base","vendor":"port389"}],"cvss":{"score":6.5,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"}],"description":"A flaw was found in 389-ds-base. If an asterisk is imported as password hashes, either accidentally or maliciously, then instead of being inactive, any password will successfully match during authentication. This flaw allows an attacker to successfully authenticate as a user whose password was disabled.","ecosystems":["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::appstream","Red Hat:rhel_eus:8.2::appstream","Rocky Linux:8","SUSE:Linux Enterprise Module for Server Applications 15 SP2","SUSE:Linux Enterprise Module for Server Applications 15 SP3","openSUSE:Leap 15.2","openSUSE:Leap 15.3"],"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":"Auth bypass in 389-ds-base","id":"CVE-2021-3652","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"auth_bypass","year":"2021"},"n_packages":47,"n_references":3,"next":{"headline":"Privilege escalation in kernel","id":"CVE-2021-3653"},"packages":[{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.3.10.2-13.el7_9"],"introduced":["0"],"last_affected":[],"package":"389-ds-base","purl":"pkg:rpm/redhat/389-ds-base","source":"RHSA-2021:3807"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.3.10.2-13.el7_9"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-debuginfo","purl":"pkg:rpm/redhat/389-ds-base-debuginfo","source":"RHSA-2021:3807"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.3.10.2-13.el7_9"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-devel","purl":"pkg:rpm/redhat/389-ds-base-devel","source":"RHSA-2021:3807"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.3.10.2-13.el7_9"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-libs","purl":"pkg:rpm/redhat/389-ds-base-libs","source":"RHSA-2021:3807"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.3.10.2-13.el7_9"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-snmp","purl":"pkg:rpm/redhat/389-ds-base-snmp","source":"RHSA-2021:3807"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.3.10.2-13.el7_9"],"introduced":["0"],"last_affected":[],"package":"389-ds-base","purl":"pkg:rpm/redhat/389-ds-base","source":"RHSA-2021:3807"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.3.10.2-13.el7_9"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-debuginfo","purl":"pkg:rpm/redhat/389-ds-base-debuginfo","source":"RHSA-2021:3807"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.3.10.2-13.el7_9"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-devel","purl":"pkg:rpm/redhat/389-ds-base-devel","source":"RHSA-2021:3807"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.3.10.2-13.el7_9"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-libs","purl":"pkg:rpm/redhat/389-ds-base-libs","source":"RHSA-2021:3807"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.3.10.2-13.el7_9"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-snmp","purl":"pkg:rpm/redhat/389-ds-base-snmp","source":"RHSA-2021:3807"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.3.10.2-13.el7_9"],"introduced":["0"],"last_affected":[],"package":"389-ds-base","purl":"pkg:rpm/redhat/389-ds-base","source":"RHSA-2021:3807"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.3.10.2-13.el7_9"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-debuginfo","purl":"pkg:rpm/redhat/389-ds-base-debuginfo","source":"RHSA-2021:3807"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.3.10.2-13.el7_9"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-devel","purl":"pkg:rpm/redhat/389-ds-base-devel","source":"RHSA-2021:3807"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.3.10.2-13.el7_9"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-libs","purl":"pkg:rpm/redhat/389-ds-base-libs","source":"RHSA-2021:3807"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.3.10.2-13.el7_9"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-snmp","purl":"pkg:rpm/redhat/389-ds-base-snmp","source":"RHSA-2021:3807"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:1.3.10.2-13.el7_9"],"introduced":["0"],"last_affected":[],"package":"389-ds-base","purl":"pkg:rpm/redhat/389-ds-base","source":"RHSA-2021:3807"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:1.3.10.2-13.el7_9"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-debuginfo","purl":"pkg:rpm/redhat/389-ds-base-debuginfo","source":"RHSA-2021:3807"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:1.3.10.2-13.el7_9"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-devel","purl":"pkg:rpm/redhat/389-ds-base-devel","source":"RHSA-2021:3807"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:1.3.10.2-13.el7_9"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-libs","purl":"pkg:rpm/redhat/389-ds-base-libs","source":"RHSA-2021:3807"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:1.3.10.2-13.el7_9"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-snmp","purl":"pkg:rpm/redhat/389-ds-base-snmp","source":"RHSA-2021:3807"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.4.3.16-19.module+el8.4.0+11894+f5bb5c43"],"introduced":["0"],"last_affected":[],"package":"389-ds-base","purl":"pkg:rpm/redhat/389-ds-base","source":"RHSA-2021:3079"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.4.3.16-19.module+el8.4.0+11894+f5bb5c43"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-debuginfo","purl":"pkg:rpm/redhat/389-ds-base-debuginfo","source":"RHSA-2021:3079"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.4.3.16-19.module+el8.4.0+11894+f5bb5c43"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-debugsource","purl":"pkg:rpm/redhat/389-ds-base-debugsource","source":"RHSA-2021:3079"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.4.3.16-19.module+el8.4.0+11894+f5bb5c43"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-devel","purl":"pkg:rpm/redhat/389-ds-base-devel","source":"RHSA-2021:3079"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.4.3.16-19.module+el8.4.0+11894+f5bb5c43"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-legacy-tools","purl":"pkg:rpm/redhat/389-ds-base-legacy-tools","source":"RHSA-2021:3079"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.4.3.16-19.module+el8.4.0+11894+f5bb5c43"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-legacy-tools-debuginfo","purl":"pkg:rpm/redhat/389-ds-base-legacy-tools-debuginfo","source":"RHSA-2021:3079"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.4.3.16-19.module+el8.4.0+11894+f5bb5c43"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-libs","purl":"pkg:rpm/redhat/389-ds-base-libs","source":"RHSA-2021:3079"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.4.3.16-19.module+el8.4.0+11894+f5bb5c43"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-libs-debuginfo","purl":"pkg:rpm/redhat/389-ds-base-libs-debuginfo","source":"RHSA-2021:3079"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.4.3.16-19.module+el8.4.0+11894+f5bb5c43"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-snmp","purl":"pkg:rpm/redhat/389-ds-base-snmp","source":"RHSA-2021:3079"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.4.3.16-19.module+el8.4.0+11894+f5bb5c43"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-snmp-debuginfo","purl":"pkg:rpm/redhat/389-ds-base-snmp-debuginfo","source":"RHSA-2021:3079"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.4.3.16-19.module+el8.4.0+11894+f5bb5c43"],"introduced":["0"],"last_affected":[],"package":"python3-lib389","purl":"pkg:rpm/redhat/python3-lib389","source":"RHSA-2021:3079"},{"ecosystem":"Red Hat:rhel_eus:8.2::appstream","fixed":["0:1.4.2.4-17.module+el8.2.0+12297+55707ea6"],"introduced":["0"],"last_affected":[],"package":"389-ds-base","purl":"pkg:rpm/redhat/389-ds-base","source":"RHSA-2021:3906"},{"ecosystem":"Red Hat:rhel_eus:8.2::appstream","fixed":["0:1.4.2.4-17.module+el8.2.0+12297+55707ea6"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-debuginfo","purl":"pkg:rpm/redhat/389-ds-base-debuginfo","source":"RHSA-2021:3906"},{"ecosystem":"Red Hat:rhel_eus:8.2::appstream","fixed":["0:1.4.2.4-17.module+el8.2.0+12297+55707ea6"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-debugsource","purl":"pkg:rpm/redhat/389-ds-base-debugsource","source":"RHSA-2021:3906"},{"ecosystem":"Red Hat:rhel_eus:8.2::appstream","fixed":["0:1.4.2.4-17.module+el8.2.0+12297+55707ea6"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-devel","purl":"pkg:rpm/redhat/389-ds-base-devel","source":"RHSA-2021:3906"},{"ecosystem":"Red Hat:rhel_eus:8.2::appstream","fixed":["0:1.4.2.4-17.module+el8.2.0+12297+55707ea6"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-legacy-tools","purl":"pkg:rpm/redhat/389-ds-base-legacy-tools","source":"RHSA-2021:3906"},{"ecosystem":"Red Hat:rhel_eus:8.2::appstream","fixed":["0:1.4.2.4-17.module+el8.2.0+12297+55707ea6"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-legacy-tools-debuginfo","purl":"pkg:rpm/redhat/389-ds-base-legacy-tools-debuginfo","source":"RHSA-2021:3906"},{"ecosystem":"Red Hat:rhel_eus:8.2::appstream","fixed":["0:1.4.2.4-17.module+el8.2.0+12297+55707ea6"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-libs","purl":"pkg:rpm/redhat/389-ds-base-libs","source":"RHSA-2021:3906"},{"ecosystem":"Red Hat:rhel_eus:8.2::appstream","fixed":["0:1.4.2.4-17.module+el8.2.0+12297+55707ea6"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-libs-debuginfo","purl":"pkg:rpm/redhat/389-ds-base-libs-debuginfo","source":"RHSA-2021:3906"},{"ecosystem":"Red Hat:rhel_eus:8.2::appstream","fixed":["0:1.4.2.4-17.module+el8.2.0+12297+55707ea6"],"introduced":["0"],"last_affected":[],"package":"389-ds-base-snmp","purl":"pkg:rpm/redhat/389-ds-base-snmp","source":"RHSA-2021:3906"}],"prev":{"headline":"DO NOT USE THIS CANDIDATE NUMBER.","id":"CVE-2021-3651"},"products":["389-ds-base"],"published":"2022-04-18","related":[{"cvss_score":7.5,"headline":"Denial of service in 389-ds-base","id":"CVE-2022-0918","kev_date_added":null,"published":"2022-03-16"},{"cvss_score":7.5,"headline":"Use after free in 389-ds-base","id":"CVE-2021-4091","kev_date_added":null,"published":"2022-02-18"}],"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":"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":"2025-11-03","vendors":["n/a"]},"summary":"An attacker can authenticate as a user with a disabled password if an asterisk is used as the password hash, bypassing authentication controls.","url":"https://insights.sbomify.com/CVE-2021-3652/"}