CVE-2015-5602
published 2015-11-17CVE-2015-5602: sudoedit in Sudo before 1.8.15 allows local users to gain privileges via a symlink attack on a file whose full path is defined using multiple wildcards in…
PriorityP334high7.2CVSS 2.0
AVLACLAuNCCICAC
EXPLOIT
EPSS
1.46%
70.7th percentile
sudoedit in Sudo before 1.8.15 allows local users to gain privileges via a symlink attack on a file whose full path is defined using multiple wildcards in /etc/sudoers, as demonstrated by "/home/*/*/file.txt."
Affected
6 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | sudo | < sudo 1.8.15-1.1 (bookworm) | sudo 1.8.15-1.1 (bookworm) |
| sudo_project | sudo | <= 1.8.14 | — |
| sudo_project | sudo | >= 0 < 1.8.15-1.1 | 1.8.15-1.1 |
| sudo_project | sudo | >= 0 < 1.8.15-1.1 | 1.8.15-1.1 |
| sudo_project | sudo | >= 0 < 1.8.15-1.1 | 1.8.15-1.1 |
| sudo_project | sudo | >= 0 < 1.8.15-1.1 | 1.8.15-1.1 |
CVSS provenance
nvdv2.07.2HIGHAV:L/AC:L/Au:N/C:C/I:C/A:C
osv7.2HIGH
vendor_debian7.2HIGH
vendor_redhat7.2HIGH
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-cxqf-2pgv-vx9p: sudoedit in Sudo before 1
ghsa_unreviewed·2022-05-17
CVE-2015-5602 [HIGH] GHSA-cxqf-2pgv-vx9p: sudoedit in Sudo before 1
sudoedit in Sudo before 1.8.15 allows local users to gain privileges via a symlink attack on a file whose full path is defined using multiple wildcards in /etc/sudoers, as demonstrated by "/home/*/*/file.txt."
OSV
CVE-2015-5602: sudoedit in Sudo before 1
osv·2015-11-17·CVSS 7.2
CVE-2015-5602 [HIGH] CVE-2015-5602: sudoedit in Sudo before 1
sudoedit in Sudo before 1.8.15 allows local users to gain privileges via a symlink attack on a file whose full path is defined using multiple wildcards in /etc/sudoers, as demonstrated by "/home/*/*/file.txt."
Red Hat
sudo: Unauthorized privilege escalation in sudoedit
vendor_redhat·2015-07-23·CVSS 7.2
CVE-2015-5602 [HIGH] CWE-59 sudo: Unauthorized privilege escalation in sudoedit
sudo: Unauthorized privilege escalation in sudoedit
sudoedit in Sudo before 1.8.15 allows local users to gain privileges via a symlink attack on a file whose full path is defined using multiple wildcards in /etc/sudoers, as demonstrated by "/home/*/*/file.txt."
Package: sudo (Red Hat Enterprise Linux 5) - Will not fix
Package: sudo (Red Hat Enterprise Linux 6) - Will not fix
Package: sudo (Red Hat Enterprise Linux 7) - Will not fix
Debian
CVE-2015-5602: sudo - sudoedit in Sudo before 1.8.15 allows local users to gain privileges via a symli...
vendor_debian·2015·CVSS 7.2
CVE-2015-5602 [HIGH] CVE-2015-5602: sudo - sudoedit in Sudo before 1.8.15 allows local users to gain privileges via a symli...
sudoedit in Sudo before 1.8.15 allows local users to gain privileges via a symlink attack on a file whose full path is defined using multiple wildcards in /etc/sudoers, as demonstrated by "/home/*/*/file.txt."
Scope: local
bookworm: resolved (fixed in 1.8.15-1.1)
bullseye: resolved (fixed in 1.8.15-1.1)
forky: resolved (fixed in 1.8.15-1.1)
sid: resolved (fixed in 1.8.15-1.1)
trixie: resolved (fixed in 1.8.15-1.1)
No detection rules found.
Bugzilla
CVE-2015-5602 sudo: Unauthorized privilege escalation in sudoedit [fedora-all]
bugzilla·2015-11-03·CVSS 7.2
CVE-2015-5602 [HIGH] CVE-2015-5602 sudo: Unauthorized privilege escalation in sudoedit [fedora-all]
CVE-2015-5602 sudo: Unauthorized privilege escalation in sudoedit [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versions of
Bugzilla
CVE-2015-5602 sudo: Unauthorized privilege escalation in sudoedit
bugzilla·2015-11-03·CVSS 7.2
CVE-2015-5602 [HIGH] CVE-2015-5602 sudo: Unauthorized privilege escalation in sudoedit
CVE-2015-5602 sudo: Unauthorized privilege escalation in sudoedit
An unauthorized privilege escalation was found in sudoedit when a user is granted with root access to modify a particular file that could be located in a subset of directories. It seems that sudoedit does not check the full path if a wildcard is used twice (e.g. /home/*/*/file.txt), allowing a malicious user to replace the file.txt real file with a symbolic link to a different location (e.g. /etc/shadow), which results into unauthorized access. Affected versions are <= 1.8.14.
Reproducer can be found here:
https://www.exploit-db.com/exploits/37710/
Discussion:
Created sudo tracking bugs for this issue:
Affects: fedora-all [bug 1277427]
---
Upstream patch:
http://www.sudo.ws/repos/sudo/rev/9636fd256325
---
sudo-1.8
http://bugzilla.sudo.ws/show_bug.cgi?id=707http://lists.fedoraproject.org/pipermail/package-announce/2015-November/171024.htmlhttp://lists.fedoraproject.org/pipermail/package-announce/2015-November/171054.htmlhttp://www.debian.org/security/2016/dsa-3440http://www.oracle.com/technetwork/topics/security/bulletinapr2016-2952098.htmlhttp://www.securitytracker.com/id/1034392http://www.sudo.ws/stable.html#1.8.15https://security.gentoo.org/glsa/201606-13https://www.exploit-db.com/exploits/37710/http://bugzilla.sudo.ws/show_bug.cgi?id=707http://lists.fedoraproject.org/pipermail/package-announce/2015-November/171024.htmlhttp://lists.fedoraproject.org/pipermail/package-announce/2015-November/171054.htmlhttp://www.debian.org/security/2016/dsa-3440http://www.oracle.com/technetwork/topics/security/bulletinapr2016-2952098.htmlhttp://www.securitytracker.com/id/1034392http://www.sudo.ws/stable.html#1.8.15https://security.gentoo.org/glsa/201606-13https://www.exploit-db.com/exploits/37710/
2015-11-17
Published