Description
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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | groovy | 2.4.6-1 | — |
| Debian 13 | groovy | 2.4.6-1 | — |
| Debian 12 | groovy | 2.4.6-1 | — |
| Debian 6.0 | groovy | 1.7.0-4+deb6u1 | DLA-274-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | groovy | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7 | groovy +1 | 1.8.9-8.el7_4 | RHSA-2017:2486 |
| RHEL 2 | rh-maven33-groovy +1 | 1.8.9-7.19.el6 | RHSA-2017:2596 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.codehaus.groovy:groovy | >= 1.7.0, < 2.4.4 | 2.4.4 | GHSA-qg25-hgjv-cg9q |
| Maven | org.codehaus.groovy:groovy-all | >= 1.7.0, < 2.4.4 | 2.4.4 | GHSA-qg25-hgjv-cg9q |
Advisories 4
- RHSA-2017:2596 Red Hat Security Advisory: rh-maven33-groovy security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2017:2486 Red Hat Security Advisory: groovy security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- DLA-274-1 groovy - security update Debian Security (DSA / DLA) · Mar 9, 2026
- WID-SEC-2022-1375 JFrog Artifactory: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 12, 2025
References
- http://www.oracle.com/technetwork/security-advisory/cpujan2018-3236628.html
- RHSA-2017:2596 vendor-advisory
- http://www.oracle.com/technetwork/security-advisory/cpujul2016-2881720.html
- RHSA-2016:1376 vendor-advisory
- GLSA-201610-01 vendor-advisory
- http://groovy-lang.org/security.html
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05324755
- http://packetstormsecurity.com/files/132714/Apache-Groovy-2.4.3-Code-Execution.html
- https://security.netapp.com/advisory/ntap-20160623-0001/
- http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html
- http://www.oracle.com/technetwork/security-advisory/cpuoct2017-3236626.html
- RHSA-2016:0066 vendor-advisory
- http://www.oracle.com/technetwork/security-advisory/cpuapr2016v3-2985753.html
- 91787 vdb-entry
- http://www.zerodayinitiative.com/advisories/ZDI-15-365/
- RHSA-2017:2486 vendor-advisory
- 1034815 vdb-entry
- http://www.oracle.com/technetwork/security-advisory/cpujul2017-3236622.html
- 75919 vdb-entry
- 20150716 [CVE-2015-3253] Apache Groovy Zero-Day Vulnerability Disclosure mailing-list
- https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html
- https://www.oracle.com/security-alerts/cpuapr2020.html
- [shardingsphere-notifications] 20200623 [GitHub] [shardingsphere] liuqiankun93 opened a new issue #6180: The groovy-2.4.5-indy.jar has High-level security risks mailing-list