Vulnerabilities in pkg:maven/org.codehaus.groovy/groovy
PACKAGECVE-2016-6814 is a CRITICAL (CVSS 9.8) deserialization of untrusted data vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Groovy libraries in the Maven ecosystem. The issue involves deserialization of untrusted data in groovy. Remediation is available by upgrading affected packages to version 2.4.8.
pkg:maven/org.codehaus.groovy/groovy
Vulnerability advisories affecting package pkg:maven/org.codehaus.groovy/groovy. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-xphj-m9cc-8fmq | CVE-2016-6814 | CRITICAL | Deserialization of Untrusted Data in Groovy |
| GHSA-rcjj-h6gh-jf3r | CVE-2020-17521 | MODERATE | Information Disclosure in Apache Groovy |
| GHSA-qg25-hgjv-cg9q | CVE-2015-3253 | CRITICAL | Improper Neutralization of Special Elements in Output Used by a Downstream Component in Apache Groovy |
CVE-2016-6814 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2016-6814
To remediate this vulnerability, upgrade all affected Groovy 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.codehaus.groovy</groupId>
<artifactId>groovy</artifactId>
<version>2.4.8</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>2.4.8</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.codehaus.groovy
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2016-6814, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.codehaus.groovy
Analyze the terminal output to locate any version of Groovy in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.4.8), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.codehaus.groovy 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-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Groovy, 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-2016-6814 Affected Groovy Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.codehaus.groovy:groovy
|
Maven |
≥ 1.7.0
< 2.4.8
|
2.4.8
|
|
org.codehaus.groovy:groovy-all
|
Maven |
≥ 1.7.0
< 2.4.8
|
2.4.8
|
References
Frequently Asked Questions
What is CVE-2016-6814?
Which Groovy versions are affected?
What version fixes CVE-2016-6814?
Is groovy affected?
Is groovy-all affected?
What is the CVSS score of CVE-2016-6814?
What CWE is associated with CVE-2016-6814?
How can I check Maven dependencies for CVE-2016-6814?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xphj-m9cc-8fmq",
"modified" : "2024-10-17T16:19:08Z",
"published" : "2022-05-13T01:25:19Z",
"aliases" : [ "CVE-2016-6814" ],
"summary" : "Deserialization of Untrusted Data in Groovy",
"details" : "When an application with unsupported Codehaus versions of Groovy from 1.7.0 to 2.4.3, Apache Groovy 2.4.4 to 2.4.7 on classpath uses standard Java serialization mechanisms, e.g. to communicate between servers or to store local data, it was possible for an attacker to bake a special serialized object that will execute code directly when deserialized. All applications which rely on serialization and do not isolate the code which deserializes objects were subject to this vulnerability.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.codehaus.groovy:groovy"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.7.0"
}, {
"fixed" : "2.4.8"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.4.7"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.codehaus.groovy:groovy-all"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.7.0"
}, {
"fixed" : "2.4.8"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.4.7"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-6814"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2017:0868"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2017:2486"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2017:2596"
}, {
"type" : "WEB",
"url" : "https://security.gentoo.org/glsa/202003-01"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpujan2020.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpujul2020.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html"
}, {
"type" : "WEB",
"url" : "http://mail-archives.apache.org/mod_mbox/www-announce/201701.mbox/%3CCADRx3PMZ2hBCGDTY35zYXFGaDnjAs0tc5-upaVs6QN2sYUejyA%40mail.gmail.com%3E"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2017-0272.html"
}, {
"type" : "WEB",
"url" : "http://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html"
}, {
"type" : "WEB",
"url" : "http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html"
}, {
"type" : "WEB",
"url" : "http://www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-502" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2022-07-06T19:46:12Z",
"nvd_published_at" : "2018-01-18T18:29:00Z"
}
}