CVE-2016-9299: Jenkins core Improper Neutralization Of Special Elements Vulnerability

CRITICAL
Advisory Identifier: GHSA-2x9h-h3c4-wqqh
CVSS 9.8
CWE-90
Published
Advisory Summary

CVE-2016-9299 is a CRITICAL (CVSS 9.8) improper neutralization of special elements vulnerability (CWE-90: Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')) affecting Jenkins core libraries in the Maven ecosystem. The issue involves improper neutralization of special elements used in an ldap query in jenkins. Remediation is available by upgrading affected packages to version 2.32, 2.19.3.

CVE-2016-9299 at a Glance

CVE Identifier CVE-2016-9299
GHSA Identifier GHSA-2x9h-h3c4-wqqh
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-90: Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')
Affected Product Jenkins core
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 9.8

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

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 High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2016-9299

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

org.jenkins-ci.main:jenkins-core fixed: 2.32
<dependency>
    <groupId>org.jenkins-ci.main</groupId>
    <artifactId>jenkins-core</artifactId>
    <version>2.32</version>
</dependency>
org.jenkins-ci.main:jenkins-core fixed: 2.19.3
<dependency>
    <groupId>org.jenkins-ci.main</groupId>
    <artifactId>jenkins-core</artifactId>
    <version>2.19.3</version>
</dependency>
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 -Dincludes=org.jenkins-ci.main

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.jenkins-ci.main

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

Note: The mvn dependency:tree -Dincludes=org.jenkins-ci.main 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-90: Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection'), where the product constructs all or part of an ldap query using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended ldap query when it is sent to a downstream component. In Jenkins core, 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 remoting module in Jenkins before 2.32 and LTS before 2.19.3 allows remote attackers to execute arbitrary code via a crafted serialized Java object, which triggers an LDAP query to a third-party server.

CVE-2016-9299 Affected Jenkins core Versions

2 component(s)
Fixed Versions:
2.322.19.3
Product / Package Ecosystem Affected Versions Fixed Version
org.jenkins-ci.main:jenkins-core
Maven
≥ 2.20
< 2.32
2.32
org.jenkins-ci.main:jenkins-core
Maven
< 2.19.3
2.19.3

References

NVD — CVE-2016-9299 NVD
https://nvd.nist.gov/vuln/detail/CVE-2016-9299
Security Fix Commit FIX COMMIT
https://github.com/jenkinsci/jenkins/commit/6078dd7aa097baf3402de9d5279f6053926a1ea7
Security Fix Commit FIX COMMIT
https://github.com/jenkinsci/jenkins/commit/ce8a2d51a5ee9ca12d0a75659b06161888e0a1bf
Security Fix Commit FIX COMMIT
https://github.com/jenkinsci/jenkins/commit/d84d9a2ad3825f316f805a18b3654b0803e0d7fc
Security Fix Commit FIX COMMIT
https://github.com/jenkinsci/jenkins/commit/f574224cae5ffde2bc4c996305c0dcf5ab135440
Security Fix Commit FIX COMMIT
https://github.com/jenkinsci/jenkins/commit/fde9c42fe05ac925a904b6c09a81d497d0e6ccea
Jenkins core Source Repository REPOSITORY
https://github.com/jenkinsci/jenkins
groups.google.com/forum/ WEB
https://groups.google.com/forum/#!original/jenkinsci-advisories/-fc-w9tNEJE/GRvEzWoJBgAJ
groups.google.com/forum/ WEB
https://groups.google.com/forum/#!original/jenkinsci-advisories/-fc-w9tNEJE/LZ7EOS0fBgAJ
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZW2KUKYLNLVDB7STLHLYALCUFLEGCRM6
Jenkins core Security Information SECURITY
https://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2016-11-16
Jenkins core Security Information SECURITY
https://www.cloudbees.com/jenkins-security-advisory-2016-11-16
www.exploit-db.com/exploits/44642 WEB
https://www.exploit-db.com/exploits/44642
Jenkins core Security Information SECURITY
http://www.openwall.com/lists/oss-security/2016/11/12/4
Jenkins core Security Information SECURITY
http://www.openwall.com/lists/oss-security/2016/11/14/9
www.slideshare.net/codewhitesec/java-d... WEB
http://www.slideshare.net/codewhitesec/java-deserialization-vulnerabilities-the-forgotten-bug-class-deepsec-edition

Frequently Asked Questions

What is CVE-2016-9299?
CVE-2016-9299 is a security vulnerability in Jenkins core involving Improper Neutralization of Special Elements used in an LDAP Query in Jenkins under CWE-90: Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection').
Which Jenkins core versions are affected?
Affected versions include releases prior to 2.32, 2.19.3 across affected packages: org.jenkins-ci.main:jenkins-core.
What version fixes CVE-2016-9299?
Upgrading to 2.32, 2.19.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jenkins-core affected?
Yes, org.jenkins-ci.main:jenkins-core is affected in releases prior to 2.32, 2.19.3. Upgrade your dependency to 2.32, 2.19.3 or later.
What is the CVSS score of CVE-2016-9299?
CVE-2016-9299 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2016-9299?
CVE-2016-9299 is classified under CWE-90: Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection') (The product constructs all or part of an LDAP query using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended LDAP query when it is sent to a downstream component.).
How can I check Maven dependencies for CVE-2016-9299?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.jenkins-ci.main'. 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-2x9h-h3c4-wqqh",
  "modified" : "2024-03-12T14:24:42Z",
  "published" : "2022-05-14T01:00:43Z",
  "aliases" : [ "CVE-2016-9299" ],
  "summary" : "Improper Neutralization of Special Elements used in an LDAP Query in Jenkins",
  "details" : "The remoting module in Jenkins before 2.32 and LTS before 2.19.3 allows remote attackers to execute arbitrary code via a crafted serialized Java object, which triggers an LDAP query to a third-party server.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.jenkins-ci.main:jenkins-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.20"
      }, {
        "fixed" : "2.32"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.31"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.jenkins-ci.main:jenkins-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.19.3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.19.2"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-9299"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jenkinsci/jenkins/commit/6078dd7aa097baf3402de9d5279f6053926a1ea7"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jenkinsci/jenkins/commit/ce8a2d51a5ee9ca12d0a75659b06161888e0a1bf"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jenkinsci/jenkins/commit/d84d9a2ad3825f316f805a18b3654b0803e0d7fc"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jenkinsci/jenkins/commit/f574224cae5ffde2bc4c996305c0dcf5ab135440"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jenkinsci/jenkins/commit/fde9c42fe05ac925a904b6c09a81d497d0e6ccea"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/jenkinsci/jenkins"
  }, {
    "type" : "WEB",
    "url" : "https://groups.google.com/forum/#!original/jenkinsci-advisories/-fc-w9tNEJE/GRvEzWoJBgAJ"
  }, {
    "type" : "WEB",
    "url" : "https://groups.google.com/forum/#!original/jenkinsci-advisories/-fc-w9tNEJE/LZ7EOS0fBgAJ"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZW2KUKYLNLVDB7STLHLYALCUFLEGCRM6"
  }, {
    "type" : "WEB",
    "url" : "https://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2016-11-16"
  }, {
    "type" : "WEB",
    "url" : "https://www.cloudbees.com/jenkins-security-advisory-2016-11-16"
  }, {
    "type" : "WEB",
    "url" : "https://www.exploit-db.com/exploits/44642"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2016/11/12/4"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2016/11/14/9"
  }, {
    "type" : "WEB",
    "url" : "http://www.slideshare.net/codewhitesec/java-deserialization-vulnerabilities-the-forgotten-bug-class-deepsec-edition"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-90" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-07-06T19:50:21Z",
    "nvd_published_at" : "2017-01-12T23:59:00Z"
  }
}