CVE-2004-1051 bash scripts run via Sudo can be subverted (CVE-2005-4158, CVE-2006-0151)
Published Dec 11, 2005
4.6
MEDIUMCVSS 2.0
EPSS 1.08%
Description
Sudo before 1.6.8 p12, when the Perl taint flag is off, does not clear the (1) PERLLIB, (2) PERL5LIB, and (3) PERL5OPT environment variables, which allows limited local users to cause a Perl script to include and execute arbitrary library files that have the same name as library files that are included by the script.
Affected products
No data.
- 1.5.6
- 1.5.7
- 1.5.8
- 1.5.9
- 1.6
- 1.6.1
- 1.6.2
- 1.6.3
- 1.6.3_p1
- 1.6.3_p2
- 1.6.3_p3
- 1.6.3_p4
- 1.6.3_p5
- 1.6.3_p6
- 1.6.3_p7
- 1.6.4
- 1.6.4_p1
- 1.6.4_p2
- 1.6.5
- 1.6.5_p1
- 1.6.5_p2
- 1.6.6
- 1.6.7
- 1.6.7_p5
- 1.6.8
- 1.6.8_p1
- 1.6.8_p5
- 1.6.8_p7
- 1.6.8_p8
- 1.6.8_p9
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
Red Hat statement
We do not consider this to be a security issue. https://bugzilla.redhat.com/show_bug.cgi?id=139478#c1
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:L/AC:L/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (9 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 1.08% (0.01077) | 63.76th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.08% (0.01077) | 60.53th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.79% (0.00787) | 72.17th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.04% (0.00042) | 0.34th | v3 (v2023.03.01) |
| May 5, 2023 | 0.04% (0.00042) | 0.49th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.06% (0.00060) | 23.21th | v3 (v2023.03.01) |
| Mar 6, 2023 | 3.22% (0.03220) | 84.21th | v2 (v2022.01.01) |
| Apr 1, 2022 | 3.22% (0.03220) | 82.61th | v2 (v2022.01.01) |
| Feb 4, 2022 | 3.22% (0.03220) | 65.30th | v2 (v2022.01.01) |
No CWE recorded.
References (23)
- http://secunia.com/advisories/17534/ third-party-advisoryx_refsource_SECUNIAPatchVendor Advisory
- http://secunia.com/advisories/18102 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/18156 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/18308 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/18463 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/18549 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/18558 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/21692 third-party-advisoryx_refsource_SECUNIA
- http://securitytracker.com/alerts/2005/Nov/1015192.html vdb-entryx_refsource_SECTRACKPatch
- http://www.debian.org/security/2006/dsa-946 vendor-advisoryx_refsource_DEBIAN
- http://www.mandriva.com/security/advisories?name=MDKSA-2005:234 vendor-advisoryx_refsource_MANDRAKE
- http://www.mandriva.com/security/advisories?name=MDKSA-2006:159 vendor-advisoryx_refsource_MANDRIVA
- http://www.novell.com/linux/security/advisories/2006_02_sr.html vendor-advisoryx_refsource_SUSE
- http://www.securityfocus.com/bid/15394 vdb-entryx_refsource_BIDExploitPatch
- http://www.sudo.ws/sudo/alerts/perl_env.html x_refsource_CONFIRMPatchVendor Advisory
- http://www.trustix.org/errata/2006/0002/ vendor-advisoryx_refsource_TRUSTIX
- http://www.vupen.com/english/advisories/2005/2386 vdb-entryx_refsource_VUPEN
- https://access.redhat.com/security/cve/CVE-2005-4158 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=139478 Issue Tracking
- https://exchange.xforce.ibmcloud.com/vulnerabilities/23102 vdb-entryx_refsource_XF
- https://nvd.nist.gov/vuln/detail/CVE-2005-4158
- https://www.cve.org/CVERecord?id=CVE-2005-4158
- https://www.ubuntu.com/usn/usn-235-1/ vendor-advisoryx_refsource_UBUNTU
Change history (0)
No recorded changes yet.