CVE-2020-17521 Information Disclosure in Apache Groovy

Medium 5.5 Published Updated

Attackers can exploit insecure temporary directory creation in Apache Groovy to access or modify files, requiring an upgrade to patched versions.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2020-17521?

CVE-2020-17521 is a medium-severity path traversal vulnerability in Netapp Snapcenter, published on 7 Dec 2020. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Which versions are affected by CVE-2020-17521?

12 open source packages ship an affected version, including org.codehaus.groovy:groovy and org.codehaus.groovy:groovy-all. It affects 21 products.

PackageAffectedFixed in
org.codehaus.groovy:groovy MavenFrom 2.0.02.4.21
org.codehaus.groovy:groovy MavenFrom 2.0.02.4.21
org.codehaus.groovy:groovy MavenFrom 2.5.02.5.14
org.codehaus.groovy:groovy MavenFrom 2.5.02.5.14
org.codehaus.groovy:groovy MavenFrom 3.0.03.0.7
org.codehaus.groovy:groovy MavenFrom 3.0.03.0.7
6 more packages
org.codehaus.groovy:groovy-all MavenFrom 2.0.02.4.21
org.codehaus.groovy:groovy-all MavenFrom 2.0.02.4.21
org.codehaus.groovy:groovy-all MavenFrom 2.5.02.5.14
org.codehaus.groovy:groovy-all MavenFrom 2.5.02.5.14
org.codehaus.groovy:groovy-all MavenFrom 3.0.03.0.7
org.codehaus.groovy:groovy-all MavenFrom 3.0.03.0.7
Linux distribution packages (3)
groovy SUSE:Linux Enterprise Module for Development Tools 15 SP2All versions2.4.21-3.3.2
groovy openSUSE:Leap 15.2All versions2.4.21-lp152.2.3.2
groovy openSUSE:TumbleweedAll versions2.4.21-2.3

Products include Apache Atlas, Apache Groovy, Netapp Snapcenter, Oracle Agile Engineering Data Management, Oracle Agile Plm Mcad Connector, Oracle Agile Product Lifecycle Management and 15 more.

How do I fix CVE-2020-17521?

Upgrade org.codehaus.groovy:groovy to a fixed version for your release line: 2.4.21, 2.5.14 or 3.0.7.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2020-17521 being exploited?

There is no known exploitation of CVE-2020-17521 in the wild and no public exploit code.

All Netapp Snapcenter vulnerabilities

Sources

Also known as DEBIAN-CVE-2020-17521, GHSA-rcjj-h6gh-jf3r, SUSE-SU-2020:3917-1, UBUNTU-CVE-2020-17521, openSUSE-SU-2020:2367-1, openSUSE-SU-2024:10823-1.

Is CVE-2020-17521 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free