CVEfocus › CVE database › CVE-2022-25647

CVE-2022-25647Deserialization of Untrusted Data

CVSS 7.7 HighEPSS 2.0% (higher than 81% of CVEs)Published 2022-05-01Updated 2026-05-27Assigner: snyk

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.

CWE-502

What to do

Fixed builds are available from Alpine, Debian, Maven, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

31Fixed
2Fix pending
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04libgoogle-gson-javaNot affected
vulnerable_code_not_present
Ubuntu 22.04libgoogle-gson-javaFixed2.8.8-1ubuntu0.1UBUNTU-CVE-2022-25647
Ubuntu 20.04libgoogle-gson-javaFixed2.8.5-3+deb10u1build0.20.04.1UBUNTU-CVE-2022-25647
Ubuntu 18.04libgoogle-gson-javaFix pending2.8.5-3~18.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2022-25647
Ubuntu 16.04libgoogle-gson-javaFix pending2.4-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2022-25647
Debian 14libgoogle-gson-javaFixed2.9.0-1DEBIAN-CVE-2022-25647
Debian 13libgoogle-gson-javaFixed2.9.0-1DEBIAN-CVE-2022-25647
Debian 12libgoogle-gson-javaFixed2.9.0-1DEBIAN-CVE-2022-25647
Alpine Linux 3.24openjdk11Fixed11.0.16_p8-r0ALPINE-CVE-2022-25647
Alpine Linux 3.24openjdk17Fixed17.0.4_p8-r0ALPINE-CVE-2022-25647
Alpine Linux 3.23openjdk11Fixed11.0.16_p8-r0ALPINE-CVE-2022-25647
Alpine Linux 3.23openjdk17Fixed17.0.4_p8-r0ALPINE-CVE-2022-25647
Alpine Linux 3.22openjdk11Fixed11.0.16_p8-r0ALPINE-CVE-2022-25647
Alpine Linux 3.22openjdk17Fixed17.0.4_p8-r0ALPINE-CVE-2022-25647
Alpine Linux 3.21openjdk11Fixed11.0.16_p8-r0ALPINE-CVE-2022-25647
Alpine Linux 3.21openjdk17Fixed17.0.4_p8-r0ALPINE-CVE-2022-25647
Alpine Linux 3.20openjdk11Fixed11.0.16_p8-r0ALPINE-CVE-2022-25647
Alpine Linux 3.20openjdk17Fixed17.0.4_p8-r0ALPINE-CVE-2022-25647
Alpine Linux 3.19openjdk11Fixed11.0.16_p8-r0ALPINE-CVE-2022-25647
Alpine Linux 3.19openjdk17Fixed17.0.4_p8-r0ALPINE-CVE-2022-25647
Alpine Linux 3.18openjdk11Fixed11.0.16_p8-r0ALPINE-CVE-2022-25647
Alpine Linux 3.18openjdk13Fixed13.0.12_p4-r0ALPINE-CVE-2022-25647
Alpine Linux 3.18openjdk15Fixed15.0.8_p4-r0ALPINE-CVE-2022-25647
Alpine Linux 3.18openjdk17Fixed17.0.4_p8-r0ALPINE-CVE-2022-25647
Alpine Linux 3.17openjdk11Fixed11.0.16_p8-r0ALPINE-CVE-2022-25647
Alpine Linux 3.17openjdk13Fixed13.0.12_p4-r0ALPINE-CVE-2022-25647
Alpine Linux 3.17openjdk15Fixed15.0.8_p4-r0ALPINE-CVE-2022-25647
Alpine Linux 3.17openjdk17Fixed17.0.4_p8-r0ALPINE-CVE-2022-25647
Alpine Linux 3.16openjdk11Fixed11.0.16_p8-r0ALPINE-CVE-2022-25647
Alpine Linux 3.16openjdk13Fixed13.0.12_p4-r0ALPINE-CVE-2022-25647
Alpine Linux 3.16openjdk15Fixed15.0.8_p4-r0ALPINE-CVE-2022-25647
Alpine Linux 3.16openjdk17Fixed17.0.4_p8-r0ALPINE-CVE-2022-25647
Alpine Linux 3.15openjdk11Fixed11.0.17_p8-r0ALPINE-CVE-2022-25647
Maven librarycom.google.code.gson:gsonFixed2.8.9GHSA-4jrv-ppp4-jm57

What the vendor says

As published in the CVE record by snyk, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.