Skip to content

xmlsec-2.1.4.jar: 2 vulnerabilities (highest severity is: 7.5) #81

@mend-for-github-com

Description

@mend-for-github-com
Vulnerable Library - xmlsec-2.1.4.jar

Apache XML Security for Java supports XML-Signature Syntax and Processing, W3C Recommendation 12 February 2002, and XML Encryption Syntax and Processing, W3C Recommendation 10 December 2002. As of version 1.4, the library supports the standard Java API JSR-105: XML Digital Signature APIs.

Library home page: https://www.apache.org/

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/apache/santuario/xmlsec/2.1.4/xmlsec-2.1.4.jar,/target/owaspSecurityShepherd/WEB-INF/lib/xmlsec-2.1.4.jar

Found in HEAD commit: d036c7c5d23c484d9f8c12b1cc9fbbb1b20e6338

Vulnerabilities

Vulnerability Severity CVSS Dependency Type Fixed in (xmlsec version) Remediation Possible**
CVE-2021-40690 High 7.5 xmlsec-2.1.4.jar Direct 2.1.7
CVE-2023-44483 Medium 6.5 xmlsec-2.1.4.jar Direct org.apache.santuario:xmlsec:2.2.6,2.3.4,3.0.3

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

Details

CVE-2021-40690

Vulnerable Library - xmlsec-2.1.4.jar

Apache XML Security for Java supports XML-Signature Syntax and Processing, W3C Recommendation 12 February 2002, and XML Encryption Syntax and Processing, W3C Recommendation 10 December 2002. As of version 1.4, the library supports the standard Java API JSR-105: XML Digital Signature APIs.

Library home page: https://www.apache.org/

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/apache/santuario/xmlsec/2.1.4/xmlsec-2.1.4.jar,/target/owaspSecurityShepherd/WEB-INF/lib/xmlsec-2.1.4.jar

Dependency Hierarchy:

  • xmlsec-2.1.4.jar (Vulnerable Library)

Found in HEAD commit: d036c7c5d23c484d9f8c12b1cc9fbbb1b20e6338

Found in base branch: dev

Vulnerability Details

All versions of Apache Santuario - XML Security for Java prior to 2.2.3 and 2.1.7 are vulnerable to an issue where the "secureValidation" property is not passed correctly when creating a KeyInfo from a KeyInfoReference element. This allows an attacker to abuse an XPath Transform to extract any local .xml files in a RetrievalMethod element.

Publish Date: 2021-09-19

URL: CVE-2021-40690

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: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-40690

Release Date: 2021-09-19

Fix Resolution: 2.1.7

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2023-44483

Vulnerable Library - xmlsec-2.1.4.jar

Apache XML Security for Java supports XML-Signature Syntax and Processing, W3C Recommendation 12 February 2002, and XML Encryption Syntax and Processing, W3C Recommendation 10 December 2002. As of version 1.4, the library supports the standard Java API JSR-105: XML Digital Signature APIs.

Library home page: https://www.apache.org/

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/apache/santuario/xmlsec/2.1.4/xmlsec-2.1.4.jar,/target/owaspSecurityShepherd/WEB-INF/lib/xmlsec-2.1.4.jar

Dependency Hierarchy:

  • xmlsec-2.1.4.jar (Vulnerable Library)

Found in HEAD commit: d036c7c5d23c484d9f8c12b1cc9fbbb1b20e6338

Found in base branch: dev

Vulnerability Details

All versions of Apache Santuario - XML Security for Java prior to 2.2.6, 2.3.4, and 3.0.3, when using the JSR 105 API, are vulnerable to an issue where a private key may be disclosed in log files when generating an XML Signature and logging with debug level is enabled. Users are recommended to upgrade to version 2.2.6, 2.3.4, or 3.0.3, which fixes this issue.

Publish Date: 2023-10-20

URL: CVE-2023-44483

CVSS 3 Score Details (6.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: Low
    • 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: https://www.cve.org/CVERecord?id=CVE-2023-44483

Release Date: 2023-10-20

Fix Resolution: org.apache.santuario:xmlsec:2.2.6,2.3.4,3.0.3

⛑️ Automatic Remediation will be attempted for this issue.


⛑️Automatic Remediation will be attempted for this issue.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions