Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2020-17521

MEDIUM 5.5EPSS 63%

Information Disclosure in Apache Groovy

Also known as GHSA-rcjj-h6gh-jf3r

Mitigation

  • Upgrade org.codehaus.groovy:groovy to one of 2.4.21, 2.5.14, 3.0.7 (or later in the same release line).
  • Upgrade org.codehaus.groovy:groovy-all to one of 2.4.21, 2.5.14, 3.0.7 (or later in the same release line).

Who should check

  • Projects that depend on Maven package org.codehaus.groovy:groovy (>= 2.0.0, < 2.4.21)
  • Projects that depend on Maven package org.codehaus.groovy:groovy-all (>= 2.0.0, < 2.4.21)
  • Anyone running 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

Vulnerability facts

Affected
org.codehaus.groovy:groovy >= 2.0.0, < 2.4.21; org.codehaus.groovy:groovy-all >= 2.0.0, < 2.4.21
Fixed in
2.4.21, 2.5.14, 3.0.7
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: None
  • Availability impact: None
EPSS
1.03% chance of exploitation in 30 days (percentile 63, 2026-11-26)
CWE
CWE-379
Published
Modified

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 and fixed versions

Package / productAffectedFixedSource
Maven org.codehaus.groovy:groovy>= 2.0.0, < 2.4.212.4.21, 2.5.14, 3.0.7osv
Maven org.codehaus.groovy:groovy-all>= 2.0.0, < 2.4.212.4.21, 2.5.14, 3.0.7osv
Apache Software Foundation Apache Groovy2.0 to 2.4.20; 2.5.0 to 2.5.13; 3.0.0 to 3.0.6; 4.0.0-alpha-1—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2020-17521. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2020-17521.md
Affected: org.codehaus.groovy:groovy >= 2.0.0, < 2.4.21; org.codehaus.groovy:groovy-all >= 2.0.0, < 2.4.21
Fixed in: 2.4.21, 2.5.14, 3.0.7

Steps:
1. Search this machine and project for org.codehaus.groovy:groovy (Maven), org.codehaus.groovy:groovy-all (Maven), Apache Software Foundation Apache Groovy: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2020-17521 being exploited?

There is no confirmed exploitation: CVE-2020-17521 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.03% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2020-17521?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2020-17521?

org.codehaus.groovy:groovy >= 2.0.0, < 2.4.21; org.codehaus.groovy:groovy-all >= 2.0.0, < 2.4.21.

Is there a fix for CVE-2020-17521?

Yes. Fixed in 2.4.21, 2.5.14, 3.0.7. Upgrade org.codehaus.groovy:groovy to one of 2.4.21, 2.5.14, 3.0.7 (or later in the same release line). Upgrade org.codehaus.groovy:groovy-all to one of 2.4.21, 2.5.14, 3.0.7 (or later in the same release line).

How do I check if I'm affected by CVE-2020-17521?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors