CVE-2021-40348 Code injection in n/a
An attacker can inject arbitrary code into a root-owned file via the rhn-config-satellite.pl script, leading to code execution and privilege escalation.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2021-40348?
CVE-2021-40348 is a high-severity code injection vulnerability in n/a, published on 1 Nov 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-94
Which versions are affected by CVE-2021-40348?
It affects 2 products.
Linux distribution packages (1)
spacewalk-admin SUSE:Manager Server Module 4.1 | All versions | 4.1.10-3.15.1 |
Products include Spacewalk Project Spacewalk, Uyuni-Project Uyuni.
How do I fix CVE-2021-40348?
Apply the vendor's patch.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2021-40348 being exploited?
There is no known exploitation of CVE-2021-40348 in the wild and no public exploit code.
Sources
Also known as GHSA-h847-jmmj-x7rc, SUSE-SU-2021:3562-1.