← Vulnerability feed

Vulnerability record · CVE-2011-4862 · published 25 December 2011

CVE-2011-4862: telnetd encryption key buffer overflow allows remote code execution

Gnu · Inetutils

A buffer overflow in libtelnet/encrypt.c in telnetd affects FreeBSD 7.3 through 9.0, MIT krb5-appl 1.0.2 and earlier, Heimdal 1.5.1 and earlier, GNU inetutils, and possibly other products. A long encryption key overflows the buffer, and the flaw was exploited in the wild in December 2011. Because telnetd is a network-facing service, this is a serious pre-authentication risk on any host still running it.

10.0 CVSS 2.0 High EPSS 95% · top 0.1% CWE-120 · Classic buffer overflow
10.0CVSS 2.0 base score
95%EPSS exploitation probability, 30 days
NoNot in CISA KEV
10Affected product versions listed by NVD
84References, 2 tagged exploit
16 Jun 2026Last modified by NVD

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.

AV:N/AC:L/Au:N/C:C/I:C/A:C

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

critical priorityCVSS 2.0 base score of 10 with network reachability, no authentication, full confidentiality, integrity and availability impact, plus confirmed in-the-wild exploitation.

What it is

A buffer overflow in libtelnet/encrypt.c in telnetd affects FreeBSD 7.3 through 9.0, MIT krb5-appl 1.0.2 and earlier, Heimdal 1.5.1 and earlier, GNU inetutils, and possibly other products. A long encryption key overflows the buffer, and the flaw was exploited in the wild in December 2011. Because telnetd is a network-facing service, this is a serious pre-authentication risk on any host still running it.

Impact

A remote attacker can execute arbitrary code with the privileges of the telnetd process, typically root, giving full control of the host.

Attack surface

Reachable over the network via the telnet service (AV:N, AC:L, Au:N); no authentication or user interaction is required per the CVSS vector and description.

Exploitation

NVD states it was exploited in the wild in December 2011, and EPSS is 0.94983 (99.857th percentile), indicating very high predicted exploitation activity; it is not listed in CISA KEV.

What to do

  • Patch telnetd and the affected Kerberos application packages (FreeBSD, krb5-appl, Heimdal, inetutils) using the vendor advisories and the GNU inetutils patch reference.
  • Disable or remove the telnet service where it is not strictly required.
  • Restrict network access to telnetd with firewall rules or network segmentation.
  • Replace telnet with SSH for remote administration.
  • Monitor vendor advisories for updated packages covering the listed distributions.

Detection

  • Inspect telnetd process logs and network traffic for unusually long or malformed encryption key negotiation.
  • Alert on unexpected telnet connections to hosts that should not expose the service.
  • Monitor for new processes or outbound connections spawned by telnetd.
  • Check host inventory for running telnetd instances and unpatched FreeBSD, krb5-appl, Heimdal, or inetutils versions.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

10 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://archives.neohapsis.com/archives/bugtraq/2011-12/0172.html Broken Link
http://git.savannah.gnu.org/cgit/inetutils.git/commit/?id=665f1e73cdd9b38e2d2e11b8db9958a315935592 PatchThird Party Advisory
http://lists.fedoraproject.org/pipermail/package-announce/2012-January/071627.html Third Party Advisory
http://lists.fedoraproject.org/pipermail/package-announce/2012-January/071640.html Third Party Advisory
http://lists.freebsd.org/pipermail/freebsd-security/2011-December/006117.html Vendor Advisory
http://lists.freebsd.org/pipermail/freebsd-security/2011-December/006118.html Vendor Advisory
http://lists.freebsd.org/pipermail/freebsd-security/2011-December/006119.html Vendor Advisory
http://lists.freebsd.org/pipermail/freebsd-security/2011-December/006120.html Vendor Advisory
http://lists.opensuse.org/opensuse-security-announce/2012-01/msg00002.html Mailing ListThird Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2012-01/msg00004.html Mailing ListThird Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2012-01/msg00005.html Mailing ListThird Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2012-01/msg00007.html Mailing ListThird Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2012-01/msg00010.html Mailing ListThird Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2012-01/msg00011.html Mailing ListThird Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2012-01/msg00014.html Mailing ListThird Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2012-01/msg00015.html Mailing ListThird Party Advisory
http://osvdb.org/78020 Broken Link
http://secunia.com/advisories/46239 Third Party Advisory
http://secunia.com/advisories/47341 Third Party Advisory
http://secunia.com/advisories/47348 Third Party Advisory
http://secunia.com/advisories/47357 Third Party Advisory
http://secunia.com/advisories/47359 Third Party Advisory
http://secunia.com/advisories/47373 Third Party Advisory
http://secunia.com/advisories/47374 Third Party Advisory
http://secunia.com/advisories/47397 Third Party Advisory
http://secunia.com/advisories/47399 Third Party Advisory
http://secunia.com/advisories/47441 Third Party Advisory
http://security.freebsd.org/advisories/FreeBSD-SA-11:08.telnetd.asc MitigationVendor Advisory
http://security.freebsd.org/patches/SA-11:08/telnetd.patch PatchVendor Advisory
http://web.mit.edu/kerberos/www/advisories/MITKRB5-SA-2011-008.txt PatchVendor Advisory
http://www.debian.org/security/2011/dsa-2372 Third Party Advisory
http://www.debian.org/security/2011/dsa-2373 Third Party Advisory
http://www.debian.org/security/2011/dsa-2375 Third Party Advisory
http://www.exploit-db.com/exploits/18280/ ExploitThird Party AdvisoryVDB Entry
http://www.mandriva.com/security/advisories?name=MDVSA-2011:195 Third Party Advisory
http://www.redhat.com/support/errata/RHSA-2011-1851.html Third Party Advisory
http://www.redhat.com/support/errata/RHSA-2011-1852.html Third Party Advisory
http://www.redhat.com/support/errata/RHSA-2011-1853.html Third Party Advisory
http://www.redhat.com/support/errata/RHSA-2011-1854.html Third Party Advisory
http://www.securitytracker.com/id?1026460 Third Party AdvisoryVDB Entry

Track CVE-2011-4862 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed9.8CVE-2024-4577PHP-CGI on Windows argument injection leads to remote code executionPHP-CGI on Windows can misinterpret characters in the command line passed to Win32 API functions when certain code pages are configured, due to Windo…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2011-4862), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.