{"api_version":"1","generated_at":"2026-04-22T21:38:54+00:00","cve":"CVE-2021-3997","urls":{"html":"https://cve.report/CVE-2021-3997","api":"https://cve.report/api/cve/CVE-2021-3997.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-3997","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-3997"},"summary":{"title":"CVE-2021-3997","description":"A flaw was found in systemd. An uncontrolled recursion in systemd-tmpfiles may lead to a denial of service at boot time when too many nested directories are created in /tmp.","state":"PUBLIC","assigner":"secalert@redhat.com","published_at":"2022-08-23 20:15:00","updated_at":"2023-05-03 12:15:00"},"problem_types":["CWE-674"],"metrics":[],"references":[{"url":"https://security.gentoo.org/glsa/202305-15","name":"GLSA-202305-15","refsource":"GENTOO","tags":[],"title":"systemd: Multiple Vulnerabilities (GLSA 202305-15) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/systemd/systemd/commit/5b1cf7a9be37e20133c0208005274ce4a5b5c6a1","name":"https://github.com/systemd/systemd/commit/5b1cf7a9be37e20133c0208005274ce4a5b5c6a1","refsource":"MISC","tags":[],"title":"shared/rm-rf: loop over nested directories instead of instead of recu… · systemd/systemd@5b1cf7a · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2024639","name":"https://bugzilla.redhat.com/show_bug.cgi?id=2024639","refsource":"MISC","tags":[],"title":"2024639 – (CVE-2021-3997) CVE-2021-3997 systemd: Uncontrolled recursion in systemd-tmpfiles when removing files","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://access.redhat.com/security/cve/CVE-2021-3997","name":"https://access.redhat.com/security/cve/CVE-2021-3997","refsource":"MISC","tags":[],"title":"Red Hat Customer Portal - Access to 24x7 support and knowledge","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.openwall.com/lists/oss-security/2022/01/10/2","name":"https://www.openwall.com/lists/oss-security/2022/01/10/2","refsource":"MISC","tags":[],"title":"oss-security - CVE-2021-3997: Uncontrolled recursion in systemd's systemd-tmpfiles","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3997","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3997","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"3997","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"34","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"3997","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"35","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"3997","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"redhat","cpe5":"enterprise_linux","cpe6":"7.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"3997","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"redhat","cpe5":"enterprise_linux","cpe6":"8.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"3997","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"redhat","cpe5":"enterprise_linux","cpe6":"9.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"3997","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"systemd_project","cpe5":"systemd","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-3997","qid":"179586","title":"Debian Security Update for systemd (CVE-2021-3997)"},{"cve":"CVE-2021-3997","qid":"198629","title":"Ubuntu Security Notification for systemd Vulnerability (USN-5226-1)"},{"cve":"CVE-2021-3997","qid":"282242","title":"Fedora Security Update for systemd (FEDORA-2022-f38f479b8f)"},{"cve":"CVE-2021-3997","qid":"282293","title":"Fedora Security Update for systemd (FEDORA-2022-af1728fea9)"},{"cve":"CVE-2021-3997","qid":"354291","title":"Amazon Linux Security Advisory for systemd : ALAS2022-2022-219"},{"cve":"CVE-2021-3997","qid":"354395","title":"Amazon Linux Security Advisory for systemd : ALAS2022-2022-052"},{"cve":"CVE-2021-3997","qid":"354518","title":"Amazon Linux Security Advisory for systemd : ALAS2022-2022-040"},{"cve":"CVE-2021-3997","qid":"354567","title":"Amazon Linux Security Advisory for systemd : ALAS-2022-219"},{"cve":"CVE-2021-3997","qid":"355284","title":"Amazon Linux Security Advisory for systemd : ALAS2023-2023-025"},{"cve":"CVE-2021-3997","qid":"376419","title":"Snap-Confine Local Privilege Escalation Vulnerability (Oh Snap! More Lemmings)"},{"cve":"CVE-2021-3997","qid":"591406","title":"Siemens SIMATIC S7-1500 CPU GNU/Linux subsystem Multiple Vulnerabilities (SSB-439005, ICSA-22-104-13)"},{"cve":"CVE-2021-3997","qid":"671469","title":"EulerOS Security Update for systemd (EulerOS-SA-2022-1439)"},{"cve":"CVE-2021-3997","qid":"671483","title":"EulerOS Security Update for systemd (EulerOS-SA-2022-1460)"},{"cve":"CVE-2021-3997","qid":"671486","title":"EulerOS Security Update for systemd (EulerOS-SA-2022-1497)"},{"cve":"CVE-2021-3997","qid":"671489","title":"EulerOS Security Update for systemd (EulerOS-SA-2022-1516)"},{"cve":"CVE-2021-3997","qid":"710708","title":"Gentoo Linux systemd Multiple Vulnerabilities (GLSA 202305-15)"},{"cve":"CVE-2021-3997","qid":"751593","title":"OpenSUSE Security Update for systemd (openSUSE-SU-2022:0043-1)"},{"cve":"CVE-2021-3997","qid":"751736","title":"OpenSUSE Security Update for systemd (openSUSE-SU-2022:0539-1)"},{"cve":"CVE-2021-3997","qid":"751998","title":"SUSE Enterprise Linux Security Update for systemd (SUSE-SU-2022:0043-1)"},{"cve":"CVE-2021-3997","qid":"752002","title":"SUSE Enterprise Linux Security Update for systemd (SUSE-SU-2022:0539-1)"},{"cve":"CVE-2021-3997","qid":"903771","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for systemd (10648)"}]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ID":"CVE-2021-3997","ASSIGNER":"secalert@redhat.com","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"vendor_name":"n/a","product":{"product_data":[{"product_name":"systemd","version":{"version_data":[{"version_value":"Fixed in v251-rc1"}]}}]}}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-674 - Uncontrolled Recursion"}]}]},"references":{"reference_data":[{"refsource":"MISC","name":"https://bugzilla.redhat.com/show_bug.cgi?id=2024639","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2024639"},{"refsource":"MISC","name":"https://www.openwall.com/lists/oss-security/2022/01/10/2","url":"https://www.openwall.com/lists/oss-security/2022/01/10/2"},{"refsource":"MISC","name":"https://github.com/systemd/systemd/commit/5b1cf7a9be37e20133c0208005274ce4a5b5c6a1","url":"https://github.com/systemd/systemd/commit/5b1cf7a9be37e20133c0208005274ce4a5b5c6a1"},{"refsource":"MISC","name":"https://access.redhat.com/security/cve/CVE-2021-3997","url":"https://access.redhat.com/security/cve/CVE-2021-3997"},{"refsource":"GENTOO","name":"GLSA-202305-15","url":"https://security.gentoo.org/glsa/202305-15"}]},"description":{"description_data":[{"lang":"eng","value":"A flaw was found in systemd. An uncontrolled recursion in systemd-tmpfiles may lead to a denial of service at boot time when too many nested directories are created in /tmp."}]}},"nvd":{"publishedDate":"2022-08-23 20:15:00","lastModifiedDate":"2023-05-03 12:15:00","problem_types":["CWE-674"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":5.5,"baseSeverity":"MEDIUM"},"exploitabilityScore":1.8,"impactScore":3.6}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:systemd_project:systemd:*:*:*:*:*:*:*:*","versionStartIncluding":"240","versionEndExcluding":"250.2","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"3997","Ordinal":"221730","Title":"CVE-2021-3997","CVE":"CVE-2021-3997","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"3997","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}