{"id":"GHSA-4jrv-ppp4-jm57","summary":"Deserialization of Untrusted Data in Gson","details":"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.","aliases":["CVE-2022-25647","SNYK-JAVA-COMGOOGLECODEGSON-1730327"],"modified":"2026-07-17T21:08:21.555714377Z","published":"2022-05-03T00:00:44Z","database_specific":{"cwe_ids":["CWE-502"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2022-05-20T20:31:08Z","nvd_published_at":"2022-05-01T16:15:00Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25647"},{"type":"WEB","url":"https://github.com/google/gson/pull/1991"},{"type":"WEB","url":"https://github.com/google/gson/pull/1991/commits"},{"type":"PACKAGE","url":"https://github.com/google/gson"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2022/05/msg00015.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2022/09/msg00009.html"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20220901-0009"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JAVA-COMGOOGLECODEGSON-1730327"},{"type":"WEB","url":"https://www.debian.org/security/2022/dsa-5227"},{"type":"WEB","url":"https://www.oracle.com/security-alerts/cpujul2022.html"}],"affected":[{"package":{"name":"com.google.code.gson:gson","ecosystem":"Maven","purl":"pkg:maven/com.google.code.gson/gson"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.8.9"}]}],"versions":["1.1","1.4","1.5","1.6","1.7","1.7.1","1.7.2","2.0","2.1","2.2","2.2.1","2.2.2","2.2.3","2.2.4","2.3","2.3.1","2.4","2.5","2.6","2.6.1","2.6.2","2.7","2.8.0","2.8.1","2.8.2","2.8.3","2.8.4","2.8.5","2.8.6","2.8.7","2.8.8"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-4jrv-ppp4-jm57/GHSA-4jrv-ppp4-jm57.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:H"}]}