Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. com.google.code.gson/gson
  4. ›
  5. CVE-2022-25647

CVE-2022-25647: Deserialization of Untrusted Data in Gson

May 3, 2022 (updated June 8, 2026)

The package com.google.code.gson:gson before 2.8.9 is vulnerable to Deserialization of Untrusted Data via the writeReplace() method in internal classes, which may lead to denial of service attacks.

References

  • github.com/advisories/GHSA-4jrv-ppp4-jm57
  • github.com/google/gson/pull/1991
  • github.com/google/gson/pull/1991/commits
  • lists.debian.org/debian-lts-announce/2022/05/msg00015.html
  • lists.debian.org/debian-lts-announce/2022/09/msg00009.html
  • nvd.nist.gov/vuln/detail/CVE-2022-25647
  • security.netapp.com/advisory/ntap-20220901-0009
  • snyk.io/vuln/SNYK-JAVA-COMGOOGLECODEGSON-1730327
  • www.debian.org/security/2022/dsa-5227
  • www.oracle.com/security-alerts/cpujul2022.html

Code Behaviors & Features

Detect and mitigate CVE-2022-25647 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.8.9

Fixed versions

  • 2.8.9

Solution

Upgrade to version 2.8.9 or above.

Impact 7.7 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-502: Deserialization of Untrusted Data

Source file

maven/com.google.code.gson/gson/CVE-2022-25647.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:56 +0000.