Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.8

CVE-2016-6814: Groovy libraries can run code from crafted data

CVE-2016-6814 · published 8 years ago
Summary

Versions of Groovy from 1.7.0 through 2.4.7 that are loaded in a Java application can execute arbitrary code when they read specially crafted serialized objects. This affects any system that uses Groovy’s serialization features without separating that code, such as communication between servers or local data storage. Update to the latest Groovy release or avoid using Java serialization with these versions.

What to do
  • Update codehaus org.codehaus.groovy:groovy to version 2.4.8.
  • Update codehaus org.codehaus.groovy:groovy-all to version 2.4.8.
  • Update org.codehaus.groovy:groovy-all to version 1.7.2-aikido.1.
  • Update io.root.org.codehaus.groovy:groovy-all to version 1.7.2-root.io.1.
  • Update canonical groovy2 to version 2.4.5-1ubuntu0.1~esm1.
Affected software
Ecosystem VendorProductAffected versions
maven codehaus org.codehaus.groovy:groovy >= 1.7.0, <= 2.4.7
Fix: upgrade to 2.4.8
maven codehaus org.codehaus.groovy:groovy-all >= 1.7.0, <= 2.4.7
Fix: upgrade to 2.4.8
– apache groovy >= 1.7.0, <= 2.4.3
>= 2.4.4, <= 2.4.7
cpe:2.3:a:apache:groovy:*:*:*:*:*:*:*:*
– redhat enterprise_linux_server 7.0
cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*
Root:Maven – org.codehaus.groovy:groovy-all < 1.7.2-aikido.1
Fix: upgrade to 1.7.2-aikido.1
Root:Maven – io.root.org.codehaus.groovy:groovy-all < 1.7.2-root.io.1
Fix: upgrade to 1.7.2-root.io.1
Ubuntu:Pro:16.04:LTS canonical groovy2 < 2.4.5-1ubuntu0.1~esm1
Fix: upgrade to 2.4.5-1ubuntu0.1~esm1
Ubuntu:Pro:16.04:LTS canonical groovy All versions
Original advisory text
CVE-2016-6814 in org.codehaus.groovy:groovy-all - Patched by Root
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.
Fix within
Internet-facing 3 days
Internal 60 days
  • Not known to be exploited
  • Can be exploited automatically (estimated)
  • Gives an attacker full control (estimated)
Severity
9.8 Critical
Exploitation
15% chance of attack within 30 days
Type
CWE-502Deserialization of Untrusted Data
Timeline
Published18 Jan 2018
Updated2 Dec 2026
First seen6 Mar 2026
Track software like this
Free during beta