CVE-2005-0468

unknown
Published — · Modified —
CVSS v3
CVSS v4 NEW
not yet in upstream
VIR risk
1.0

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

Exploit likelihood
20%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

Mitigation details

Source: Debian Security Tracker · View original ↗ · DFSG

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

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, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDSA-703-1, DSA-731-1
Debian Bugs306141

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
krb5 (PTS)bullseye1.18.3-6+deb11u5fixed
bullseye (security)1.18.3-6+deb11u8fixed
bookworm1.20.1-2+deb12u4fixed
bookworm (security)1.20.1-2+deb12u5fixed
trixie1.21.3-5fixed
trixie (security)1.21.3-5+deb13u1fixed
forky, sid1.22.1-2.1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
krb4sourcewoody1.1-8-2.4DSA-731-1
krb4source(unstable)1.2.2-11.2306141
krb5sourcewoody1.2.4-5woody8DSA-703-1
krb5source(unstable)1.3.6-2

Home - Debian Security - Source (Git)

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-25303 dos linux verified text · 1 KB
Gael Delalleau · 2005-03-28

Multiple Vendor Telnet Client - Env_opt_add Heap Buffer Overflow

text exploit Source: Exploit-DB
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 Debian Fixed 5 releases
VersionStatusFixed 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.