Vulnerabilities in pkg:maven/org.apache.jackrabbit/oak-core

PACKAGE
Advisory Identifier: GHSA-3h68-wvv6-8r5h
Advisory Summary

CVE-2020-1940 is a HIGH (CVSS 7.5) improper removal of sensitive information vulnerability (CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer) affecting Oak core libraries in the Maven ecosystem. The issue involves improper removal of sensitive information before storage or transfer in apache jackrabbit oak. Remediation is available by upgrading affected packages to version 1.24.0, 1.10.8.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apache.jackrabbit/oak-core

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.apache.jackrabbit/oak-core. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-3h68-wvv6-8r5h CVE-2020-1940 HIGH Improper Removal of Sensitive Information Before Storage or Transfer in Apache Jackrabbit Oak

CVE-2020-1940 at a Glance

CVE Identifier CVE-2020-1940
GHSA Identifier GHSA-3h68-wvv6-8r5h
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer
Affected Product Oak core
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.5

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

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 None (I:N)
Availability None (A:N)

How to Fix CVE-2020-1940

To remediate this vulnerability, upgrade all affected Oak 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.jackrabbit:oak-core fixed: 1.24.0
<dependency>
    <groupId>org.apache.jackrabbit</groupId>
    <artifactId>oak-core</artifactId>
    <version>1.24.0</version>
</dependency>
org.apache.jackrabbit:oak-core fixed: 1.10.8
<dependency>
    <groupId>org.apache.jackrabbit</groupId>
    <artifactId>oak-core</artifactId>
    <version>1.10.8</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.jackrabbit

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.apache.jackrabbit

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

Note: The mvn dependency:tree -Dincludes=org.apache.jackrabbit 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-212: Improper Removal of Sensitive Information Before Storage or Transfer, where the product stores, transfers, or shares a resource that contains sensitive information, but it does not properly remove that information before the product makes the resource available to unauthorized actors. In Oak 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 optional initial password change and password expiration features present in Apache Jackrabbit Oak 1.2.0 to 1.22.0 are prone to a sensitive information disclosure vulnerability. The code mandates the changed password to be passed as an additional attribute to the credentials object but does not remove it upon processing during the first phase of the authentication. In combination with additional, independent authentication mechanisms, this may lead to the new password being disclosed.

CVE-2020-1940 Affected Oak core Versions

2 component(s)
Fixed Versions:
1.24.01.10.8
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.jackrabbit:oak-core
Maven
≥ 1.12.0
< 1.24.0
1.24.0
org.apache.jackrabbit:oak-core
Maven
≥ 1.10.0
< 1.10.8
1.10.8

References

NVD — CVE-2020-1940 NVD
https://nvd.nist.gov/vuln/detail/CVE-2020-1940
lists.apache.org/thread.html/r3da8e2... WEB
https://lists.apache.org/thread.html/r3da8e2fd253ecd4d3a0de71ce255631148b54be8500225b5812f7737@%3Coak-commits.jackrabbit.apache.org%3E
lists.apache.org/thread.html/r45b0e2... WEB
https://lists.apache.org/thread.html/r45b0e2fb6ac51c5a03952b08b5e0efde1249ecb809884cc87eb0bd99@%3Ccommits.jackrabbit.apache.org%3E
lists.apache.org/thread.html/r601637... WEB
https://lists.apache.org/thread.html/r601637e38ee743e845856a4e24915cb8db26ae80ca782bef91989cbc@%3Coak-commits.jackrabbit.apache.org%3E
lists.apache.org/thread.html/ra295f9... WEB
https://lists.apache.org/thread.html/ra295f919586b19def7cc7713d9d78595507d5f703362fccb779eeeb9@%3Coak-commits.jackrabbit.apache.org%3E
lists.apache.org/thread.html/ra6b3e7... WEB
https://lists.apache.org/thread.html/ra6b3e78f5ed545c1d859d664f66c6d3fc5d731d9b1d842349654e4f0@%3Ccommits.jackrabbit.apache.org%3E
lists.apache.org/thread.html/rb3023c... WEB
https://lists.apache.org/thread.html/rb3023cfd45441b570c1abaa347d0cac78df97b5d3f27d674d01b3d2a@%3Ccommits.jackrabbit.apache.org%3E
lists.apache.org/thread.html/rba884d... WEB
https://lists.apache.org/thread.html/rba884dbe733781cbaaffa28b77bc37a6a9f948b3a72a1bdad5e1587c@%3Ccommits.jackrabbit.apache.org%3E
lists.apache.org/thread.html/rbef470... WEB
https://lists.apache.org/thread.html/rbef4701b5ce4d827182e70ad7b4d987a9157682ba3643e05a9ef5a7b@%3Ccommits.jackrabbit.apache.org%3E
lists.apache.org/thread.html/rc35a57... WEB
https://lists.apache.org/thread.html/rc35a57ecdeae342d46f729d6bc9750ba860c101f450cc171798dba28@%3Coak-commits.jackrabbit.apache.org%3E
lists.apache.org/thread.html/rccc0ed... WEB
https://lists.apache.org/thread.html/rccc0ed467faa35734ea16b8f5de5603e708936c41a4eddd90fddeaf0%40%3Cusers.jackrabbit.apache.org%3E
lists.apache.org/thread.html/rccc0ed... WEB
https://lists.apache.org/thread.html/rccc0ed467faa35734ea16b8f5de5603e708936c41a4eddd90fddeaf0@%3Cannounce.jackrabbit.apache.org%3E
Oak core Security Information SECURITY
http://www.openwall.com/lists/oss-security/2020/01/28/1

