CVE-2011-4862

critical
Published 2011-12-25 ยท Modified 2026-04-29
CVSS v3
โ€”
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
10.0

Description

Buffer overflow in libtelnet/encrypt.c in telnetd in FreeBSD 7.3 through 9.0, MIT Kerberos Version 5 Applications (aka krb5-appl) 1.0.2 and earlier, Heimdal 1.5.1 and earlier, GNU inetutils, and possibly other products allows remote attackers to execute arbitrary code via a long encryption key, as exploited in the wild in December 2011.

Predictions

Exploit likelihood
20%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

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

Exploit-DB

EDB-18280 remote linux verified
NighterMan & BatchDrake ยท 2011-12-26

TelnetD encrypt_keyid - Function Pointer Overwrite

Source code queued for fetch โ€” refresh in a moment.
EDB-18369 remote bsd verified
Metasploit ยท 2012-01-14

FreeBSD - Telnet Service Encryption Key ID Buffer Overflow (Metasploit)

Source code queued for fetch โ€” refresh in a moment.
EDB-18368 remote linux verified
Metasploit ยท 2012-01-14

Linux BSD-derived Telnet Service Encryption Key ID - Remote Buffer Overflow (Metasploit)

Source code queued for fetch โ€” refresh in a moment.

Metasploit modules

Telnet Service Encryption Key ID Overflow Detection
Source fetch failed: fetch_error โ€” view the original via the link above.
FreeBSD Telnet Service Encryption Key ID Buffer Overflow
Source fetch failed: fetch_error โ€” view the original via the link above.
Linux BSD-derived Telnet Service Encryption Key ID Buffer Overflow
Source code queued for fetch โ€” refresh in a moment.

OS impact

fedora Fedora Affected 2 releases
VersionStatusFixed in
16 Affected โ€”
15 Affected โ€”
freebsd FreeBSD Affected 1 release
VersionStatusFixed in
โ€” Affected โ€”
suse SUSE Affected 5 releases
VersionStatusFixed in
11.4 Affected โ€”
11.3 Affected โ€”
11 Affected โ€”
10 Affected โ€”
9 Affected โ€”
debian Debian Mixed 8 releases
VersionStatusFixed in
trixie Fixed 1.5.dfsg.1-1
sid Fixed 1.5.dfsg.1-1
forky Fixed 1.5.dfsg.1-1
bullseye Fixed 1.5.dfsg.1-1
bookworm Fixed 1.5.dfsg.1-1
7.0 Affected โ€”
6.0 Affected โ€”
5.0 Affected โ€”

Application impact

VendorProductVersionsFixed
gnuinetutils{"endExcluding":"1.9"}1.9
heimdal_projectheimdal{"endIncluding":"1.5.1"}
mitkrb5-appl{"endIncluding":"1.0.2"}

References

CWEs

CWE-120

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.