Critical

Deserialization of Untrusted Data in Groovy

  • Disclosed: 13.05.2022
  • Updated: 11.10.2026 12:21

When an application with unsupported Codehaus versions of Groovy from 1.7.0 to 2.4.3, Apache Groovy 2.4.4 to 2.4.7 on classpath uses standard Java serialization mechanisms, e.g. to communicate between servers or to store local data, it was possible for an attacker to bake a special serialized object that will execute code directly when deserialized. All applications which rely on serialization and do not isolate the code which deserializes objects were subject to this vulnerability.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.codehaus.groovy:groovy >= 1.7.0, < 2.4.8 2.4.8
Java / Kotlin (Maven) org.codehaus.groovy:groovy-all >= 1.7.0, < 2.4.8 2.4.8

References

CVSS score 9.8/10
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-502
Platform
Java / Kotlin (Maven)
Package
org.codehaus.groovy:groovy, org.codehaus.groovy:groovy-all
Disclosed
13.05.2022
Updated
11.10.2026 12:21

Sources and licenses

OSV / GitHub Advisory Database - GHSA-xphj-m9cc-8fmq - CC BY 4.0

Vulnerability history: org.codehaus.groovy:groovy-all

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
3
First → latest
12.2020 05.2022
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 2
  • Medium 1

Disclosures per year

  1. 2020: 1
  2. 2021: 0
  3. 2022: 2
  4. 2023: 0
  5. 2024: 0
  6. 2025: 0
  7. 2026: 0
  1. Deserialization of Untrusted Data in Groovy this entry
    Critical · 9.8 CVE-2016-6814 >= 1.7.0, < 2.4.8 2.4.8
  2. Medium · 5.5 CVE-2020-17521 >= 2.0.0, < 2.4.21, >= 2.5.0, < 2.5.14, >= 3.0.0, < 3.0.7 2.4.21, 2.5.14, 3.0.7

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.