Advisory

DEBIAN-CVE-2025-40909

Also known as: CVE-2025-40909

Summary

The record has no summary.

Details

Perl threads have a working directory race condition where file operations may target unintended paths. If a directory handle is open at thread creation, the process-wide current working directory is temporarily changed in order to clone that handle for the new thread, which is visible from any third (or more) thread already running. This may lead to unintended operations such as loading code or accessing files from unexpected locations, which a local attacker may be able to exploit. The bug was introduced in commit 11a11ecf4bea72b17d250cfb43c897be1341861e and released in Perl version 5.13.6

Severity

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

Dates

Published
2025-05-30 13:15 UTC
Modified
2026-09-01 20:05 UTC

Affected packages and fixes

perl

Debian packages (deb) · Debian 12

Affected

  • introduced 0, fixed 5.36.0-7+deb12u3 (ecosystem)

Fixed versions

5.36.0-7+deb12u3

Fix

  • Fixed version 5.36.0-7+deb12u3
    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.

perl

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 5.40.1-5 (ecosystem)

Fixed versions

5.40.1-5

Fix

  • Fixed version 5.40.1-5
    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.

perl

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 5.40.1-5 (ecosystem)

Fixed versions

5.40.1-5

Fix

  • Fixed version 5.40.1-5
    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: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences