Vulnerabilities in pkg:maven/org.apache.directory.studio/org.apache.directory.studio.ldapbrowser.core

PACKAGE
Advisory Identifier: GHSA-p9qj-4rjp-j3w9
Advisory Summary

CVE-2015-5349 is a HIGH (CVSS 7.8) apache directory studio command injection vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')) affecting Org.apache.directory.studio.ldapbrowser.core libraries in the Maven ecosystem. The issue involves apache directory studio command injection. Remediation is available by upgrading affected packages to version 2.0.0.v20151221-M10.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apache.directory.studio/org.apache.directory.studio.ldapbrowser.core

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.apache.directory.studio/org.apache.directory.studio.ldapbrowser.core. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-p9qj-4rjp-j3w9 CVE-2015-5349 HIGH Apache Directory Studio Command Injection

CVE-2015-5349 at a Glance

CVE Identifier CVE-2015-5349
GHSA Identifier GHSA-p9qj-4rjp-j3w9
Severity HIGH
CVSS v3.1 Base Score 7.8
CWE Classification CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
Affected Product Org.apache.directory.studio.ldapbrowser.core
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.8

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

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

How to Fix CVE-2015-5349

To remediate this vulnerability, upgrade all affected Org.apache.directory.studio.ldapbrowser.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.apache.directory.studio:org.apache.directory.studio.ldapbrowser.core fixed: 2.0.0.v20151221-M10
<dependency>
    <groupId>org.apache.directory.studio</groupId>
    <artifactId>org.apache.directory.studio.ldapbrowser.core</artifactId>
    <version>2.0.0.v20151221-M10</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.studio

How to Check if You Are Affected

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

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

Analyze the terminal output to locate any version of Org.apache.directory.studio.ldapbrowser.core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.0.v20151221-M10), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.directory.studio 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-77: Improper Neutralization of Special Elements used in a Command ('Command Injection'), where the product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. In Org.apache.directory.studio.ldapbrowser.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 CSV export in Apache LDAP Studio and Apache Directory Studio before 2.0.0-M10 does not properly escape field values, which might allow attackers to execute arbitrary commands by leveraging a crafted LDAP entry that is interpreted as a formula when imported into a spreadsheet.

CVE-2015-5349 Affected Org.apache.directory.studio.ldapbrowser.core Versions

1 component(s)
Fixed Versions:
2.0.0.v20151221-M10
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.directory.studio:org.apache.directory.studio.ldapbrowser.core
Maven
< 2.0.0.v20151221-M10
2.0.0.v20151221-M10

References

Frequently Asked Questions

What is CVE-2015-5349?
CVE-2015-5349 is a security vulnerability in Org.apache.directory.studio.ldapbrowser.core involving Apache Directory Studio Command Injection under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection').
Which Org.apache.directory.studio.ldapbrowser.core versions are affected?
Affected versions include releases prior to 2.0.0.v20151221-M10 across affected packages: org.apache.directory.studio:org.apache.directory.studio.ldapbrowser.core.
What version fixes CVE-2015-5349?
Upgrading to 2.0.0.v20151221-M10 (or the latest patched release for your respective branch) resolves the vulnerability.
Is org.apache.directory.studio.ldapbrowser.core affected?
Yes, org.apache.directory.studio:org.apache.directory.studio.ldapbrowser.core is affected in releases prior to 2.0.0.v20151221-M10. Upgrade your dependency to 2.0.0.v20151221-M10 or later.
What is the CVSS score of CVE-2015-5349?
CVE-2015-5349 has a CVSS v3.1 base score of 7.8 (HIGH) with vector string CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2015-5349?
CVE-2015-5349 is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') (The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.).
How can I check Maven dependencies for CVE-2015-5349?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.directory.studio'. 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-p9qj-4rjp-j3w9",
  "modified" : "2023-12-07T21:23:05Z",
  "published" : "2022-05-13T01:07:08Z",
  "aliases" : [ "CVE-2015-5349" ],
  "summary" : "Apache Directory Studio Command Injection",
  "details" : "The CSV export in Apache LDAP Studio and Apache Directory Studio before 2.0.0-M10 does not properly escape field values, which might allow attackers to execute arbitrary commands by leveraging a crafted LDAP entry that is interpreted as a formula when imported into a spreadsheet.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.directory.studio:org.apache.directory.studio.ldapbrowser.core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.0.v20151221-M10"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-5349"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/directory-studio/commit/ac57a26fcb98aa17fe9534575cf5fdad00a1c839"
  }, {
    "type" : "WEB",
    "url" : "https://directory.apache.org/studio/news.html"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/directory-studio"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/reb5443aaf781b364896ee9d7cf6e97fdc4f5a5174132c319252963b6@%3Ccommits.directory.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20201209040832/http://www.securityfocus.com/archive/1/537225/100/0/threaded"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-77" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-01T00:05:06Z",
    "nvd_published_at" : "2016-04-11T21:59:00Z"
  }
}