Intel

AIKIDO-2024-10529

python-semantic-release is vulnerable to Path Traversal

Path Traversal Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Dec 10, 2024

85

High Risk

This Affects:

pythonpython-semantic-release
8.0.0 - 9.8.7
Fixed in 9.8.8
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to path traversal due to improper handling of paths in the RuntimeContext class within the semantic_release/cli/config.py file. The vulnerability arises from using Path.resolve() without Path.absolute(), which may return relative paths on Windows for non-existent directories. Exploiting this flaw could allow attackers to access or modify files outside the intended repository directory, potentially compromising the system's integrity or exposing sensitive data.

Who does this affect?

You are affected if you are using a vulnerable version of the package and you are on Windows.

Background info

python-semantic-release is vulnerable to Path Traversal in versions 8.0.0 - 9.8.7.

How to fix this

Upgrade the python-semantic-release library to the patch version.