CVE-2017-9274 osc executes spec code during "osc commit"

High 7.8 Published Updated

Attackers can execute arbitrary shell commands as the packager by crafting malicious RPM SPEC files processed by the source validator service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2017-9274?

CVE-2017-9274 is a high-severity command injection vulnerability in SUSE obs-service-source_validator, published on 1 Mar 2018. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

A shell command injection in the obs-service-source_validator before 0.7 could be used to execute code as the packager when checking RPM SPEC files with specific macro constructs.

Weakness: CWE-78

Which versions are affected by CVE-2017-9274?

It affects 1 product.

Linux distribution packages (1)
obs-service-source_validator openSUSE:TumbleweedAll versions0.21-1.3

Products include Opensuse Obs-Service-Source Validator.

How do I fix CVE-2017-9274?

Upgrade to a fixed version.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2017-9274 being exploited?

There is no known exploitation of CVE-2017-9274 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2017-9274, GHSA-rmgp-j5rm-7ghv, UBUNTU-CVE-2017-9274, openSUSE-SU-2024:11106-1.

Is CVE-2017-9274 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free