Frequently Asked Questions

What is CVE-2020-1940?
CVE-2020-1940 is a security vulnerability in Oak core involving Improper Removal of Sensitive Information Before Storage or Transfer in Apache Jackrabbit Oak under CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer.
Which Oak core versions are affected?
Affected versions include releases prior to 1.24.0, 1.10.8 across affected packages: org.apache.jackrabbit:oak-core.
What version fixes CVE-2020-1940?
Upgrading to 1.24.0, 1.10.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is oak-core affected?
Yes, org.apache.jackrabbit:oak-core is affected in releases prior to 1.24.0, 1.10.8. Upgrade your dependency to 1.24.0, 1.10.8 or later.
What is the CVSS score of CVE-2020-1940?
CVE-2020-1940 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2020-1940?
CVE-2020-1940 is classified under CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer (The product stores, transfers, or shares a resource that contains sensitive information, but it does not properly remove that information before the product makes the resource available to unauthorized actors.).
How can I check Maven dependencies for CVE-2020-1940?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.jackrabbit'. 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-3h68-wvv6-8r5h",
  "modified" : "2021-07-28T18:09:42Z",
  "published" : "2021-12-10T17:20:11Z",
  "aliases" : [ "CVE-2020-1940" ],
  "summary" : "Improper Removal of Sensitive Information Before Storage or Transfer in Apache Jackrabbit Oak",
  "details" : "The optional initial password change and password expiration features present in Apache Jackrabbit Oak 1.2.0 to 1.22.0 are prone to a sensitive information disclosure vulnerability. The code mandates the changed password to be passed as an additional attribute to the credentials object but does not remove it upon processing during the first phase of the authentication. In combination with additional, independent authentication mechanisms, this may lead to the new password being disclosed.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.jackrabbit:oak-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.12.0"
      }, {
        "fixed" : "1.24.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.22.0"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.jackrabbit:oak-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.10.0"
      }, {
        "fixed" : "1.10.8"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-1940"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r3da8e2fd253ecd4d3a0de71ce255631148b54be8500225b5812f7737@%3Coak-commits.jackrabbit.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r45b0e2fb6ac51c5a03952b08b5e0efde1249ecb809884cc87eb0bd99@%3Ccommits.jackrabbit.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r601637e38ee743e845856a4e24915cb8db26ae80ca782bef91989cbc@%3Coak-commits.jackrabbit.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/ra295f919586b19def7cc7713d9d78595507d5f703362fccb779eeeb9@%3Coak-commits.jackrabbit.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/ra6b3e78f5ed545c1d859d664f66c6d3fc5d731d9b1d842349654e4f0@%3Ccommits.jackrabbit.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rb3023cfd45441b570c1abaa347d0cac78df97b5d3f27d674d01b3d2a@%3Ccommits.jackrabbit.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rba884dbe733781cbaaffa28b77bc37a6a9f948b3a72a1bdad5e1587c@%3Ccommits.jackrabbit.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rbef4701b5ce4d827182e70ad7b4d987a9157682ba3643e05a9ef5a7b@%3Ccommits.jackrabbit.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rc35a57ecdeae342d46f729d6bc9750ba860c101f450cc171798dba28@%3Coak-commits.jackrabbit.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rccc0ed467faa35734ea16b8f5de5603e708936c41a4eddd90fddeaf0%40%3Cusers.jackrabbit.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rccc0ed467faa35734ea16b8f5de5603e708936c41a4eddd90fddeaf0@%3Cannounce.jackrabbit.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2020/01/28/1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-212" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-03-29T22:04:32Z",
    "nvd_published_at" : "2020-01-28T17:15:00Z"
  }
}