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

EcosystemPackageFixed inAdvisory
Alpine:v3.20openjdk1111.0.16_p8-r0ALPINE-CVE-2022-25647
Alpine:v3.21openjdk1111.0.16_p8-r0ALPINE-CVE-2022-25647
Alpine:v3.22openjdk1111.0.16_p8-r0ALPINE-CVE-2022-25647
Alpine:v3.23openjdk1111.0.16_p8-r0ALPINE-CVE-2022-25647
Alpine:v3.24openjdk1111.0.16_p8-r0ALPINE-CVE-2022-25647
Alpine:v3.20openjdk1717.0.4_p8-r0ALPINE-CVE-2022-25647
Alpine:v3.21openjdk1717.0.4_p8-r0ALPINE-CVE-2022-25647
Alpine:v3.22openjdk1717.0.4_p8-r0ALPINE-CVE-2022-25647
Alpine:v3.23openjdk1717.0.4_p8-r0ALPINE-CVE-2022-25647
Alpine:v3.24openjdk1717.0.4_p8-r0ALPINE-CVE-2022-25647
Debian:12libgoogle-gson-java2.9.0-1DEBIAN-CVE-2022-25647
Debian:13libgoogle-gson-java2.9.0-1DEBIAN-CVE-2022-25647
Debian:14libgoogle-gson-java2.9.0-1DEBIAN-CVE-2022-25647
Mavencom.google.code.gson:gson2.8.9GHSA-4jrv-ppp4-jm57
Ubuntu:22.04:LTSlibgoogle-gson-java2.8.8-1ubuntu0.1UBUNTU-CVE-2022-25647
Ubuntu:22.04:LTSlibgoogle-gson-java2.8.8-1ubuntu0.1USN-6692-1

Affected products (as reported)

VendorProductVersions
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