CVE-2002-1816: Off-by-one buffer overflow in the sock_gets function in sockhelp.c for ATPhttpd 0.4b and earlier allows remote
CVE-2002-1816 is a critical-severity flaw (CVSS 9.8) affecting atphttpd. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
Off-by-one buffer overflow in the sock_gets function in sockhelp.c for ATPhttpd 0.4b and earlier allows remote attackers to execute arbitrary code via a long HTTP GET request.
Why this priority
- Critical severity
- EPSS top 5%: very likely to be exploited
- Public exploit reference
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 9.0% (top 5%) |
| CISA exploited list | No |
| Weakness | CWE-193 |
| Published | 2002-12-31 |
| Last modified | 2026-06-16 |
Last updated 2026-06-16 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- Exploit-DB: ATP HTTPd 0.4 - Single Byte Buffer Overflow
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2002-1816?
atphttpd: upgrade to newer than 0.4b. Exact commands for each OS are on this page.
Is CVE-2002-1816 being exploited?
CVE-2002-1816 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2002-1816 affect?
CVE-2002-1816 affects atphttpd. Severity is critical (CVSS 9.8). Off-by-one buffer overflow in the sock_gets function in sockhelp.c for ATPhttpd 0.4b and earlier allows remote attackers to execute arbitrary code via a long HTTP GET request.
How urgent is CVE-2002-1816?
Priority 68/100. Critical severity; EPSS top 5%: very likely to be exploited; Public exploit reference; Remotely exploitable, no login, no user action