CVE-2018-12476 obs-service-extract_file's outfilename parameter allows to write files outside of package directory

Medium 4.3 Published Updated

Remote attackers with repository control can overwrite local files via path traversal in obs-service-tar_scm, requiring an upgrade to mitigate.

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-2018-12476?

CVE-2018-12476 is a medium-severity path traversal vulnerability in SUSE Factory, published on 27 Jan 2020. 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

Relative Path Traversal vulnerability in obs-service-tar_scm of SUSE Linux Enterprise Server 15; openSUSE Factory allows remote attackers with control over a repository to overwrite files on the machine of the local user if a malicious service is executed. This issue affects: SUSE Linux Enterprise Server 15 obs-service-tar_scm versions prior to 0.9.2.1537788075.fefaa74:. openSUSE Factory obs-service-tar_scm versions prior to 0.9.2.1537788075.fefaa74.

Weakness: CWE-22, CWE-23

Which versions are affected by CVE-2018-12476?

It affects 1 product.

Products include Suse Obs-Service-Tar Scm.

How do I fix CVE-2018-12476?

Upgrade to a fixed version.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2018-12476 being exploited?

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

Sources

Also known as GHSA-7vq9-fwhq-w55p.

Is CVE-2018-12476 in your software?

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

Check your SBOMs for free