CVE-2011-4862: Software Security Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-x8cr-m6vm-pqh4
CWE-120
Published
Advisory Summary

CVE-2011-4862 is a HIGH security vulnerability vulnerability (CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')) affecting Software libraries in the Maven ecosystem. The weakness occurs when the product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer.. Remediation is available in the latest vendor maintenance releases.

CVE-2011-4862 at a Glance

CVE Identifier CVE-2011-4862
GHSA Identifier GHSA-x8cr-m6vm-pqh4
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
Affected Product Software
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2011-4862

To remediate this vulnerability, upgrade all affected Software dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2011-4862, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree

Analyze the terminal output to locate any version of Software in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The mvn dependency:tree command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow'), where the product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer. In Software, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

References

NVD — CVE-2011-4862 NVD
https://nvd.nist.gov/vuln/detail/CVE-2011-4862
exchange.xforce.ibmcloud.com/vulnerabilities/719... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/71970
archives.neohapsis.com/archives/bugtraq/20... WEB
http://archives.neohapsis.com/archives/bugtraq/2011-12/0172.html
git.savannah.gnu.org/cgit/inetutils.git/... WEB
http://git.savannah.gnu.org/cgit/inetutils.git/commit/?id=665f1e73cdd9b38e2d2e11b8db9958a315935592
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2012-January/071627.html
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2012-January/071640.html
Software Security Information SECURITY
http://lists.freebsd.org/pipermail/freebsd-security/2011-December/006117.html
Software Security Information SECURITY
http://lists.freebsd.org/pipermail/freebsd-security/2011-December/006118.html
Software Security Information SECURITY
http://lists.freebsd.org/pipermail/freebsd-security/2011-December/006119.html
Software Security Information SECURITY
http://lists.freebsd.org/pipermail/freebsd-security/2011-December/006120.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2012-01/msg00002.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2012-01/msg00004.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2012-01/msg00005.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2012-01/msg00007.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2012-01/msg00010.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2012-01/msg00011.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2012-01/msg00014.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2012-01/msg00015.html
osvdb.org/78020 WEB
http://osvdb.org/78020
secunia.com/advisories/46239 WEB
http://secunia.com/advisories/46239
secunia.com/advisories/47341 WEB
http://secunia.com/advisories/47341
secunia.com/advisories/47348 WEB
http://secunia.com/advisories/47348
secunia.com/advisories/47357 WEB
http://secunia.com/advisories/47357
secunia.com/advisories/47359 WEB
http://secunia.com/advisories/47359
secunia.com/advisories/47373 WEB
http://secunia.com/advisories/47373
secunia.com/advisories/47374 WEB
http://secunia.com/advisories/47374
secunia.com/advisories/47397 WEB
http://secunia.com/advisories/47397
secunia.com/advisories/47399 WEB
http://secunia.com/advisories/47399
secunia.com/advisories/47441 WEB
http://secunia.com/advisories/47441
Software Security Information SECURITY
http://security.freebsd.org/advisories/FreeBSD-SA-11:08.telnetd.asc
Software Security Information SECURITY
http://security.freebsd.org/patches/SA-11:08/telnetd.patch
web.mit.edu/kerberos/www/adviso... WEB
http://web.mit.edu/kerberos/www/advisories/MITKRB5-SA-2011-008.txt
Software Security Information SECURITY
http://www.debian.org/security/2011/dsa-2372
Software Security Information SECURITY
http://www.debian.org/security/2011/dsa-2373
Software Security Information SECURITY
http://www.debian.org/security/2011/dsa-2375
www.exploit-db.com/exploits/18280 WEB
http://www.exploit-db.com/exploits/18280
Software Security Information SECURITY
http://www.mandriva.com/security/advisories?name=MDVSA-2011:195
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2011-1851.html
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2011-1852.html
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2011-1853.html
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2011-1854.html
Software Security Information SECURITY
http://www.securitytracker.com/id?1026460
Software Security Information SECURITY
http://www.securitytracker.com/id?1026463

Frequently Asked Questions

What is CVE-2011-4862?
CVE-2011-4862 is a security vulnerability in Software classified as a security vulnerability vulnerability under CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow').
Which Software versions are affected?
Affected versions include releases prior to current release patches.
What version fixes CVE-2011-4862?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What CWE is associated with CVE-2011-4862?
CVE-2011-4862 is classified under CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') (The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer.).
How can I check Maven dependencies for CVE-2011-4862?
Run the dependency tree command: 'mvn dependency:tree'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-x8cr-m6vm-pqh4",
  "modified" : "2025-04-11T03:53:46Z",
  "published" : "2022-05-13T01:11:44Z",
  "aliases" : [ "CVE-2011-4862" ],
  "details" : "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.",
  "severity" : [ ],
  "affected" : [ ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2011-4862"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/71970"
  }, {
    "type" : "WEB",
    "url" : "http://archives.neohapsis.com/archives/bugtraq/2011-12/0172.html"
  }, {
    "type" : "WEB",
    "url" : "http://git.savannah.gnu.org/cgit/inetutils.git/commit/?id=665f1e73cdd9b38e2d2e11b8db9958a315935592"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2012-January/071627.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2012-January/071640.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.freebsd.org/pipermail/freebsd-security/2011-December/006117.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.freebsd.org/pipermail/freebsd-security/2011-December/006118.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.freebsd.org/pipermail/freebsd-security/2011-December/006119.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.freebsd.org/pipermail/freebsd-security/2011-December/006120.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2012-01/msg00002.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2012-01/msg00004.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2012-01/msg00005.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2012-01/msg00007.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2012-01/msg00010.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2012-01/msg00011.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2012-01/msg00014.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2012-01/msg00015.html"
  }, {
    "type" : "WEB",
    "url" : "http://osvdb.org/78020"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/46239"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/47341"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/47348"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/47357"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/47359"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/47373"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/47374"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/47397"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/47399"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/47441"
  }, {
    "type" : "WEB",
    "url" : "http://security.freebsd.org/advisories/FreeBSD-SA-11:08.telnetd.asc"
  }, {
    "type" : "WEB",
    "url" : "http://security.freebsd.org/patches/SA-11:08/telnetd.patch"
  }, {
    "type" : "WEB",
    "url" : "http://web.mit.edu/kerberos/www/advisories/MITKRB5-SA-2011-008.txt"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2011/dsa-2372"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2011/dsa-2373"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2011/dsa-2375"
  }, {
    "type" : "WEB",
    "url" : "http://www.exploit-db.com/exploits/18280"
  }, {
    "type" : "WEB",
    "url" : "http://www.mandriva.com/security/advisories?name=MDVSA-2011:195"
  }, {
    "type" : "WEB",
    "url" : "http://www.redhat.com/support/errata/RHSA-2011-1851.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.redhat.com/support/errata/RHSA-2011-1852.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.redhat.com/support/errata/RHSA-2011-1853.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.redhat.com/support/errata/RHSA-2011-1854.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.securitytracker.com/id?1026460"
  }, {
    "type" : "WEB",
    "url" : "http://www.securitytracker.com/id?1026463"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-120" ],
    "severity" : "HIGH",
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2011-12-25T01:55:00Z"
  }
}