CVE-2018-12477 obs-service-refresh_patches can be tricked into deleting '..' or other unrelated directories

Low 3.5 Published Updated

Remote attackers can trick the Open Build Service into deleting arbitrary directories, including parent directories, via improper CRLF sequence handling.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2018-12477?

CVE-2018-12477 is a low-severity path traversal vulnerability in Opensuse Leap, published on 9 Oct 2018. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

A Improper Neutralization of CRLF Sequences vulnerability in Open Build Service allows remote attackers to cause deletion of directories by tricking obs-service-refresh_patches to delete them. Affected releases are openSUSE Open Build Service: versions prior to d6244245dda5367767efc989446fe4b5e4609cce.

Weakness: CWE-93

Which versions are affected by CVE-2018-12477?

It affects 1 product.

Linux distribution packages (1)
obs-service-refresh_patches openSUSE:TumbleweedAll versions0.3.9+git.1625238904.d59f20e-1.2

Products include Opensuse Leap.

How do I fix CVE-2018-12477?

Apply the vendor's patch.

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

Is CVE-2018-12477 being exploited?

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

All Opensuse Leap vulnerabilities

Sources

Also known as GHSA-vp32-rg8f-2jxg, openSUSE-SU-2024:11105-1.

Is CVE-2018-12477 in your software?

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

Check your SBOMs for free