CVE-2021-40348: spacewalk_project spacewalk Improper Control of Generation of Code
Vulnerability summary
CVE-2021-40348 is a high (CVSS 9.3) Improper Control of Generation of Code vulnerability in spacewalk_project spacewalk. EPSS estimates a 1.80% chance of exploitation in the next 30 days, higher than 79.2% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (reference, Date unknown)
Source freshness unavailable
How is this decided?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
79%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.80% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (openwall.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
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