CVE-2005-0468
Description
Heap-based buffer overflow in the env_opt_add function in telnet.c for various BSD-based Telnet clients allows remote attackers to execute arbitrary code via responses that contain a large number of characters that require escaping, which consumers more memory than allocated.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Mitigation details
CVE-2005-0468 NameCVE-2005-0468 DescriptionHeap-based buffer overflow in the env_opt_add function in telnet.c for various BSD-based Telnet clients allows remote attackers to execute arbitrary code via responses that contain a large number of characters that require escaping, which consumers more memory than allocated. SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat,…
CVE-2005-0468
| Name | CVE-2005-0468 |
| Description | Heap-based buffer overflow in the env_opt_add function in telnet.c for various BSD-based Telnet clients allows remote attackers to execute arbitrary code via responses that contain a large number of characters that require escaping, which consumers more memory than allocated. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DSA-703-1, DSA-731-1 |
| Debian Bugs | 306141 |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| krb5 (PTS) | bullseye | 1.18.3-6+deb11u5 | fixed |
| bullseye (security) | 1.18.3-6+deb11u8 | fixed | |
| bookworm | 1.20.1-2+deb12u4 | fixed | |
| bookworm (security) | 1.20.1-2+deb12u5 | fixed | |
| trixie | 1.21.3-5 | fixed | |
| trixie (security) | 1.21.3-5+deb13u1 | fixed | |
| forky, sid | 1.22.1-2.1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| krb4 | source | woody | 1.1-8-2.4 | DSA-731-1 | ||
| krb4 | source | (unstable) | 1.2.2-11.2 | 306141 | ||
| krb5 | source | woody | 1.2.4-5woody8 | DSA-703-1 | ||
| krb5 | source | (unstable) | 1.3.6-2 |
Exploits
Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.
Exploit-DB
Multiple Vendor Telnet Client - Env_opt_add Heap Buffer Overflow
source: https://www.securityfocus.com/bid/12919/info
Multiple vendors' Telnet client applications are reported prone to a remote buffer-overflow vulnerability. This vulnerability reportedly occurs in the 'env_opt_add()' function in the 'telnet.c' source file, which is apparently common source for all the affected vendors.
A remote attacker may exploit this vulnerability to execute arbitrary code on some of the affected platforms in the context of a user that is using the vulnerable Telnet client to connect to a malicious server.
perl -e 'print "\377", "\372\42\3\377\377\3\3" x 43, "\377\360"' | nc -l 23
OS impact
Debian Fixed 5 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Fixed | 1.3.6-2 |
| sid | Fixed | 1.3.6-2 |
| forky | Fixed | 1.3.6-2 |
| bullseye | Fixed | 1.3.6-2 |
| bookworm | Fixed | 1.3.6-2 |
References
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.