Advisory

UBUNTU-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-11-11 09:39 UTC

Affected packages and fixes

perl

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 5.34.0-3ubuntu1.5 (ecosystem)

Fixed versions

5.34.0-3ubuntu1.5

Fix

  • Fixed version 5.34.0-3ubuntu1.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) · Ubuntu 24.04

Affected

  • introduced 0, fixed 5.38.2-3.2ubuntu0.2 (ecosystem)

Fixed versions

5.38.2-3.2ubuntu0.2

Fix

  • Fixed version 5.38.2-3.2ubuntu0.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.

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