Advisory

UBUNTU-CVE-2026-25645

Also known as: CVE-2026-25645

Summary

The record has no summary.

Details

Requests is a HTTP library. Prior to version 2.33.0, the requests.utils.extract_zipped_paths() utility function uses a predictable filename when extracting files from zip archives into the system temporary directory. If the target file already exists, it is reused without validation. A local attacker with write access to the temp directory could pre-create a malicious file that would be loaded in place of the legitimate one. Standard usage of the Requests library is not affected by this vulnerability. Only applications that call extract_zipped_paths() directly are impacted. Starting in version 2.33.0, the library extracts files to a non-deterministic location. If developers are unable to upgrade, they can set TMPDIR in their environment to a directory with restricted write access.

Severity

Medium Basis: CVSS v3 score 4.4, vector CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N

Dates

Published
2026-03-25 17:16 UTC
Modified
2026-10-17 12:56 UTC

Affected packages and fixes

requests

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 2.25.1+dfsg-2ubuntu0.4 (ecosystem)

Fixed versions

2.25.1+dfsg-2ubuntu0.4

Fix

  • Fixed version 2.25.1+dfsg-2ubuntu0.4
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

requests

Debian packages (deb) · Ubuntu 24.04

Affected

  • introduced 0, fixed 2.31.0+dfsg-1ubuntu1.2 (ecosystem)

Fixed versions

2.31.0+dfsg-1ubuntu1.2

Fix

  • Fixed version 2.31.0+dfsg-1ubuntu1.2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

python-pip

Debian packages (deb) · Ubuntu 25.10

Affected

  • introduced 0 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

requests

Debian packages (deb) · Ubuntu 25.10

Affected

  • introduced 0 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

python-pip

Debian packages (deb) · Ubuntu 26.10

Affected

  • introduced 0 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

requests

Debian packages (deb) · Ubuntu 26.04

Affected

  • introduced 0, fixed 2.32.5+dfsg-1ubuntu1.1 (ecosystem)

Fixed versions

2.32.5+dfsg-1ubuntu1.1

Fix

  • Fixed version 2.32.5+dfsg-1ubuntu1.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences