CVE-2002-0640 in Openbsd Openssh
Buffer overflow in sshd in OpenSSH 2.3.1 through 3.3 may allow remote attackers to execute arbitrary code via a large number of responses during challenge response authentication when OpenBSD is using PAM modules with interactive keyboard authentication (PAMAuthenticationViaKbdInt).
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Openbsd | Openssh | 1.2.2 1.2.3 2.1 2.1.1 2.2 2.3+20 more2.5 2.5.1 2.5.2 2.9 2.9.9 2.9p1 2.9p2 3.0 3.0.1 3.0.1p1 3.0.2 3.0.2p1 3.0p1 3.1 3.1p1 3.2 3.2.2p1 3.2.3p1 3.3 3.3p1 |
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.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
Official description
Buffer overflow in sshd in OpenSSH 2.3.1 through 3.3 may allow remote attackers to execute arbitrary code via a large number of responses during challenge response authentication when OpenBSD is using PAM modules with interactive keyboard authentication (PAMAuthenticationViaKbdInt).
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2002-0640 |
|---|---|
| BreachSpider ID | BS-2002-GLOBAL-169814-C |
| CVSS vector | AV:N/AC:L/Au:N/C:C/I:C/A:C |
| Published | 2002-07-03 |
| Last modified | 2026-06-16 |
| Source | NVD |
Analysis AI-written, not human-reviewed
A buffer overflow vulnerability in sshd in OpenSSH versions 2.3.1 through 3.3 allows remote attackers to execute arbitrary code by sending a large number of responses during challenge response authentication when OpenBSD is using PAM modules with interactive keyboard authentication.
The vulnerability is triggered during the challenge response authentication process when the sshd service receives a large number of responses. This can lead to a buffer overflow, potentially allowing an attacker to execute arbitrary code with the privileges of the sshd service.
Questions
What is CVE-2002-0640?
A buffer overflow vulnerability in sshd in OpenSSH versions 2.3.1 through 3.3 allows remote attackers to execute arbitrary code by sending a large number of responses during challenge response authentication when OpenBSD is using PAM modules with interactive keyboard authentication.
What is the CVSS score for CVE-2002-0640?
CVE-2002-0640 has CVSS 10.0 (Critical). Vector: AV:N/AC:L/Au:N/C:C/I:C/A:C. EPSS: 28.2%.
Is CVE-2002-0640 actively exploited?
Public exploit available for CVE-2002-0640. Exploitation risk elevated.
How do I remediate CVE-2002-0640?
Priority: IMMEDIATE.
What systems are affected by CVE-2002-0640?
CVE-2002-0640 affects Openbsd Openssh.
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":"Openbsd","product":"Openssh","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-16.