Vulnerability · Published May 1, 2022 · Assigned by snyk
CVE-2022-25647Deserialization of Untrusted Data
High 7.7
In plain English
A high-severity unsafe deserialization in com.google.code.gson:gson. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 12.2% (higher than 96% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.7High
Exploit odds (30 days)12.2%top 3.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
The package com.google.code.gson:gson before 2.8.9 are vulnerable to Deserialization of Untrusted Data via the writeReplace() method in internal classes, which may lead to DoS attacks.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | openjdk11 | 11.0.16_p8-r0 | ALPINE-CVE-2022-25647 |
| Alpine:v3.21 | openjdk11 | 11.0.16_p8-r0 | ALPINE-CVE-2022-25647 |
| Alpine:v3.22 | openjdk11 | 11.0.16_p8-r0 | ALPINE-CVE-2022-25647 |
| Alpine:v3.23 | openjdk11 | 11.0.16_p8-r0 | ALPINE-CVE-2022-25647 |
| Alpine:v3.24 | openjdk11 | 11.0.16_p8-r0 | ALPINE-CVE-2022-25647 |
| Alpine:v3.20 | openjdk17 | 17.0.4_p8-r0 | ALPINE-CVE-2022-25647 |
| Alpine:v3.21 | openjdk17 | 17.0.4_p8-r0 | ALPINE-CVE-2022-25647 |
| Alpine:v3.22 | openjdk17 | 17.0.4_p8-r0 | ALPINE-CVE-2022-25647 |
| Alpine:v3.23 | openjdk17 | 17.0.4_p8-r0 | ALPINE-CVE-2022-25647 |
| Alpine:v3.24 | openjdk17 | 17.0.4_p8-r0 | ALPINE-CVE-2022-25647 |
| Debian:12 | libgoogle-gson-java | 2.9.0-1 | DEBIAN-CVE-2022-25647 |
| Debian:13 | libgoogle-gson-java | 2.9.0-1 | DEBIAN-CVE-2022-25647 |
| Debian:14 | libgoogle-gson-java | 2.9.0-1 | DEBIAN-CVE-2022-25647 |
| Maven | com.google.code.gson:gson | 2.8.9 | GHSA-4jrv-ppp4-jm57 |
| Ubuntu:22.04:LTS | libgoogle-gson-java | 2.8.8-1ubuntu0.1 | UBUNTU-CVE-2022-25647 |
| Ubuntu:22.04:LTS | libgoogle-gson-java | 2.8.8-1ubuntu0.1 | USN-6692-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | com.google.code.gson:gson | unspecified – before 2.8.9 |
Weakness: CWE-502 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:H
References
- https://snyk.io/vuln/SNYK-JAVA-COMGOOGLECODEGSON-1730327 x_refsource_MISC
- https://github.com/google/gson/pull/1991 x_refsource_MISC
- https://github.com/google/gson/pull/1991/commits x_refsource_MISC
- [debian-lts-announce] 20220513 [SECURITY] [DLA 3001-1] libgoogle-gson-java security update mailing-list, x_refsource_MLIST
- https://www.oracle.com/security-alerts/cpujul2022.html x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20220901-0009/ x_refsource_CONFIRM
- [debian-lts-announce] 20220907 [SECURITY] [DLA 3100-1] libgoogle-gson-java security update mailing-list, x_refsource_MLIST
- DSA-5227 vendor-advisory, x_refsource_DEBIAN