DEBIAN-CVE-2025-40909
Record from OSV · Published May 30, 2025
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
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| perl | Debian:13 | 5.40.1-5 |
| perl | Debian:14 | 5.40.1-5 |
| perl | Debian:12 | 5.36.0-7+deb12u3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Debian:13 | perl | 0 |
| Debian:14 | perl | 0 |
| Debian:12 | perl | 0, 5.36.0-7, 5.36.0-7+deb12u1 |
Timeline
- May 30, 2025 CVE Published
- Sep 1, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln DEBIAN-CVE-2025-40909
vulnetix vdb fixes DEBIAN-CVE-2025-40909
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/DEBIAN-CVE-2025-40909/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart