Path Traversal Affecting python-semantic-release package, versions [,9.8.8)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-PYTHON-PYTHONSEMANTICRELEASE-8161345
  • published 3 Oct 2024
  • disclosed 1 Oct 2024
  • credit Unknown

Introduced: 1 Oct 2024

CVE NOT AVAILABLE CWE-22 Open this link in a new tab

How to fix?

Upgrade python-semantic-release to version 9.8.8 or higher.

Overview

python-semantic-release is an Automatic Semantic Versioning for Python projects

Affected versions of this package are vulnerable to Path Traversal in the RuntimeContext class of semantic_release/cli/config.py file, stems from using Path.resolve() without Path.absolute(), which may return relative paths on Windows for non-existent directories. This could allow attackers to access or modify files outside the intended repository directory.

Note: This only affects Windows users.

References

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
8.7 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    High
  • Integrity (VI)
    None
  • Availability (VA)
    None
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None