Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Maven

GHSA-rcjj-h6gh-jf3r

MEDIUM

GHSA-rcjj-h6gh-jf3r is a medium-severity (CVSS 5.5) vulnerability in org.codehaus.groovy:groovy. O3 Security confirms whether GHSA-rcjj-h6gh-jf3r is actually reachable in your code before you act, and blocks exploitation at runtime until you patch.

Information Disclosure in Apache Groovy

Also known asCVE-2020-17521
Published
Dec 9, 2020
Updated
Oct 17, 2024
Affected
6 pkgs
Patched
6 / 6
Exploits
None indexed

Blast Radius

6 pkgs affected
org.codehaus.groovy:groovyorg.codehaus.groovy:groovyorg.codehaus.groovy:groovyorg.codehaus.groovy:groovy-allorg.codehaus.groovy:groovy-allorg.codehaus.groovy:groovy-all

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.

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 Packages

6 total 6 fixed
EcosystemPackageVulnerable rangeFix
Mavenorg.codehaus.groovy:groovy2.0.0&&< 2.4.212.4.21
Mavenorg.codehaus.groovy:groovy2.5.0&&< 2.5.142.5.14
Mavenorg.codehaus.groovy:groovy3.0.0&&< 3.0.73.0.7
Mavenorg.codehaus.groovy:groovy-all2.0.0&&< 2.4.212.4.21
Mavenorg.codehaus.groovy:groovy-all2.5.0&&< 2.5.142.5.14
Mavenorg.codehaus.groovy:groovy-all3.0.0&&< 3.0.73.0.7

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.codehaus.groovy:groovy. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.

  2. Fix

    Update org.codehaus.groovy:groovy to 2.4.21 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-rcjj-h6gh-jf3r is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

  4. How O3 protects you

    O3 pinpoints whether GHSA-rcjj-h6gh-jf3r is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.

Tailored to GHSA-rcjj-h6gh-jf3r. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is GHSA-rcjj-h6gh-jf3r in your dependencies?

O3 detects GHSA-rcjj-h6gh-jf3r across Maven dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.