{"id":"UBUNTU-CVE-2020-17521","details":"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.","modified":"2026-05-20T16:04:14.611701229Z","published":"2020-12-07T20:15:00Z","upstream":["CVE-2020-17521"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2020-17521"},{"type":"REPORT","url":"https://issues.apache.org/jira/browse/GROOVY-9824"},{"type":"REPORT","url":"https://www.openwall.com/lists/oss-security/2020/12/06/1"},{"type":"REPORT","url":"https://github.com/apache/groovy/commit/4e418d4a34c973a7ec1e822552103043ac13780e"},{"type":"REPORT","url":"https://groovy-lang.org/security.html#CVE-2020-17521"},{"type":"REPORT","url":"https://lists.apache.org/thread.html/ra9dab34bf8625511f23692ad0fcee2725f782e9aad6c5cdff6cf4465@%3Cnotifications.groovy.apache.org%3E"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2020-17521"}],"affected":[{"package":{"name":"groovy","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/groovy?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.0~beta2+isreally1.8.6-4ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"groovy","binary_version":"2.0.0~beta2+isreally1.8.6-4ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-17521.json"}},{"package":{"name":"groovy2","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/groovy2?arch=source&distro=esm-apps%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.3+dfsg-2ubuntu1","2.4.3+dfsg-3","2.4.5-1","2.4.5-1ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.4.5-1ubuntu0.1~esm1","binary_name":"groovy2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-17521.json"}},{"package":{"name":"groovy","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/groovy?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.8-2","2.4.8-3","2.4.14-1","2.4.15-1ubuntu1","2.4.16-1ubuntu1~18.04.1"],"ecosystem_specific":{"binaries":[{"binary_name":"groovy","binary_version":"2.4.16-1ubuntu1~18.04.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-17521.json"}},{"package":{"name":"groovy","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/groovy?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.16-2ubuntu1","2.4.17-4ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"groovy","binary_version":"2.4.17-4ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-17521.json"}},{"package":{"name":"groovy","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/groovy?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.21-1"],"ecosystem_specific":{"binaries":[{"binary_name":"groovy","binary_version":"2.4.21-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-17521.json"}},{"package":{"name":"groovy","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/groovy?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.21-8","2.4.21-9","2.4.21-10"],"ecosystem_specific":{"binaries":[{"binary_version":"2.4.21-10","binary_name":"groovy"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-17521.json"}},{"package":{"name":"groovy","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/groovy?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.21-10"],"ecosystem_specific":{"binaries":[{"binary_name":"groovy","binary_version":"2.4.21-10"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-17521.json"}},{"package":{"name":"groovy","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/groovy?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.21-10","2.4.21-10build1"],"ecosystem_specific":{"binaries":[{"binary_name":"groovy","binary_version":"2.4.21-10build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-17521.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"},{"type":"Ubuntu","score":"low"}]}