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).
CVE-2002-0640
This CVE was only ever scored under CVSS v2.0. NVD CVSS v2.0 base 10.0 — v2 rates that HIGH (v2 bands: LOW 0.0–3.9 / MEDIUM 4.0–6.9 / HIGH 7.0–10.0; v2 has no CRITICAL band). Vector AV:N/AC:L/Au:N/C:C/I:C/A:C. CVSS v2 is an older, coarser metric than v3.1/v4.0 (no Scope, no User Interaction, no Attack Requirements), so it is not directly comparable to a v3 or v4 score. NVD has never re-scored this record under v3. EPSS predicts 27.3% exploitation probability in the next 30 days, which is reflected in EG Risk but does not lift the v2 base. Confidence: LOW.
- Public exploit code is available (Exploit-DB (verified), epss top5pct, public exploit)
A fix is available — apply it.
- CVSS v2.0 (legacy)
- 10.0HIGHNVD never assigned a CVSS v3 rating to this CVE
- EG Score
- 10.0(low)
- EG Risk
- 76(Track)EG Risk 76/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity100% × 45%Exploitation65% × 40%Automatability30% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 27%
- EPSS %ILE
- 98%
- KEV
- Not listed
Published
July 3, 2002
Last Modified
June 16, 2026
References (36)
- cve@mitreftp://ftp.caldera.com/pub/security/OpenLinux/CSSA-2002-030.0.txt
- cve@mitrehttp://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000502
- cve@mitrehttp://marc.info/?l=bugtraq&m=102514371522793&w=2
- cve@mitrehttp://marc.info/?l=bugtraq&m=102514631524575&w=2
- cve@mitrehttp://marc.info/?l=bugtraq&m=102521542826833&w=2
- cve@mitrehttp://marc.info/?l=bugtraq&m=102532054613894&w=2
- cve@mitrehttp://www.cert.org/advisories/CA-2002-18.html
- cve@mitrehttp://www.debian.org/security/2002/dsa-134
- cve@mitrehttp://www.kb.cert.org/vuls/id/369347
- cve@mitrehttp://www.linuxsecurity.com/advisories/other_advisory-2177.html
- cve@mitrehttp://www.mandrakesoft.com/security/advisories?name=MDKSA-2002:040
- cve@mitrehttp://www.novell.com/linux/security/advisories/2002_024_openssh_txt.html
- cve@mitrehttp://www.openwall.com/lists/oss-security/2024/07/01/3
- cve@mitrehttp://www.osvdb.org/839
- cve@mitrehttp://www.redhat.com/support/errata/RHSA-2002-127.html
Patch Availability(2)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| redhat | patch | 2002-07-12 | redhat |
| redhat | patch | 2002-06-27 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(4 across 4 ecosystems)
Debian:11(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| openssh | — | 1:3.4 | — |
Debian:12(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| openssh | — | 1:3.4 | — |
Debian:13(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| openssh | — | 1:3.4 | — |
Debian:14(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| openssh | — | 1:3.4 | — |
All Vendor Advisories
(2)
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
Data Freshness Timeline
(refreshed 0× in last 7d / 3× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-09-16 07:22 UTCOSV refresh
- 2026-09-04 04:59 UTCEPSS rescore
- 2026-08-28 05:39 UTCOSV refresh
- 2026-08-11 19:32 UTCOSV refresh
- 2026-08-03 10:27 UTCEPSS rescore
- 2026-07-26 19:47 UTCOSV refresh
- 2026-07-26 13:22 UTCEG score recompute▲ 10.00
- 2026-07-23 00:44 UTCEG score recompute
- 2026-07-23 00:25 UTCEG score recompute
- 2026-07-22 23:48 UTCEG score recompute
- 2026-07-22 21:28 UTCEG score recompute
- 2026-07-20 17:02 UTCEPSS rescore
- 2026-07-18 09:59 UTCEPSS rescore
- 2026-07-16 16:58 UTCEPSS rescore
- 2026-07-15 16:53 UTCEPSS rescore
- 2026-07-15 01:55 UTCEPSS rescore
- 2026-07-13 06:07 UTCEPSS rescore
- 2026-07-11 08:22 UTCEPSS rescore
- 2026-07-09 13:46 UTCOSV refresh
- 2026-07-08 15:08 UTCEPSS rescore
- 2026-07-04 06:26 UTCEPSS rescore
- 2026-07-02 14:00 UTCEPSS rescore
- 2026-06-29 14:02 UTCEPSS rescore
- 2026-06-27 03:04 UTCEPSS rescore
- 2026-06-24 14:01 UTCEPSS rescore
Show 36 moreShow fewer
- 2026-06-23 21:29 UTCEPSS rescore
- 2026-06-22 14:22 UTCEPSS rescore
- 2026-06-21 02:16 UTCOSV refresh
- 2026-06-21 01:56 UTCEPSS rescore
- 2026-06-18 17:49 UTCEPSS rescore
- 2026-06-18 17:49 UTCEPSS rescore
- 2026-06-17 17:49 UTCEPSS rescore
- 2026-06-16 17:49 UTCEPSS rescore
- 2026-06-13 22:56 UTCEPSS rescore
- 2026-06-12 23:07 UTCEPSS rescore
- 2026-06-11 13:55 UTCEPSS rescore
- 2026-06-10 22:13 UTCEPSS rescore
- 2026-06-10 13:17 UTCEPSS rescore
- 2026-06-07 15:21 UTCEPSS rescore
- 2026-06-06 13:44 UTCEPSS rescore
- 2026-06-05 06:07 UTCEPSS rescore
- 2026-06-02 20:10 UTCEPSS rescore
- 2026-06-01 13:48 UTCEPSS rescore
- 2026-05-31 19:22 UTCEG score recompute
- 2026-05-31 19:22 UTCVendor advisory
- 2026-05-31 19:22 UTCGHSA enrichment
- 2026-05-31 00:13 UTCEPSS rescore
- 2026-05-31 00:13 UTCEPSS rescore
- 2026-05-29 13:40 UTCEPSS rescore
- 2026-05-28 13:42 UTCEPSS rescore
- 2026-05-28 13:42 UTCEPSS rescore
- 2026-05-28 13:42 UTCEPSS rescore
- 2026-05-28 13:42 UTCEPSS rescore
- 2026-05-27 13:37 UTCEPSS rescore
- 2026-05-27 13:37 UTCEPSS rescore
- 2026-05-22 21:15 UTCEPSS rescore
- 2026-05-21 22:38 UTCEPSS rescore
- 2026-05-20 23:36 UTCOSV refresh
- 2026-05-20 22:36 UTCEPSS rescore
- 2026-05-18 21:29 UTCEPSS rescore
- 2026-05-18 21:29 UTCEPSS rescore
Publicly available exploits
(2 references)Working exploit code is in the public domain (2 Exploit-DB entries). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- Exploit-DBEDB-21578✓ verifiedFirst seen Jun 24, 2002
OpenSSH 3.x - Challenge-Response Buffer Overflow (1)
Open source ↗ - Exploit-DBEDB-21579✓ verifiedFirst seen Jun 24, 2002
OpenSSH 3.x - Challenge-Response Buffer Overflow (2)
Open source ↗
Related CVEs(same product)
Same product
10 shownDebian:11:openssh
- CVE-2003-0786EG 10.0HIGH
- CVE-2003-0693EG 10.0EPSS p96HIGH
- CVE-2023-51385NVD 6.5EG 9.8EPSS p97CRITICAL
- CVE-2023-38408EG 9.8EPSS p100CRITICAL
- CVE-2016-1908EG 9.8EPSS p96CRITICAL
- CVE-2002-0639EG 9.8EPSS p97CRITICAL
- CVE-2026-60002EG 9.4CRITICAL
- CVE-2023-48795NVD 5.9EG 9.0EPSS p100CRITICAL
- CVE-2018-15473NVD 5.3EG 9.0EPSS p100CRITICAL
- CVE-2016-6210NVD 5.9EG 9.0EPSS p100CRITICAL
Frequently asked(4)
What is CVE-2002-0640?
When was CVE-2002-0640 disclosed?
Is CVE-2002-0640 actively exploited?
How do I remediate CVE-2002-0640?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2002-0640
Is Your Infrastructure Affected by CVE-2002-0640?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.