Description
The PerlIO implementation in Perl 5.8.0, when installed with setuid support (sperl), allows local users to create arbitrary files via the PERLIO_DEBUG variable.
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.8.4-6 | — |
| Debian 13 | perl | 5.8.4-6 | — |
| Debian 12 | perl | 5.8.4-6 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 4 | perl | 3:5.8.5-12.1 | RHSA-2005:103 |
| RHEL 4 | perl-suidperl | 3:5.8.5-12.1.1 | RHSA-2005:103 |
| RHEL 3 | perl +1 | 2:5.8.0-89.10 | RHSA-2005:105 |
| RHEL 3 | perl-CGI | 2:2.81-89.10 | RHSA-2005:105 |
| RHEL 3 | perl-CPAN | 2:1.61-89.10 | RHSA-2005:105 |
| RHEL 3 | perl-DB_File | 2:1.804-89.10 | RHSA-2005:105 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- Setuid perl - 'PerlIO_Debug()' Root Owned File Creation Privilege Escalation EDB-792 · local · Feb 7, 2005 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 2
- RHSA-2005:105 Red Hat Security Advisory: perl security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2005:103 Red Hat Security Advisory: perl security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
References
- 12426 vdb-entry
- 21646 third-party-advisory
- RHSA-2005:105 vendor-advisory
- 14120 third-party-advisory
- 2005-0003 vendor-advisory
- RHSA-2005:103 vendor-advisory
- perl-perliodebug-file-overwrite(19207) vdb-entry
- 20050202 [USN-72-1] Perl vulnerabilities mailing-list
- CLSA-2006:1056 vendor-advisory
- FLSA-2006:152845 vendor-advisory
- oval:org.mitre.oval:def:10404 vdb-entry signature
- MDKSA-2005:031 vendor-advisory
- 20050207 DMA[2005-0131a] - 'Setuid Perl PERLIO_DEBUG root owned file creation' mailing-list
- http://www.digitalmunition.com/DMA%5B2005-0131a%5D.txt
- GLSA-200502-13 vendor-advisory
- http://support.avaya.com/elmodocs2/security/ASA-2006-163.htm