Race condition in the rmtree function in File::Path.pm in Perl before 5.8.4 allows local users to create arbitrary setuid binaries in the tr
Race condition in the rmtree function in File::Path.pm in Perl before 5.8.4 allows local users to create arbitrary setuid binaries in the tree being deleted, a different vulnerability than CVE-2004-0452.
- Published
- May 2, 2005
- Updated
- Jun 16, 2026
- EPSS
- 0.4% · 30th percentile
- CWE
- —
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
4
Monitor
Low priority for now.
- CVSS
- 4 / 40 · 1.2 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.4%
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| larry wall | perl | cpe:2.3:a:larry_wall:perl |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- larry wall perl5.8.0
- larry wall perl5.8.1
- larry wall perl5.8.3
- larry wall perl5.8.4
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | perl | before 5.8.4-7 | 5.8.4-7 |
| Debian:3.0 | perl | before 5.6.1-8.9 | 5.6.1-8.9 |
| Debian:4.0 | perl | before 5.8.8-7etch5 | 5.8.8-7etch5 |
| Red Hat:enterprise_linux:3::as | perl | before 2:5.8.0-90.4 | 2:5.8.0-90.4 |
| Red Hat:enterprise_linux:3::as | perl-CGI | before 2:2.89-90.4 | 2:2.89-90.4 |
| Red Hat:enterprise_linux:3::as | perl-CPAN | before 2:1.61-90.4 | 2:1.61-90.4 |
| Red Hat:enterprise_linux:3::as | perl-DB_File | before 2:1.806-90.4 | 2:1.806-90.4 |
| Red Hat:enterprise_linux:3::as | perl-suidperl | before 2:5.8.0-90.4 | 2:5.8.0-90.4 |
| Red Hat:enterprise_linux:4::as | perl | before 3:5.8.5-16.RHEL4 | 3:5.8.5-16.RHEL4 |
| Red Hat:enterprise_linux:4::as | perl-debuginfo | before 3:5.8.5-16.RHEL4 | 3:5.8.5-16.RHEL4 |
| Red Hat:enterprise_linux:4::as | perl-suidperl | before 3:5.8.5-16.RHEL4 | 3:5.8.5-16.RHEL4 |
Same product
larry wall: all recordsOther highest-scoring records for the same primary product.
- CVE-2005-4278Untrusted search path vulnerability in Perl before 5.8.7-r1 on Gentoo Linux allows local users in the portage group to gain privileges via a28Monitor
- CVE-2000-0703suidperl (aka sperl) does not properly cleanse the escape sequence "~!" before calling /bin/mail to send an error report, which allows local28Monitor
- CVE-1999-0034Buffer overflow in suidperl (sperl), Perl 4.x and 5.x.28Monitor
- CVE-2003-0900Perl 5.8.1 on Fedora Core does not properly initialize the random number generator when forking, which makes it easier for attackers to pred20Monitor
- CVE-2005-0155The PerlIO implementation in Perl 5.8.0, when installed with setuid support (sperl), allows local users to create arbitrary files via the PE18Monitor
- CVE-2004-0452Race condition in the rmtree function in the File::Path module in Perl 5.6.1 and 5.8.4 sets read/write permissions for the world, which allo10Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:perl | 5.8.4-7 · Debian:12 | Package registry (OSV) |
| red hat:perl | 3:5.8.5-16.RHEL4 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:perl-CGI | 2:2.89-90.4 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:perl-CPAN | 2:1.61-90.4 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:perl-DB_File | 2:1.806-90.4 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:perl-debuginfo | 3:5.8.5-16.RHEL4 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:perl-suidperl | 3:5.8.5-16.RHEL4 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Special conditions such as timing or configuration are required.
If successful
- Confidentiality
- none
- Integrity
- P · data or configuration can be modified
- Availability
- none
- Attack complexity
- High
- Confidentiality impact
- None
- Integrity impact
- P
- Availability impact
- None
Weakness class (CWE)
—
CVSS vector
AV:L/AC:H/Au:N/C:N/I:P/A:N
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- ftp://patches.sgi.com/support/free/security/advisories/20060101-01-U
- distro.conectiva.com.br/atualizacoes/?id=a&anuncio=001056
- fedoranews.org/updates/FEDORA--.shtml
- secunia.com/advisories/14531
- secunia.com/advisories/17079
- secunia.com/advisories/18075
- secunia.com/advisories/18517
- secunia.com/advisories/55314
- www.debian.org/security/2005/dsa-696
- www.gentoo.org/security/en/glsa/glsa-200501-38.xml
- www.mandriva.com/security/advisories?name=MDKSA-2005:079
- www.redhat.com/support/errata/RHSA-2005-674.html
- www.redhat.com/support/errata/RHSA-2005-881.html
- www.securityfocus.com/advisories/8704
- www.securityfocus.com/bid/12767
- oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10475
- oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A728
- usn.ubuntu.com/94-1/
Vendor advisories and official records. Exploit/PoC links are deliberately left out.