{"schemaVersion":3,"id":"CVE-2021-40348","aliases":["SUSE-SU-2021:3562-1"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-11-01T04:32:06.000Z","modified":"2024-08-04T02:44:09.485Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.3,"severity":"high","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:M/Au:N/C:C/I:C/A:C","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":9.3,"severity":"high","vector":"AV:N/AC:M/Au:N/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01799,"percentile":0.78153,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01799},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01799,"percentile":0.78153}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01799,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01799,"percentile":0.78153}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_CB64247D9415748B","name":"Exploit Reference (openwall.com)","source":"reference","url":"http://www.openwall.com/lists/oss-security/2021/10/28/4","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-94","name":"Improper Control of Generation of Code ('Code Injection')","description":"The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/94.html"}],"affected":[{"vendor":"suse","product":"spacewalk-admin&distro=SUSE Manager Server Module 4.1","name":"spacewalk-admin","label":"spacewalk-admin&distro=SUSE Manager Server Module 4.1","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/spacewalk-admin&distro=SUSE Manager Server Module 4.1","purlType":"rpm","versions":[{"text":"< 4.1.10-3.15.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.1.10-3.15.1","eol":null,"hubHref":null},{"vendor":"spacewalk_project","product":"spacewalk","name":"spacewalk","label":"spacewalk","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"2.10","noFixRecorded":false,"fixedIn":null}],"versionsText":"2.10","eol":null,"hubHref":"/vendor/spacewalk_project/spacewalk"},{"vendor":"uyuni-project","product":"uyuni","name":"uyuni","label":"uyuni","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"2021.08","noFixRecorded":false,"fixedIn":null}],"versionsText":"2021.08","eol":null,"hubHref":"/vendor/uyuni-project/uyuni"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"http://www.openwall.com/lists/oss-security/2021/10/28/4","label":"www.openwall.com/lists/oss-security/2021/10/28/4","hostname":"www.openwall.com","tags":["X Refsource MISC","Exploit","Mailing List","Patch","Third Party Advisory"]},{"url":"https://github.com/uyuni-project/uyuni/commit/790c7388efac6923c5475e01c1ff718dffa9f052","label":"github.com/uyuni-project/uyuni/commit/790c7388efac6923c5475e01c1ff718dffa9f052","hostname":"github.com","tags":["X Refsource CONFIRM","Patch","Third Party Advisory"]},{"url":"https://www.suse.com/support/update/announcement/2021/suse-su-20213562-1/","label":"www.suse.com/support/update/announcement/2021/suse-su-20213562-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://bugzilla.suse.com/1190040","label":"bugzilla.suse.com/1190040","hostname":"bugzilla.suse.com","tags":["REPORT"]},{"url":"https://bugzilla.suse.com/1190300","label":"bugzilla.suse.com/1190300","hostname":"bugzilla.suse.com","tags":["REPORT"]},{"url":"https://www.suse.com/security/cve/CVE-2021-40348","label":"www.suse.com/security/cve/CVE-2021-40348","hostname":"www.suse.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["SUSE-RU-2021:3551-1","SUSE-SU-2021:3561-1"],"duplicates":[],"related":["SUSE-RU-2021:3551-1","SUSE-SU-2021:3561-1"]},"timeline":[{"kind":"published","date":"2021-11-01T04:32:06.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T02:44:09.485Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T13:13:08.988Z","stale":false,"partial":false}}