Vulnerabilityin the org.codehaus.groovy:groovy package.
No public exploit found; not on exploited lists.
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.
- Upgrade org.codehaus.groovy:groovy (Maven) to 2.4.21, 2.5.14, 3.0.7 or later, whichever matches your release line.
- Upgrade org.codehaus.groovy:groovy-all (Maven) to 2.4.21, 2.5.14, 3.0.7 or later, whichever matches your release line.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 12 Aug 2020CVE ID reserved by apache.
- 7 Dec 2020Published in the CVE List.
- 8 Oct 2026CVE record last updated.
Attack code anyone can find
Exploit maturity: No public exploit found. CISA assessment (SSVC): exploitation none.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Other vulnerabilities in this package
- groovy-lang.org x_refsource_CONFIRM
- lists.apache.org mailing-list, x_refsource_MLIST
- www.oracle.com x_refsource_MISC
- security.netapp.com x_refsource_CONFIRM
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- www.oracle.com x_refsource_MISC
- www.oracle.com x_refsource_MISC
- www.oracle.com x_refsource_MISC
- www.oracle.com x_refsource_MISC
- www.oracle.com x_refsource_MISC
- www.oracle.com x_refsource_MISC
Patchminder. CVE-2020-17521: Vulnerability in the org.codehaus.groovy:groovy package. https://patchminder.com/cve/cve-2020-17521/ (accessed 5 December 2026).