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

May 3, 2022 (updated May 20, 2022)

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 DoS 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
  • nvd.nist.gov/vuln/detail/CVE-2022-25647
  • snyk.io/vuln/SNYK-JAVA-COMGOOGLECODEGSON-1730327

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. Learn more about Dependency Scanning →

Affected versions

All versions before 2.8.9

Fixed versions

  • 2.8.9

Solution

Upgrade to version 2.8.9 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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 Wed, 14 May 2025 12:14:55 +0000.