Skip to content

apacheds-core-1.5.7.jar: 5 vulnerabilities (highest severity is: 10.0) reachable #9

Description

Vulnerable Library - apacheds-core-1.5.7.jar

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar

Vulnerabilities

Vulnerability Severity CVSS Dependency Type Fixed in (apacheds-core version) Remediation Possible** Reachability
CVE-2024-52046 Critical 10.0 mina-core-2.0.0-RC1.jar Transitive 2.0.0.AM26

Reachable

CVE-2019-0231 High 7.5 mina-core-2.0.0-RC1.jar Transitive 2.0.0.AM26

Reachable

CVE-2018-1000632 High 7.5 dom4j-1.6.1.jar Transitive N/A*

Reachable

CVE-2020-10683 Critical 9.8 dom4j-1.6.1.jar Transitive N/A*
CVE-2021-41973 Medium 6.5 mina-core-2.0.0-RC1.jar Transitive 2.0.0.AM26

*For some transitive vulnerabilities, there is no version of direct dependency with a fix. Check the "Details" section below to see if there is a version of transitive dependency where vulnerability is fixed.

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2024-52046

Vulnerable Library - mina-core-2.0.0-RC1.jar

Apache MINA is a network application framework which helps users develop high performance and highly scalable network applications easily. It provides an abstract event-driven asynchronous API over various transports such as TCP/IP and UDP/IP via Java NIO.

Library home page: http://mina.apache.org/

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/apache/mina/mina-core/2.0.0-RC1/mina-core-2.0.0-RC1.jar

Dependency Hierarchy:

  • apacheds-core-1.5.7.jar (Root Library)
    • apacheds-i18n-1.5.7.jar
      • shared-asn1-codec-0.9.19.jar
        • mina-core-2.0.0-RC1.jar (Vulnerable Library)

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

org.owasp.benchmark.helpers.LDAPServer (Application)
  -> org.apache.directory.server.ldap.LdapServer (Extension)
   -> org.apache.directory.server.ldap.LdapProtocolCodecFactory (Extension)
    -> org.apache.mina.filter.codec.ProtocolDecoder (Extension)
     -> org.apache.mina.filter.codec.AbstractProtocolDecoderOutput (Extension)
      -> ❌ org.apache.mina.util.CircularQueue (Vulnerable Component)

Vulnerability Details

The ObjectSerializationDecoder in Apache MINA uses Java’s native deserialization protocol to process
incoming serialized data but lacks the necessary security checks and defenses. This vulnerability allows
attackers to exploit the deserialization process by sending specially crafted malicious serialized data,
potentially leading to remote code execution (RCE) attacks.
This issue affects MINA core versions 2.0.X, 2.1.X and 2.2.X, and will be fixed by the releases 2.0.27, 2.1.10 and 2.2.4.
It's also important to note that an application using MINA core library will only be affected if the IoBuffer#getObject() method is called, and this specific method is potentially called when adding a ProtocolCodecFilter instance using the ObjectSerializationCodecFactory class in the filter chain. If your application is specifically using those classes, you have to upgrade to the latest version of MINA core library.
Upgrading will  not be enough: you also need to explicitly allow the classes the decoder will accept in the ObjectSerializationDecoder instance, using one of the three new methods:
/**
     * Accept class names where the supplied ClassNameMatcher matches for

  • deserialization, unless they are otherwise rejected.
  • @⁠param classNameMatcher the matcher to use
    /
    public void accept(ClassNameMatcher classNameMatcher)
    /
    *
  • Accept class names that match the supplied pattern for
  • deserialization, unless they are otherwise rejected.
  • @⁠param pattern standard Java regexp
    /
    public void accept(Pattern pattern)
    /
    *
  • Accept the wildcard specified classes for deserialization,
  • unless they are otherwise rejected.
  • @⁠param patterns Wildcard file name patterns as defined by
  •              {@⁠link org.apache.commons.io.FilenameUtils#wildcardMatch(String, String) FilenameUtils.wildcardMatch}
    

*/
public void accept(String... patterns)
By default, the decoder will reject all classes that will be present in the incoming data.
Note: The FtpServer, SSHd and Vysper sub-project are not affected by this issue.
Mend Note: The description of this vulnerability differs from MITRE.

Publish Date: 2024-12-25

URL: CVE-2024-52046

CVSS 3 Score Details (10.0)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Changed
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: High
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://seclists.org/oss-sec/2024/q4/177

Release Date: 2024-12-25

Fix Resolution (org.apache.mina:mina-core): 2.0.27

Direct dependency fix Resolution (org.apache.directory.server:apacheds-core): 2.0.0.AM26

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2019-0231

Vulnerable Library - mina-core-2.0.0-RC1.jar

Apache MINA is a network application framework which helps users develop high performance and highly scalable network applications easily. It provides an abstract event-driven asynchronous API over various transports such as TCP/IP and UDP/IP via Java NIO.

Library home page: http://mina.apache.org/

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/apache/mina/mina-core/2.0.0-RC1/mina-core-2.0.0-RC1.jar

Dependency Hierarchy:

  • apacheds-core-1.5.7.jar (Root Library)
    • apacheds-i18n-1.5.7.jar
      • shared-asn1-codec-0.9.19.jar
        • mina-core-2.0.0-RC1.jar (Vulnerable Library)

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

