CVE-2016-2518: Software Security Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-9cgg-qq3h-mgcv
CVSS 5.3
CWE-125
Published
Advisory Summary

CVE-2016-2518 is a MODERATE (CVSS 5.3) security vulnerability vulnerability (CWE-125: Out-of-bounds Read) affecting Software libraries in the Maven ecosystem. The weakness occurs when the product reads data past the end, or before the beginning, of the intended buffer.. Remediation is available in the latest vendor maintenance releases.

CVE-2016-2518 at a Glance

CVE Identifier CVE-2016-2518
GHSA Identifier GHSA-9cgg-qq3h-mgcv
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-125: Out-of-bounds Read
Affected Product Software
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability Low (A:L)

How to Fix CVE-2016-2518

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-2016-2518, 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-125: Out-of-bounds Read, where the product reads data past the end, or before the beginning, of the intended 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

The MATCH_ASSOC function in NTP before version 4.2.8p9 and 4.3.x before 4.3.92 allows remote attackers to cause an out-of-bounds reference via an addpeer request with a large hmode value.

References

NVD — CVE-2016-2518 NVD
https://nvd.nist.gov/vuln/detail/CVE-2016-2518
access.redhat.com/errata/rhsa-2016:11... WEB
https://access.redhat.com/errata/RHSA-2016:1141
cert-portal.siemens.com/productcert/pdf/ssa... WEB
https://cert-portal.siemens.com/productcert/pdf/ssa-211752.pdf
Software Security Information SECURITY
https://security.FreeBSD.org/advisories/FreeBSD-SA-16:16.ntp.asc
Software Security Information SECURITY
https://security.gentoo.org/glsa/201607-15
Software Security Information SECURITY
https://security.netapp.com/advisory/ntap-20171004-0002
support.f5.com/csp/article/k208043... WEB
https://support.f5.com/csp/article/K20804323
us-cert.cisa.gov/ics/advisories/icsa... WEB
https://us-cert.cisa.gov/ics/advisories/icsa-21-159-11
Software Security Information SECURITY
https://www.debian.org/security/2016/dsa-3629
www.kb.cert.org/vuls/id/718152 WEB
https://www.kb.cert.org/vuls/id/718152
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2016-May/183647.html
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2016-May/184669.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2016-05/msg00034.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2016-05/msg00037.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2016-05/msg00052.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00001.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00020.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2016-07/msg00026.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00042.html
lists.opensuse.org/opensuse-updates/20... WEB
http://lists.opensuse.org/opensuse-updates/2016-05/msg00114.html
rhn.redhat.com/errata/rhsa-2016-15... WEB
http://rhn.redhat.com/errata/RHSA-2016-1552.html
Software Security Information SECURITY
http://packetstormsecurity.com/files/136864/Slackware-Security-Advisory-ntp-Updates.html
support.ntp.org/bin/view/main/ntpbu... WEB
http://support.ntp.org/bin/view/Main/NtpBug3009
Software Security Information SECURITY
http://support.ntp.org/bin/view/Main/SecurityNotice#April_2016_ntp_4_2_8p7_Security
Software Security Information SECURITY
http://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20160428-ntpd
Software Security Information SECURITY
http://www.debian.org/security/2016/dsa-3629
Software Security Information SECURITY
http://www.oracle.com/technetwork/security-advisory/cpujan2018-3236628.html
Software Security Information SECURITY
http://www.oracle.com/technetwork/topics/security/bulletinapr2016-2952098.html
Software Security Information SECURITY
http://www.oracle.com/technetwork/topics/security/linuxbulletinapr2016-2952096.html
Software Security Information SECURITY
http://www.securityfocus.com/archive/1/538233/100/0/threaded
Software Security Information SECURITY
http://www.securityfocus.com/archive/1/archive/1/538233/100/0/threaded
Software Security Information SECURITY
http://www.securityfocus.com/bid/88226
Software Security Information SECURITY
http://www.securitytracker.com/id/1035705
www.ubuntu.com/usn/usn-3096-1 WEB
http://www.ubuntu.com/usn/USN-3096-1

Frequently Asked Questions

What is CVE-2016-2518?
CVE-2016-2518 is a security vulnerability in Software classified as a security vulnerability vulnerability under CWE-125: Out-of-bounds Read.
Which Software versions are affected?
Affected versions include releases prior to current release patches.
What version fixes CVE-2016-2518?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What is the CVSS score of CVE-2016-2518?
CVE-2016-2518 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2016-2518?
CVE-2016-2518 is classified under CWE-125: Out-of-bounds Read (The product reads data past the end, or before the beginning, of the intended buffer.).
How can I check Maven dependencies for CVE-2016-2518?
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-9cgg-qq3h-mgcv",
  "modified" : "2025-04-20T03:32:03Z",
  "published" : "2022-05-13T01:09:35Z",
  "aliases" : [ "CVE-2016-2518" ],
  "details" : "The MATCH_ASSOC function in NTP before version 4.2.8p9 and 4.3.x before 4.3.92 allows remote attackers to cause an out-of-bounds reference via an addpeer request with a large hmode value.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
  } ],
  "affected" : [ ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-2518"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2016:1141"
  }, {
    "type" : "WEB",
    "url" : "https://cert-portal.siemens.com/productcert/pdf/ssa-211752.pdf"
  }, {
    "type" : "WEB",
    "url" : "https://security.FreeBSD.org/advisories/FreeBSD-SA-16:16.ntp.asc"
  }, {
    "type" : "WEB",
    "url" : "https://security.gentoo.org/glsa/201607-15"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20171004-0002"
  }, {
    "type" : "WEB",
    "url" : "https://support.f5.com/csp/article/K20804323"
  }, {
    "type" : "WEB",
    "url" : "https://us-cert.cisa.gov/ics/advisories/icsa-21-159-11"
  }, {
    "type" : "WEB",
    "url" : "https://www.debian.org/security/2016/dsa-3629"
  }, {
    "type" : "WEB",
    "url" : "https://www.kb.cert.org/vuls/id/718152"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2016-May/183647.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2016-May/184669.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2016-05/msg00034.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2016-05/msg00037.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2016-05/msg00052.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00001.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00020.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2016-07/msg00026.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00042.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-updates/2016-05/msg00114.html"
  }, {
    "type" : "WEB",
    "url" : "http://packetstormsecurity.com/files/136864/Slackware-Security-Advisory-ntp-Updates.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2016-1552.html"
  }, {
    "type" : "WEB",
    "url" : "http://support.ntp.org/bin/view/Main/NtpBug3009"
  }, {
    "type" : "WEB",
    "url" : "http://support.ntp.org/bin/view/Main/SecurityNotice#April_2016_ntp_4_2_8p7_Security"
  }, {
    "type" : "WEB",
    "url" : "http://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20160428-ntpd"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2016/dsa-3629"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/security-advisory/cpujan2018-3236628.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/topics/security/bulletinapr2016-2952098.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/topics/security/linuxbulletinapr2016-2952096.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/archive/1/538233/100/0/threaded"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/archive/1/archive/1/538233/100/0/threaded"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/88226"
  }, {
    "type" : "WEB",
    "url" : "http://www.securitytracker.com/id/1035705"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-3096-1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-125" ],
    "severity" : "MODERATE",
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2017-01-30T21:59:00Z"
  }
}