CVE-2002-0184

HIGH

sudo < 1.6.6 - Heap-Based Buffer Overflow via Prompt Argument Expansion

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2002-0184. PoCs published by MaXX.

AI-analyzed exploit summary This exploit leverages a heap overflow in Sudo's password prompt feature to achieve local privilege escalation. It manipulates heap metadata to overwrite a function pointer, leading to arbitrary code execution as root.

Description

Sudo before 1.6.6 contains an off-by-one error that can result in a heap-based buffer overflow that may allow local users to gain root privileges via special characters in the -p (prompt) argument, which are not properly expanded.

Exploits (1)

exploitdb WORKING POC VERIFIED
by MaXX · clocallinux
https://www.exploit-db.com/exploits/21420

This exploit leverages a heap overflow in Sudo's password prompt feature to achieve local privilege escalation. It manipulates heap metadata to overwrite a function pointer, leading to arbitrary code execution as root.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Complex
Reliability
Reliable
Target: Sudo (versions up to 1.6.3p7)
No auth needed
Prerequisites: Local access to a vulnerable system · Sudo installed with setuid root · Specific heap layout conditions
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (14)

Core 14
Core References
Mailing List, Patch mailing-list x_refsource_bugtraq
http://marc.info/?l=bugtraq&m=101975443619600&w=2
Broken Link, Third Party Advisory vendor-advisory x_refsource_debian
http://www.debian.org/security/2002/dsa-128
Mailing List, Patch mailing-list x_refsource_bugtraq
http://marc.info/?l=bugtraq&m=101979472822196&w=2
Broken Link, Third Party Advisory vendor-advisory x_refsource_redhat
http://www.redhat.com/support/errata/RHSA-2002-071.html
Third Party Advisory, US Government Resource third-party-advisory x_refsource_cert-vn
http://www.kb.cert.org/vuls/id/820083
Broken Link vendor-advisory x_refsource_suse
http://www.novell.com/linux/security/advisories/2002_014_sudo_txt.html
Mailing List mailing-list x_refsource_bugtraq
http://marc.info/?l=bugtraq&m=101974610509912&w=2
Broken Link, Third Party Advisory vendor-advisory x_refsource_conectiva
http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000475
Broken Link vdb-entry x_refsource_xf
http://www.iss.net/security_center/static/8936.php
Broken Link, Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/4593
Broken Link, Patch, Vendor Advisory vendor-advisory x_refsource_engarde
http://www.linuxsecurity.com/advisories/other_advisory-2040.html
Mailing List vendor-advisory x_refsource_trustix
http://marc.info/?l=bugtraq&m=102010164413135&w=2
Broken Link, Third Party Advisory vendor-advisory x_refsource_redhat
http://www.redhat.com/support/errata/RHSA-2002-072.html
Broken Link vendor-advisory x_refsource_mandrake
http://www.linux-mandrake.com/en/security/2002/MDKSA-2002-028.php3

Scores

CVSS v3 7.8
EPSS 0.0120
EPSS Percentile 64.0%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-131
Status published
Products (2)
debian/debian_linux 2.2
sudo_project/sudo < 1.6.6
Published May 16, 2002
Tracked Since Feb 18, 2026