Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Apache Software Foundation | Apache Groovy | 2.0 to 2.4.20, 2.5.0 to 2.5.13, 3.0.0 to 3.0.6, 4.0.0-alpha-1 | — |
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.21-1 | — |
| Debian 13 | groovy | 2.4.21-1 | — |
| Debian 12 | groovy | 2.4.21-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | groovy | No fix yet | — |
| Ubuntu 26.04 LTS | groovy | No fix yet | — |
| Ubuntu 25.10 | groovy | No fix yet | — |
| Ubuntu 24.04 LTS | groovy | No fix yet | — |
| Ubuntu 22.04 LTS | groovy | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | groovy | No fix yet | — |
| Ubuntu 18.04 LTS | groovy | No fix yet | — |
| Ubuntu 16.04 LTS | groovy | No fix yet | — |
| Ubuntu Pro 16.04 LTS | groovy2 | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP2 | groovy | 2.4.21-3.3.2 | SUSE-SU-2020:3917-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | groovy | 2.4.21-2.3 | openSUSE-SU-2024:10823-1 |
| openSUSE Leap 15.2 | groovy | 2.4.21-lp152.2.3.2 | openSUSE-SU-2020:2367-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.codehaus.groovy:groovy | >= 2.0.0, < 2.4.21 | 2.4.21 | GHSA-rcjj-h6gh-jf3r |
| Maven | org.codehaus.groovy:groovy | >= 2.5.0, < 2.5.14 | 2.5.14 | GHSA-rcjj-h6gh-jf3r |
| Maven | org.codehaus.groovy:groovy | >= 3.0.0, < 3.0.7 | 3.0.7 | GHSA-rcjj-h6gh-jf3r |
| Maven | org.codehaus.groovy:groovy-all | >= 2.0.0, < 2.4.21 | 2.4.21 | GHSA-rcjj-h6gh-jf3r |
| Maven | org.codehaus.groovy:groovy-all | >= 2.5.0, < 2.5.14 | 2.5.14 | GHSA-rcjj-h6gh-jf3r |
| Maven | org.codehaus.groovy:groovy-all | >= 3.0.0, < 3.0.7 | 3.0.7 | GHSA-rcjj-h6gh-jf3r |
Advisories 11
- WID-SEC-2026-1212 Oracle Utilities Applications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Apr 21, 2026
- openSUSE-SU-2020:2367-1 Security update for groovy SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10823-1 groovy-2.4.21-2.3 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:3917-1 Security update for groovy SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2024-3191 Oracle Fusion Middleware: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jan 11, 2026
- WID-SEC-2025-2370 Oracle Systems: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 17, 2025
- WID-SEC-2022-1375 JFrog Artifactory: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 12, 2025
- NCSC-2024-0417 Kwetsbaarheden verholpen in Oracle Fusion Middleware NCSC-NL (Netherlands) · Oct 17, 2024
- WID-SEC-2024-2180 Oracle Fusion Middleware: Mehrere Schwachstellen BSI CERT-Bund (WID) · Sep 18, 2024
- WID-SEC-2023-1807 Oracle Fusion Middleware: Mehrere Schwachstellen BSI CERT-Bund (WID) · Dec 26, 2023
- WID-SEC-2023-1013 Oracle iLearning: Mehrere Schwachstellen BSI CERT-Bund (WID) · Apr 18, 2023
References
- https://groovy-lang.org/security.html#CVE-2020-17521
- [groovy-notifications] 20201207 [jira] [Closed] (GROOVY-9824) CVE-2020-17521 Apache Groovy Information Disclosure mailing-list
- https://www.oracle.com/security-alerts/cpujan2021.html
- https://security.netapp.com/advisory/ntap-20201218-0006/
- [atlas-dev] 20210422 [jira] [Created] (ATLAS-4257) Atlas - Upgrade groovy to 2.4.21+, 2.5.14+, 3.0.7+, or 4.0.0-alpha-2+ due to CVE-2020-17521 mailing-list
- [atlas-dev] 20210422 [jira] [Updated] (ATLAS-4257) Atlas - Upgrade groovy to 2.4.21+, 2.5.14+, 3.0.7+, or 4.0.0-alpha-2+ due to CVE-2020-17521 mailing-list
- https://www.oracle.com/security-alerts/cpuApr2021.html
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://www.oracle.com/security-alerts/cpujan2022.html
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://www.oracle.com/security-alerts/cpujul2022.html