Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-40348
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:04 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-40348
Complete source record
{
"id": "218bfae201c2fe7dfa0ce312f9bc2bac6a4616ee859a9f6282002205759c337a",
"url": "https://osv.dev/vulnerability/CVE-2021-40348",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-40348",
"summary": "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.",
"evidence": "osv:CVE-2021-40348",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-40348",
"aliases": [
"CVE-2021-40348"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/uyuni-project/uyuni",
"type": "GIT",
"events": [
{
"introduced": "d870a30252b57abe3b0f32e81fe84595a1d3f5b8"
},
{
"last_affected": "d870a30252b57abe3b0f32e81fe84595a1d3f5b8"
},
{
"fixed": "790c7388efac6923c5475e01c1ff718dffa9f052"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:uyuni-project:uyuni:2021.08:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2021.08"
},
{
"last_affected": "2021.08"
}
],
"source": "CPE_STRING"
},
{
"range": [
{
"fixed": "790c7388efac6923c5475e01c1ff718dffa9f052"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"2021.08",
"Uyuni-2021.08"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-40348.json"
}
}
],
"modified": "2026-10-20T10:55:34.430866594Z",
"provider": "osv",
"references": [
"https://github.com/uyuni-project/uyuni/commit/790c7388efac6923c5475e01c1ff718dffa9f052"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:spacewalk_project:spacewalk:2.10:*:*:*:*:*:*:*"
],
"vendor_product": "spacewalk_project:spacewalk",
"extracted_events": [
{
"range": [
{
"introduced": "2.10"
},
{
"last_affected": "2.10"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2021-40348",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 387079,
"published_at": "2021-11-01T05:15:07.007+00:00"
}