Arbitrary Code Injection Affecting spacewalk-admin package, versions <0:2.10.1-1.0.1.el7


Severity

Recommended
0.0
high
0
10

Based on Oracle Linux security rating.

Threat Intelligence

EPSS
1.8% (77th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ORACLE7-SPACEWALKADMIN-5500157
  • published9 May 2023
  • disclosed1 Nov 2021

Introduced: 1 Nov 2021

CVE-2021-40348  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade Oracle:7 spacewalk-admin to version 0:2.10.1-1.0.1.el7 or higher.
This issue was patched in ELSA-2023-12331.

NVD Description

Note: Versions mentioned in the description apply only to the upstream spacewalk-admin package and not the spacewalk-admin package as distributed by Oracle. See How to fix? for Oracle:7 relevant fixed versions and status.

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 Base Scores

version 3.1