Description
The canonpath function in the File::Spec module in PathTools before 3.62, as used in Perl, does not properly preserve the taint attribute of data, which might allow context-dependent attackers to bypass the taint protection mechanism via a crafted string.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | perl | 5.22.1-4 | — |
| Debian 13 | perl | 5.22.1-4 | — |
| Debian 12 | perl | 5.22.1-4 | — |
| Debian 8 | perl | 5.20.2-3+deb8u2 | DSA-3441-1 |
Advisories 1
- DSA-3441-1 perl - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- GLSA-201701-75 vendor-advisory
- 80504 vdb-entry
- 1034772 vdb-entry
- FEDORA-2016-4ca904238f vendor-advisory
- DSA-3441 vendor-advisory
- FEDORA-2016-69e506e02d vendor-advisory
- USN-2878-1 vendor-advisory
- openSUSE-SU-2016:0881 vendor-advisory
- https://www.oracle.com/security-alerts/cpujul2020.html
- http://cpansearch.perl.org/src/RJBS/PathTools-3.62/Changes
- https://rt.perl.org/Public/Bug/Display.html?id=126862
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731
- http://www.oracle.com/technetwork/security-advisory/cpujul2017-3236622.html