cve.bz

CVE-2021-3584 OS Command Injection

7.2 highEPSS 4.0%Fix available

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

On this page
A server side remote code execution vulnerability was found in Foreman project. A authenticated attacker could use Sendmail configuration options to overwrite the defaults and perform command injection. The highest threat from this vulnerability is to confidentiality, integrity and availability of system. Fixed releases are 2.4.1, 2.5.1, 3.0.0.

Severity

CVSS 3.1

7.2 high
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
EPSS
4.0% (unchanged from 4.0% a week ago; 4.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 91st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
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-3584 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3584?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3584?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-3584 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
theforeman:foremanbefore 2.4.1
theforeman:foremanfrom 2.5.0 before 2.5.1
theforeman:foreman3.0.0:rc1
theforeman:foreman3.0.0:rc2
redhat:satellite6.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Red Hatsatellite:6.11::el7candlepin0:4.1.13-1.el7satRHSA-2022:5498
Red Hatsatellite:6.11::el7tfm-rubygem-actionpack0:6.0.4.7-1.el7satRHSA-2022:5498
Red Hatsatellite:6.11::el7tfm-rubygem-puma, tfm-rubygem-puma-debuginfo0:5.6.2-1.el7satRHSA-2022:5498
Red Hatsatellite:6.11::el7tfm-rubygem-sidekiq0:5.2.10-1.el7satRHSA-2022:5498
Red Hatsatellite:6.11::el7, satellite_capsule:6.11::el7libsolv0:0.7.22-1.el7pcRHSA-2022:5498
Red Hatsatellite:6.11::el7, satellite_capsule:6.11::el7, satellite_utils:6.11::el7foreman0:3.1.1.21-2.el7satRHSA-2022:5498
Red Hatsatellite:6.11::el7, satellite_capsule:6.11::el7, satellite_utils:6.11::el7satellite0:6.11.0-2.el7satRHSA-2022:5498
Red Hatsatellite:6.11::el8candlepin0:4.1.13-1.el8satRHSA-2022:5498
Red Hatsatellite:6.11::el8rubygem-actionpack0:6.0.4.7-1.el8satRHSA-2022:5498
Red Hatsatellite:6.11::el8rubygem-puma, rubygem-puma-debuginfo, rubygem-puma-debugsource0:5.6.2-1.el8satRHSA-2022:5498
Red Hatsatellite:6.11::el8rubygem-sidekiq0:5.2.10-1.el8satRHSA-2022:5498
Red Hatsatellite:6.11::el8, satellite_capsule:6.11::el8libsolv0:0.7.22-1.el8pcRHSA-2022:5498
5 more for Red Hat in the JSON and on Red Hat's page.
Rocky Linux8libdb0:5.3.28-42.el8_4RLSA-2022:5498

From the distributions' data via OSV.dev: Red Hat Security Data © Red Hat, Inc., CC BY 4.0; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

This vulnerability can be mitigated by setting following two values in `/etc/foreman/settings.yaml` file which will render them read-only from the application:

:sendmail_location: '/usr/sbin/sendmail'

:sendmail_arguments: '-i'

ProductPackageStateAdvisory
Red Hat Satellite 6.11 for RHEL 7foreman-0:3.1.1.21-2.el7satFixed 2022-07-05RHSA-2022:5498
Red Hat Satellite 6.11 for RHEL 8foreman-0:3.1.1.21-2.el8satFixed 2022-07-05RHSA-2022:5498

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-3584.

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

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON