CVE-2021-40348: spacewalk_project spacewalk Code Injection
Vulnerability summary
CVE-2021-40348 is a high (CVSS 9.3) Code Injection vulnerability in spacewalk_project spacewalk. EPSS estimates a 1.80% chance of exploitation in the next 30 days, higher than 78.1% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 2 · Related 2Timeline
- 01-11-2021PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
Description
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 system. This is fixed in Uyuni spacewalk-admin 4.3.2-1.
CVSS metrics
2 scores · 1 source · 2 versionsEPSS trend
Probability
1.80%
Chance of exploitation in the next 30 days
Percentile
78%
Versus all other CVEs
30-day change
0.00 pp
From 1.80% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (openwall.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Spacewalk_project1 product
- spacewalk2.10
Suse1 product
- spacewalk-admin&distro=SUSE Manager Server Module 4.1< 4.1.10-3.15.1
Uyuni-project1 product
- uyuni2021.08
3 vendors · 3 products
References
6 links- www.openwall.com/lists/oss-security/2021/10/28/4X Refsource MISCExploitMailing ListPatchThird Party Advisory
- github.com/uyuni-project/uyuni/commit/790c7388efac6923c5475e01c1ff718dffa9f052X Refsource CONFIRMPatchThird Party Advisory