Vulnerabilities in pkg:maven/org.apache.directory.api/apache-ldap-api

PACKAGE
Advisory Identifier: GHSA-cfw5-v7cw-69cw
Advisory Summary

CVE-2018-1337 is a CRITICAL (CVSS 9.8) apache-ldap-api vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Apache ldap api libraries in the Maven ecosystem. The issue involves apache-ldap-api. Remediation is available by upgrading affected packages to version 1.0.2.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apache.directory.api/apache-ldap-api

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.apache.directory.api/apache-ldap-api. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-cfw5-v7cw-69cw CVE-2018-1337 CRITICAL Credential leak in org.apache.directory.api:apache-ldap-api

CVE-2018-1337 at a Glance

CVE Identifier CVE-2018-1337
GHSA Identifier GHSA-cfw5-v7cw-69cw
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Apache ldap api
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-2018-1337

To remediate this vulnerability, upgrade all affected Apache ldap api 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.apache.directory.api:apache-ldap-api fixed: 1.0.2
<dependency>
    <groupId>org.apache.directory.api</groupId>
    <artifactId>apache-ldap-api</artifactId>
    <version>1.0.2</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.apache.directory.api

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.apache.directory.api

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

Note: The mvn dependency:tree -Dincludes=org.apache.directory.api 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-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Apache ldap api, 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

In Apache LDAP API before 1.0.2, a bug in the way the SSL Filter was setup made it possible for another thread to use the connection before the TLS layer has been established, if the connection has already been used and put back in a pool of connections, leading to leaking any information contained in this request (including the credentials when sending a BIND request).

CVE-2018-1337 Affected Apache ldap api Versions

1 component(s)
Fixed Versions:
1.0.2
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.directory.api:apache-ldap-api
Maven
< 1.0.2
1.0.2

References

Frequently Asked Questions

What is CVE-2018-1337?
CVE-2018-1337 is a security vulnerability in Apache ldap api involving apache-ldap-api under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Apache ldap api versions are affected?
Affected versions include releases prior to 1.0.2 across affected packages: org.apache.directory.api:apache-ldap-api.
What version fixes CVE-2018-1337?
Upgrading to 1.0.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is apache-ldap-api affected?
Yes, org.apache.directory.api:apache-ldap-api is affected in releases prior to 1.0.2. Upgrade your dependency to 1.0.2 or later.
What is the CVSS score of CVE-2018-1337?
CVE-2018-1337 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-2018-1337?
CVE-2018-1337 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check Maven dependencies for CVE-2018-1337?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.directory.api'. 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-cfw5-v7cw-69cw",
  "modified" : "2024-04-19T19:47:54Z",
  "published" : "2018-11-09T17:49:49Z",
  "aliases" : [ "CVE-2018-1337" ],
  "summary" : "Credential leak in org.apache.directory.api:apache-ldap-api",
  "details" : "In Apache LDAP API before 1.0.2, a bug in the way the SSL Filter was setup made it possible for another thread to use the connection before the TLS layer has been established, if the connection has already been used and put back in a pool of connections, leading to leaking any information contained in this request (including the credentials when sending a BIND request).",
  "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.apache.directory.api:apache-ldap-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-1337"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-cfw5-v7cw-69cw"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/d66081195e9a02ee7cc20fb243b60467d1419586eed28297d820768f@%3Cdev.directory.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r0e645b3f6ca977dc60b7cec231215c59a9471736c2402c1fef5a0616@%3Cjira.kafka.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r1815fb5b0c345f571c740e7a1b48d7477647edd4ffcf9d5321e69446@%3Cdev.kafka.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r1a258430d820a90ff9d4558319296cc517ff2252327d7b3546d16749@%3Cjira.kafka.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r4da40aa50cfdb2158898f2bc6df81feec1d42c6a06db6537d5cc0496@%3Cjira.kafka.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r55e74532e7f9e84ecfa56b4e0a50a5fe0ba6f7a76880520e4400b0d7@%3Cjira.kafka.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r56b304fb9960c869995efbb31da3b9b7c6d53ee31f7f7048eb80434b@%3Cdev.kafka.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/104744"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:31:24Z",
    "nvd_published_at" : null
  }
}