CVE-2021-34797: Geode core Insertion Of Sensitive Information Into Vulnerability
HIGHCVE-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
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.
<dependency>
<groupId>org.apache.geode</groupId>
<artifactId>geode-core</artifactId>
<version>1.12.5</version>
</dependency>
<dependency>
<groupId>org.apache.geode</groupId>
<artifactId>geode-core</artifactId>
<version>1.13.5</version>
</dependency>
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
CVE-2021-34797 Affected Geode core Versions
2 component(s)| 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?
Which Geode core versions are affected?
What version fixes CVE-2021-34797?
Is geode-core affected?
What CWE is associated with CVE-2021-34797?
How can I check Maven dependencies for CVE-2021-34797?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}