cve.bz

CVE-2020-17521

5.5 mediumEPSS 1.0%Fix available

Medium (5.5). EPSS 1.0% estimated probability of exploitation activity in the next 30 days. Fixed in org.codehaus.groovy:groovy 2.4.21, 2.5.14, 3.0.7.

On this page
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.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
1.0% (unchanged from 1.0% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 64th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-17521 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-17521?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-17521?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-17521 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2020-17521

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2020-17521](https://cve.bz/cve/badge/CVE-2020-17521.svg)](https://cve.bz/cve/CVE-2020-17521)

HTML:

<a href="https://cve.bz/cve/CVE-2020-17521"><img src="https://cve.bz/cve/badge/CVE-2020-17521.svg" alt="CVE-2020-17521"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
apache:groovyfrom 2.0.0 through 2.4.20
apache:groovyfrom 2.5.0 through 2.5.13
apache:groovyfrom 3.0.0 through 3.0.6
apache:groovy4.0.0:alpha1
oracle:agile_engineering_data_management6.2.1.0
oracle:agile_plm_mcad_connector3.4
oracle:agile_plm_mcad_connector3.6
oracle:agile_product_lifecycle_management9.3.3
oracle:agile_product_lifecycle_management9.3.6
oracle:business_process_management_suite12.2.1.3.0
oracle:business_process_management_suite12.2.1.4.0
oracle:communications_brm_-_elastic_charging_engine11.3.0.9.0
oracle:communications_brm_-_elastic_charging_engine12.0.0.3
oracle:communications_diameter_signaling_router8.4.0.0
oracle:communications_evolved_communications_application_server7.1
oracle:communications_services_gatekeeper6.0
oracle:communications_services_gatekeeper6.1
oracle:communications_services_gatekeeper7.0
oracle:healthcare_data_repository7.0.2
oracle:hospitality_opera_55.6
oracle:ilearning6.2
oracle:ilearning6.3
oracle:insurance_policy_administrationfrom 11.0 through 11.3.1
oracle:jd_edwards_enterpriseone_orchestrator9.2.6.0
oracle:primavera_gatewayfrom 17.12.0 through 17.12.10
oracle:primavera_unifierfrom 17.7 through 17.12
oracle:primavera_unifier16.1
oracle:primavera_unifier16.2
oracle:primavera_unifier18.8
oracle:primavera_unifier19.12
oracle:primavera_unifier20.12
oracle:retail_bulk_data_integration15.0.3.0
oracle:retail_bulk_data_integration16.0.3.0
oracle:retail_merchandising_system16.0.3
oracle:retail_store_inventory_management14.1.3.10
oracle:retail_store_inventory_management15.0.3.5
oracle:retail_store_inventory_management16.0.3.5
apache:atlas2.1.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-rcjj-h6gh-jf3rMavenorg.codehaus.groovy:groovy>=2.0.0 <2.4.212.4.21
GHSA-rcjj-h6gh-jf3rMavenorg.codehaus.groovy:groovy>=2.5.0 <2.5.142.5.14
GHSA-rcjj-h6gh-jf3rMavenorg.codehaus.groovy:groovy>=3.0.0 <3.0.73.0.7
GHSA-rcjj-h6gh-jf3rMavenorg.codehaus.groovy:groovy-all>=2.0.0 <2.4.212.4.21
GHSA-rcjj-h6gh-jf3rMavenorg.codehaus.groovy:groovy-all>=2.5.0 <2.5.142.5.14
GHSA-rcjj-h6gh-jf3rMavenorg.codehaus.groovy:groovy-all>=3.0.0 <3.0.73.0.7

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14groovy2.4.21-1DEBIAN-CVE-2020-17521
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 5 moregroovyno fix listedUBUNTU-CVE-2020-17521
UbuntuPro:16.04:LTSgroovy2no fix listedUBUNTU-CVE-2020-17521
SUSELinux Enterprise Module for Development Tools 15 SP2groovy2.4.21-3.3.2SUSE-SU-2020:3917-1
openSUSELeap 15.2groovy2.4.21-lp152.2.3.2openSUSE-SU-2020:2367-1
openSUSETumbleweedgroovy2.4.21-2.3openSUSE-SU-2024:10823-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This flaw is rated as having a security impact of Moderate and is not currently planned to be addressed in future updates of Red Hat Enterprise Linux 7. Red Hat Enterprise Linux 7 is now in Maintenance Support 2 Phase of the support and maintenance life cycle. For additional information, refer to the Red Hat Enterprise Linux Life Cycle: https://access.redhat.com/support/policy/updates/errata/.

In OpenShift Container Platform (OCP) the vulnerable version of groovy is delivered in jenkins package and openshift4/ose-metering-hive container. The vulnerable groovy extension methods are not used directly in these components, therefore the impact by this vulnerability is Low.

Although an affected version of groovy is shipped in CodeReady Studio, the vulnerable functionality is not used by default, so the impact of this vulnerability is set to Low.

Red Hat CodeReady WorkSpaces 2.7.0 does not ship groovy so is not affected by this flaw.

Red Hat's mitigation

Setting the `java.io.tmpdir` system environment variable to a directory that is exclusively owned by the executing user will fix this vulnerability for all operating systems and all Groovy versions. Users who cannot easily move to the fixed Groovy versions may wish to consider using the JDK’s Files#createTempDirectory method instead of the Groovy extension methods.

ProductPackageStateAdvisory
Red Hat Fuse 7.10groovyFixed 2021-12-14RHSA-2021:5134
Red Hat IntegrationgroovyFixed 2021-08-18RHSA-2021:3205
Red Hat Integration Camel Quarkus 2Fixed 2021-08-18RHSA-2021:3207
Red Hat Enterprise Linux 7groovyOut of support scope
Red Hat Integration Camel Quarkus 1groovyAffected
Red Hat JBoss A-MQ 6groovyOut of support scope
Red Hat JBoss Fuse 6groovyWill not fix
Red Hat OpenShift Container Platform 3.11jenkinsFix deferred
Red Hat OpenShift Container Platform 3.11openshift3/ose-logging-elasticsearch5Not affected
Red Hat OpenShift Container Platform 4jenkinsFix deferred
Red Hat OpenShift Container Platform 4jenkins-2-pluginsNot affected
Red Hat OpenShift Container Platform 4openshift4/ose-logging-elasticsearch5Not affected
Red Hat OpenShift Container Platform 4openshift4/ose-metering-hiveFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-17521.

References

Check your stackJSON