BreachSpiderVerified, not vibes

CVE-2002-0184 in Debian Linux and 1 more product

High 7.8 Public exploit reported

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.

Affects 2 products from 2 vendors. Facts below cite their sources.

CVSS 3.17.8
EPSS1.2%
EPSS percentile68th
FixUnknown

Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Debian Debian Linux 2.2
Sudo Project Sudo < 1.6.6

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitReported · reference

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2002-0184
BreachSpider IDBS-2002-GLOBAL-158768-H
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published2002-05-16
Last modified2026-06-16
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-131: CWE-131

Related attack patterns (CAPEC)

CAPEC-47 Buffer Overflow via Parameter Expansion via CWE-131

CAPEC-100 Overflow Buffers via CWE-131

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

Sudo before version 1.6.6 is vulnerable to a heap-based buffer overflow due to an off-by-one error. This vulnerability can be exploited by local users to gain root privileges through the use of special characters in the -p (prompt) argument.

The vulnerability arises from improper handling of the -p argument in the sudo command. When special characters are used in this argument, they are not properly expanded, leading to a buffer overflow condition. This can be exploited by a local user to execute arbitrary code with root privileges.

Questions

What is CVE-2002-0184?

Sudo before version 1.6.6 is vulnerable to a heap-based buffer overflow due to an off-by-one error. This vulnerability can be exploited by local users to gain root privileges through the use of special characters in the -p (prompt) argument.

What is the CVSS score for CVE-2002-0184?

CVE-2002-0184 has CVSS 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 1.2%.

Is CVE-2002-0184 actively exploited?

Public exploit available for CVE-2002-0184. Exploitation risk elevated.

How do I remediate CVE-2002-0184?

Priority: IMMEDIATE. PSIRT: [email protected]

What systems are affected by CVE-2002-0184?

CVE-2002-0184 affects Debian Debian Linux; Sudo Project Sudo.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Debian","product":"Debian Linux","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-16.