CVE-2021-34797: Geode core Insertion Of Sensitive Information Into Vulnerability

HIGH
Advisory Identifier: GHSA-mw25-f5r2-hpc6
CWE-532
Published
Advisory Summary

CVE-2021-34797 is a HIGH insertion of sensitive information into vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Geode core libraries in the Maven ecosystem. The issue involves insertion of sensitive information into log file in apache geode. Remediation is available by upgrading affected packages to version 1.12.5, 1.13.5.

CVE-2021-34797 at a Glance

CVE Identifier CVE-2021-34797
GHSA Identifier GHSA-mw25-f5r2-hpc6
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product Geode core
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2021-34797

To remediate this vulnerability, upgrade all affected Geode 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.geode:geode-core fixed: 1.12.5
<dependency>
    <groupId>org.apache.geode</groupId>
    <artifactId>geode-core</artifactId>
    <version>1.12.5</version>
</dependency>
org.apache.geode:geode-core fixed: 1.13.5
<dependency>
    <groupId>org.apache.geode</groupId>
    <artifactId>geode-core</artifactId>
    <version>1.13.5</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.geode

How to Check if You Are Affected

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

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

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

Note: The mvn dependency:tree -Dincludes=org.apache.geode 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-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In Geode 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

Apache Geode versions up to 1.12.4 and 1.13.4 are vulnerable to a log file redaction of sensitive information flaw when using values that begin with characters other than letters or numbers for passwords and security properties with the prefix "sysprop-", "javax.net.ssl", or "security-". This issue is fixed by overhauling the log file redaction in Apache Geode versions 1.12.5, 1.13.5, and 1.14.0.

CVE-2021-34797 Affected Geode core Versions

2 component(s)
Fixed Versions:
1.12.51.13.5
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.geode:geode-core
Maven
< 1.12.5
1.12.5
org.apache.geode:geode-core
Maven
≥ 1.13.0
< 1.13.5
1.13.5

References

Frequently Asked Questions

What is CVE-2021-34797?
CVE-2021-34797 is a security vulnerability in Geode core involving Insertion of Sensitive Information into Log File in Apache Geode under CWE-532: Insertion of Sensitive Information into Log File.
Which Geode core versions are affected?
Affected versions include releases prior to 1.12.5, 1.13.5 across affected packages: org.apache.geode:geode-core.
What version fixes CVE-2021-34797?
Upgrading to 1.12.5, 1.13.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is geode-core affected?
Yes, org.apache.geode:geode-core is affected in releases prior to 1.12.5, 1.13.5. Upgrade your dependency to 1.12.5, 1.13.5 or later.
What CWE is associated with CVE-2021-34797?
CVE-2021-34797 is classified under CWE-532: Insertion of Sensitive Information into Log File (The product writes sensitive information to a log file.).
How can I check Maven dependencies for CVE-2021-34797?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.geode'. 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-mw25-f5r2-hpc6",
  "modified" : "2022-01-13T18:33:06Z",
  "published" : "2022-01-06T22:23:25Z",
  "aliases" : [ "CVE-2021-34797" ],
  "summary" : "Insertion of Sensitive Information into Log File in Apache Geode",
  "details" : "Apache Geode versions up to 1.12.4 and 1.13.4 are vulnerable to a log file redaction of sensitive information flaw when using values that begin with characters other than letters or numbers for passwords and security properties with the prefix \"sysprop-\", \"javax.net.ssl\", or \"security-\". This issue is fixed by overhauling the log file redaction in Apache Geode versions 1.12.5, 1.13.5, and 1.14.0.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.geode:geode-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.12.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.geode:geode-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.13.0"
      }, {
        "fixed" : "1.13.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-34797"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/geode"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/nq2w9gjzm1cjx1rh6zw41ty39qw7qpx4"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/p4l0g49rzzzpn8yt9q9p0xp52h3zmsmk"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-532" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-01-06T19:57:18Z",
    "nvd_published_at" : "2022-01-04T09:15:00Z"
  }
}