Skip to content
Path traversal Write-up Intermediate

Urgent: CVE-2025–47273 Exposes Python SetupTools — Here’s How to Stay Secure

The official Python Docker image used an outdated version of setuptools (65.5.1) that is vulnerable to a path traversal flaw (CVE-2025-47273). An attacker could write files anywhere on the system with the same permissions as the Python process, potentially leading to remote code execution.

M Sadewa Wicaksana Follow

Published on infosecwriteups.com

On a bright of morning in a small town, the sound of birds concert in the air. The cool of the wind also increase this atmosphere more comfort for this cozy day.

M Sadewa Wicaksana, on infosecwriteups.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the path traversal vulnerability in setuptools version 65.5.1, which is included in the official Python Docker image.

Impact

An attacker could save files anywhere on the system with the same access as the Python program, which might even let them run malicious code remotely depending on the situation.

What the attacker needed

Use official Python Docker image with setuptools 65.5.1; attacker can supply a malicious package or influence install

The fix

The official Docker image should be updated to use setuptools version 78.1.1 or later, or users should build their own image with the upgraded setuptools.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Setuptools is a tool that helps install Python packages. A path traversal bug means a malicious package could trick setuptools into writing files outside the intended folder, like into system directories. If an attacker can write files anywhere, they might be able to replace important files and run their own code.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.