CVE-2011-4862 — Red Hat
CVE-2011-4862 is a CWE-120 vulnerability. 10 public exploit references exist, so weaponization risk is real. No vendor fix is recorded yet; mitigation options are listed below.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
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.
Affected Products
debian linuxdebianfedorafedoraprojectfreebsdfreebsdinetutilsgnuheimdalheimdal_projectkrb5-applmitResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
TelnetD encrypt_keyid - Function Pointer Overwrite
by NighterMan & BatchDrake · Dec 26, 2011
Linux BSD-derived Telnet Service Encryption Key ID - Remote Buffer Overflow (Metasploit)
by Metasploit · Jan 14, 2012
FreeBSD - Telnet Service Encryption Key ID Buffer Overflow (Metasploit)
by Metasploit · Jan 14, 2012
Detection & mitigation playbook
VulnerabilityDetect
Identify every host running the affected component and compare the installed build against the fixed version below — for source-built or distro-packaged software the version string, not a lockfile, is the source of truth (`dpkg -l`, `rpm -q`, or the binary's own `--version`).
Remediation status
No fixed release is recorded for CVE-2011-4862 yet. Track the upstream advisory, and apply the exposure-reduction steps below in the meantime.
Mitigate without a patch
Constrain what reaches the vulnerable code: limit the size and shape of untrusted input, isolate the affected component in a sandboxed or least-privileged process, and enable the platform's memory-safety mitigations (ASLR, stack protector, hardened allocator) so an out-of-bounds access is more likely to fail closed than to be exploitable.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
A buffer overflow flaw was found in the MIT krb5 telnet daemon (telnetd) as shipped with all supported versions of Red Hat Enterprise Linux. A remote attacker who can access the telnet port of a target machine could use this flaw to execute arbitrary code as root. While we are aware of public exploits for this issue…
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat Enterprise Linux 3 Extended Lifecycle Support | krb5-0:1.2.7-73 | RHSA-2011:1853 |
| Red Hat Enterprise Linux 4 | krb5-0:1.3.4-65.el4 | RHSA-2011:1851 |
| Red Hat Enterprise Linux 6 | krb5-appl-0:1.0.1-7.el6_2 | RHSA-2011:1852 |
| Red Hat Enterprise Linux 6.0 EUS - Server Only | krb5-appl-0:1.0.1-1.el6_0.1 | RHSA-2011:1854 |
Frequently Asked Questions
Is CVE-2011-4862 in your dependencies?
Find it across , including transitive dependencies.