CVE-2020-15141 Path Traversal in openapi-python-client

Low 3.0 Published Updated

Attackers can write files to arbitrary locations on disk by providing a malicious OpenAPI document to the client generator.

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-2020-15141?

CVE-2020-15141 is a low-severity path traversal vulnerability in triaxtec openapi-python-client, published on 14 Aug 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

In openapi-python-client before version 0.5.3, there is a path traversal vulnerability. If a user generated a client using a maliciously crafted OpenAPI document, it is possible for generated files to be placed in arbitrary locations on disk.

Weakness: CWE-22

Which versions are affected by CVE-2020-15141?

3 open source packages ship an affected version, including openapi-python-client. It affects 1 product.

PackageAffectedFixed in
openapi-python-client PyPIAll versions0.5.3
openapi-python-client PyPIAll versions0.5.3
openapi-python-client PyPIAll versions0.5.3

Products include Openapi-Python-Client Project Openapi-Python-Client.

How do I fix CVE-2020-15141?

Upgrade openapi-python-client to 0.5.3 or later.

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

Is CVE-2020-15141 being exploited?

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

Sources

Also known as GHSA-7wgr-7666-7pwj, PYSEC-2020-70.

Is CVE-2020-15141 in your software?

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

Check your SBOMs for free