CVE-2021-40348: Spacewalk 2.10, and derivatives such as Uyuni 2021.08, allows code injection
CVE-2021-40348 is a high-severity flaw (CVSS 8.8) affecting uyuni, spacewalk. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
Spacewalk 2.10, and derivatives such as Uyuni 2021.08, allows code injection. rhn-config-satellite.pl doesn't sanitize the configuration filename used to append Spacewalk-specific key-value pair. The script is intended to be run by the tomcat user account with Sudo, according to the installation setup. This can lead to the ability of an attacker to use --option to append arbitrary code to a root-owned file that eventually will be executed by the
Why this priority
- High severity
- Public exploit reference
No fix is published yet: follow the downgrade or mitigation steps.
Risk facts
| CVSS score | 8.8 (High) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 1.8% (top 22%) |
| CISA exploited list | No |
| Weakness | CWE-94 |
| Published | 2021-11-01 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-40348?
uyuni: downgrade or apply the listed mitigation; spacewalk: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2021-40348 being exploited?
CVE-2021-40348 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-40348 affect?
CVE-2021-40348 affects uyuni, spacewalk. Severity is high (CVSS 8.8). Spacewalk 2.10, and derivatives such as Uyuni 2021.08, allows code injection. rhn-config-satellite.pl doesn't sanitize the configuration filename used to append Spacewalk-specific key-value pair. The script is intended to be run by the tomc
How urgent is CVE-2021-40348?
Priority 55/100. High severity; Public exploit reference
Software pages
Apache Tomcat vulnerabilities · Sudo vulnerabilities
Related CVEs
- CVE-2022-43754 LOW 2.6 UPGRADE UPGRADE An Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in space
- CVE-2022-43753 MEDIUM 4.3 UPGRADE UPGRADE A Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in spacewalk/Uy
- CVE-2022-31255 MEDIUM 4.3 UPGRADE UPGRADE An Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in spacewalk/U