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.
The MethodClosure class in runtime/MethodClosure.java in Apache Groovy 1.7.0 through 2.4.3 allows remote attackers to execute arbitrary code or cause a denial of service via a crafted serialized object.
Apache Groovy provides extension methods to aid with creating temporary directories. Prior to this fix, Groovy's implementation of those extension methods was using a now superseded Java JDK method call that is potentially not secure on some operating systems in some contexts. Users not using the extension methods mentioned in the advisory are not affected, but may wish to read the advisory for further details. Versions Affected: 2.0 to 2.4.20, 2.5.0 to 2.5.13, 3.0.0 to 3.0.6, and 4.0.0-alpha-1. Fixed in versions 2.4.21, 2.5.14, 3.0.7, 4.0.0-alpha-2.
Vulnerable Library - CodeNarc-1.2.jar
Path to dependency file: /build.gradle
Path to vulnerable library: /tmp/ws-ua_20210927190226_TRFFHW/downloadResource_SQXZWB/20210927190449/groovy-all-2.3.11.jar
Vulnerabilities
**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation
Details
CVE-2016-6814
### Vulnerable Library - groovy-all-2.3.11.jarGroovy: A powerful, dynamic language for the JVM
Library home page: http://codehaus.org
Path to dependency file: /build.gradle
Path to vulnerable library: /tmp/ws-ua_20210927190226_TRFFHW/downloadResource_SQXZWB/20210927190449/groovy-all-2.3.11.jar
Dependency Hierarchy: - CodeNarc-1.2.jar (Root Library) - :x: **groovy-all-2.3.11.jar** (Vulnerable Library)
Found in base branch: master
### Vulnerability DetailsWhen 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.
Publish Date: 2018-01-18
URL: CVE-2016-6814
### CVSS 3 Score Details (9.8)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: High - Availability Impact: High
For more information on CVSS3 Scores, click here. ### Suggested FixType: Upgrade version
Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-6814
Release Date: 2018-01-18
Fix Resolution (org.codehaus.groovy:groovy-all): 2.4.8
Direct dependency fix Resolution (org.codenarc:CodeNarc): 1.5
:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.CVE-2015-3253
### Vulnerable Library - groovy-all-2.3.11.jarGroovy: A powerful, dynamic language for the JVM
Library home page: http://codehaus.org
Path to dependency file: /build.gradle
Path to vulnerable library: /tmp/ws-ua_20210927190226_TRFFHW/downloadResource_SQXZWB/20210927190449/groovy-all-2.3.11.jar
Dependency Hierarchy: - CodeNarc-1.2.jar (Root Library) - :x: **groovy-all-2.3.11.jar** (Vulnerable Library)
Found in base branch: master
### Vulnerability DetailsThe MethodClosure class in runtime/MethodClosure.java in Apache Groovy 1.7.0 through 2.4.3 allows remote attackers to execute arbitrary code or cause a denial of service via a crafted serialized object.
Publish Date: 2015-08-13
URL: CVE-2015-3253
### CVSS 3 Score Details (9.8)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: High - Availability Impact: High
For more information on CVSS3 Scores, click here. ### Suggested FixType: Upgrade version
Origin: http://groovy-lang.org/security.html
Release Date: 2015-08-13
Fix Resolution (org.codehaus.groovy:groovy-all): 2.4.4
Direct dependency fix Resolution (org.codenarc:CodeNarc): 1.5
:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.CVE-2020-17521
### Vulnerable Library - groovy-all-2.3.11.jarGroovy: A powerful, dynamic language for the JVM
Library home page: http://codehaus.org
Path to dependency file: /build.gradle
Path to vulnerable library: /tmp/ws-ua_20210927190226_TRFFHW/downloadResource_SQXZWB/20210927190449/groovy-all-2.3.11.jar
Dependency Hierarchy: - CodeNarc-1.2.jar (Root Library) - :x: **groovy-all-2.3.11.jar** (Vulnerable Library)
Found in base branch: master
### Vulnerability DetailsApache Groovy provides extension methods to aid with creating temporary directories. Prior to this fix, Groovy's implementation of those extension methods was using a now superseded Java JDK method call that is potentially not secure on some operating systems in some contexts. Users not using the extension methods mentioned in the advisory are not affected, but may wish to read the advisory for further details. Versions Affected: 2.0 to 2.4.20, 2.5.0 to 2.5.13, 3.0.0 to 3.0.6, and 4.0.0-alpha-1. Fixed in versions 2.4.21, 2.5.14, 3.0.7, 4.0.0-alpha-2.
Publish Date: 2020-12-07
URL: CVE-2020-17521
### CVSS 3 Score Details (5.5)Base Score Metrics: - Exploitability Metrics: - Attack Vector: Local - 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 FixType: Upgrade version
Origin: https://issues.apache.org/jira/browse/GROOVY-9824
Release Date: 2020-12-07
Fix Resolution (org.codehaus.groovy:groovy-all): 2.4.21
Direct dependency fix Resolution (org.codenarc:CodeNarc): 1.6
:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.:rescue_worker_helmet:Automatic Remediation will be attempted for this issue.