org.owasp.benchmark.helpers.LDAPServer (Application)
  -> org.apache.directory.server.protocol.shared.transport.TcpTransport (Extension)
   -> org.apache.mina.core.service.IoAcceptor (Extension)
    -> org.apache.mina.core.service.IoServiceStatistics (Extension)
    ...
      -> org.apache.mina.core.filterchain.DefaultIoFilterChain (Extension)
       -> org.apache.mina.transport.socket.nio.NioSocketSession (Extension)
        -> ❌ org.apache.mina.core.file.FileRegion (Vulnerable Component)

Vulnerability Details

Handling of the close_notify SSL/TLS message does not lead to a connection closure, leading the server to retain the socket opened and to have the client potentially receive clear text messages afterward. Mitigation: 2.0.20 users should migrate to 2.0.21, 2.1.0 users should migrate to 2.1.1. This issue affects: Apache MINA.

Publish Date: 2019-10-01

URL: CVE-2019-0231

CVSS 3 Score Details (7.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: None
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-5h29-qq92-wj7f

Release Date: 2019-10-01

Fix Resolution (org.apache.mina:mina-core): 2.0.21

Direct dependency fix Resolution (org.apache.directory.server:apacheds-core): 2.0.0.AM26

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2018-1000632

Vulnerable Library - dom4j-1.6.1.jar

dom4j: the flexible XML framework for Java

Library home page: http://sourceforge.net/projects/dom4j

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar

Dependency Hierarchy:

  • apacheds-core-1.5.7.jar (Root Library)
    • apacheds-i18n-1.5.7.jar
      • shared-dsml-parser-0.9.19.jar
        • dom4j-1.6.1.jar (Vulnerable Library)

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

org.owasp.benchmark.helpers.HibernateUtil (Application)
  -> org.hibernate.cfg.Configuration (Extension)
   -> org.dom4j.io.DOMReader (Extension)
    -> ❌ org.dom4j.Namespace (Vulnerable Component)

Vulnerability Details

dom4j version prior to version 2.1.1 contains a CWE-91: XML Injection vulnerability in Class: Element. Methods: addElement, addAttribute that can result in an attacker tampering with XML documents through XML injection. This attack appear to be exploitable via an attacker specifying attributes or elements in the XML document. This vulnerability appears to have been fixed in 2.1.1 or later.

Publish Date: 2018-08-20

URL: CVE-2018-1000632

CVSS 3 Score Details (7.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: High
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-1000632/

Release Date: 2018-08-20

Fix Resolution: org.dom4j:dom4j:2.0.3,org.dom4j:dom4j - 2.0.3,org.dom4j:dom4j - 2.1.1

CVE-2020-10683

Vulnerable Library - dom4j-1.6.1.jar

dom4j: the flexible XML framework for Java

Library home page: http://sourceforge.net/projects/dom4j

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar

Dependency Hierarchy:

  • apacheds-core-1.5.7.jar (Root Library)
    • apacheds-i18n-1.5.7.jar
      • shared-dsml-parser-0.9.19.jar
        • dom4j-1.6.1.jar (Vulnerable Library)

Found in base branch: master

Vulnerability Details

dom4j before 2.0.3 and 2.1.x before 2.1.3 allows external DTDs and External Entities by default, which might enable XXE attacks. However, there is popular external documentation from OWASP showing how to enable the safe, non-default behavior in any application that uses dom4j.

Publish Date: 2020-05-01

URL: CVE-2020-10683

CVSS 3 Score Details (9.8)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: High
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2020-05-01

Fix Resolution: org.dom4j:dom4j:2.1.3,org.dom4j:dom4j:2.0.3,org.dom4j:dom4j - 2.0.3,org.dom4j:dom4j - 2.1.3

CVE-2021-41973

Vulnerable Library - mina-core-2.0.0-RC1.jar

Apache MINA is a network application framework which helps users develop high performance and highly scalable network applications easily. It provides an abstract event-driven asynchronous API over various transports such as TCP/IP and UDP/IP via Java NIO.

Library home page: http://mina.apache.org/

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/apache/mina/mina-core/2.0.0-RC1/mina-core-2.0.0-RC1.jar

Dependency Hierarchy:

  • apacheds-core-1.5.7.jar (Root Library)
    • apacheds-i18n-1.5.7.jar
      • shared-asn1-codec-0.9.19.jar
        • mina-core-2.0.0-RC1.jar (Vulnerable Library)

Found in base branch: master

Vulnerability Details

In Apache MINA, a specifically crafted, malformed HTTP request may cause the HTTP Header decoder to loop indefinitely. The decoder assumed that the HTTP Header begins at the beginning of the buffer and loops if there is more data than expected. Please update MINA to 2.1.5 or greater.

Publish Date: 2021-11-01

URL: CVE-2021-41973

CVSS 3 Score Details (6.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: Required
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-6mcm-j9cj-3vc3

Release Date: 2021-11-01

Fix Resolution (org.apache.mina:mina-core): 2.0.22

Direct dependency fix Resolution (org.apache.directory.server:apacheds-core): 2.0.0.AM26

⛑️ Automatic Remediation will be attempted for this issue.


⛑️Automatic Remediation will be attempted for this issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions