cve.bz

CVE-2021-3621 OS Command Injection

8.8 highEPSS 2.6%Fix available

High (8.8). EPSS 2.6% estimated probability of exploitation activity in the next 30 days.

On this page
A flaw was found in SSSD, where the sssctl command was vulnerable to shell command injection via the logs-fetch and cache-expire subcommands. This flaw allows an attacker to trick the root user into running a specially crafted sssctl command, such as via sudo, to gain root access. The highest threat from this vulnerability is to confidentiality, integrity, as well as system availability.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
2.6% (unchanged from 2.6% a week ago; 2.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 86th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
CWE-77 Improper Neutralization of Special Elements used in a Command
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-3621 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3621?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3621?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-3621 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
fedoraproject:sssd2.6.0
redhat:virtualization4.0
redhat:virtualization_host4.0
redhat:enterprise_linux6.0
redhat:enterprise_linux7.0
redhat:enterprise_linux8.0
redhat:enterprise_linux_eus8.1
redhat:enterprise_linux_eus8.2
redhat:enterprise_linux_server_aus8.2
redhat:enterprise_linux_server_aus8.4
redhat:enterprise_linux_server_tus8.2
redhat:enterprise_linux_server_tus8.4
fedoraproject:fedora34

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9sssd1.15.0-3+deb9u2DLA-2758-1
Debian10sssd1.16.3-3.2+deb10u1DLA-3436-1
Debian11sssd2.4.1-2+deb11u1DLA-4047-1
Debian12, 13, 14sssd2.5.2-1DEBIAN-CVE-2021-3621
Ubuntu18.04:LTSsssd1.16.1-1ubuntu1.8UBUNTU-CVE-2021-3621 USN-5067-1
Ubuntu20.04:LTSsssd2.2.3-3ubuntu0.7UBUNTU-CVE-2021-3621 USN-5067-1
Ubuntu22.04:LTSsssd2.4.1-2ubuntu4UBUNTU-CVE-2021-3621
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationsssd, sssd-ad, sssd-ipa and 32 more0:1.16.5-10.el7_9.10RHSA-2021:3336
Red Hatenterprise_linux:7::computenodesssd-debuginfo, libipa_hbac-devel, libsss_idmap-devel and 5 more0:1.16.5-10.el7_9.10RHSA-2021:3336
Red Hatenterprise_linux:7::hypervisorredhat-virtualization-host, redhat-virtualization-host-image-update0:4.3.18-20210903.0.el7_9RHSA-2021:3477
Red Hatenterprise_linux:8::baseossssd, sssd-ad, sssd-ipa and 54 more0:2.4.0-9.el8_4.2RHSA-2021:3151
Red Hatenterprise_linux:8::crbsssd-debuginfo, sssd-debugsource, sssd-ad-debuginfo and 26 more0:2.4.0-9.el8_4.2RHSA-2021:3151
Red Hatrhel_eus:8.1::baseossssd, sssd-ad, sssd-ipa and 54 more0:2.2.0-19.el8_1.2RHSA-2021:3178
Red Hatrhel_eus:8.1::crbsssd-debuginfo, sssd-debugsource, sssd-ad-debuginfo and 26 more0:2.2.0-19.el8_1.2RHSA-2021:3178
Red Hatrhel_eus:8.2::baseossssd, sssd-ad, sssd-ipa and 54 more0:2.2.3-20.el8_2.1RHSA-2021:3365
Red Hatrhel_eus:8.2::crbsssd-debuginfo, sssd-debugsource, sssd-ad-debuginfo and 26 more0:2.2.3-20.el8_2.1RHSA-2021:3365
Red Hatrhev_hypervisor:4.4::el8redhat-virtualization-host, redhat-virtualization-host-image-update0:4.4.7-20210804.0.el8_4RHSA-2021:3235
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 7 moresssd1.16.1-8.64.1SUSE-SU-2022:0826-1
SUSELinux Enterprise Module for Basesystem 15 SP2sssd1.16.1-17.14.1SUSE-RU-2021:3185-1
SUSELinux Enterprise Module for Basesystem 15 SP3sssd1.16.1-23.11.1SUSE-SU-2021:2941-1
SUSELinux Enterprise Module for Basesystem 15 SP4sssd2.5.2-150400.4.5.14SUSE-SU-2022:2763-1
SUSELinux Enterprise Server 12 SP4-LTSS, Linux Enterprise Server for SAP Applications 12 SP4, OpenStack Cloud 9 and 1 moresssd1.16.1-4.40.1SUSE-SU-2022:1258-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5sssd1.16.1-7.22.4SUSE-SU-2021:2873-1
openSUSELeap 15.3sssd1.16.1-23.11.1openSUSE-SU-2021:2941-1
openSUSELeap 15.4sssd2.5.2-150400.4.5.14SUSE-SU-2022:2763-1
openSUSETumbleweedsssd2.9.3-2.1openSUSE-SU-2024:13446-1
AlmaLinux8libsss_nss_idmap-devel2.4.0-9.el8_4.2ALSA-2021:3151
Rocky Linux8sssd0:2.4.0-9.el8_4.2RLSA-2021:3151

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This flaw is exploitable only when root is tricked into running a specially crafted command. The most likely scenario is when users are allowed to run a sssctl command via a dedicated `sudo` rule.

Red Hat's mitigation

Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7sssd-0:1.16.5-10.el7_9.10Fixed 2021-08-31RHSA-2021:3336
Red Hat Enterprise Linux 8sssd-0:2.4.0-9.el8_4.2Fixed 2021-08-16RHSA-2021:3151
Red Hat Enterprise Linux 8.1 Extended Update Supportsssd-0:2.2.0-19.el8_1.2Fixed 2021-08-17RHSA-2021:3178
Red Hat Enterprise Linux 8.2 Extended Update Supportsssd-0:2.2.3-20.el8_2.1Fixed 2021-08-31RHSA-2021:3365
Red Hat Virtualization 4 for Red Hat Enterprise Linux 7redhat-virtualization-host-0:4.3.18-20210903.0.el7_9Fixed 2021-09-09RHSA-2021:3477
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8redhat-virtualization-host-0:4.4.7-20210804.0.el8_4Fixed 2021-08-19RHSA-2021:3235
Red Hat Enterprise Linux 6sssdOut of support scope
Red Hat Enterprise Linux 9sssdNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-3621.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High
  • CAPEC-40 Manipulating Writeable Terminal Devices Likelihood: High · Severity: Very High
  • CAPEC-75 Manipulating Writeable Configuration Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-136 LDAP Injection Likelihood: High · Severity: High
  • CAPEC-183 IMAP/SMTP Command Injection Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-77.

References

Check your stackJSON