{"id":"UBUNTU-CVE-2022-25647","details":"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.","modified":"2026-11-24T14:52:59.390559710Z","published":"2022-05-01T16:15:00Z","related":["USN-6692-1"],"upstream":["CVE-2022-25647"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-25647"},{"type":"REPORT","url":"https://github.com/google/gson/pull/1991"},{"type":"REPORT","url":"https://github.com/google/gson/pull/1991/commits"},{"type":"REPORT","url":"https://snyk.io/vuln/SNYK-JAVA-COMGOOGLECODEGSON-1730327"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-6692-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-25647"}],"affected":[{"package":{"name":"libgoogle-gson-java","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/libgoogle-gson-java?arch=source&distro=esm-apps%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4-1ubuntu0.1~esm1"}]}],"versions":["2.2.4-1","2.4-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.4-1ubuntu0.1~esm1","binary_name":"libgoogle-gson-java"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-25647.json"}},{"package":{"name":"libgoogle-gson-java","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/libgoogle-gson-java?arch=source&distro=esm-apps%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.8.5-3~18.04.1~esm1"}]}],"versions":["2.4-2","2.8.2-1","2.8.5-3~18.04"],"ecosystem_specific":{"binaries":[{"binary_version":"2.8.5-3~18.04.1~esm1","binary_name":"libgoogle-gson-java"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-25647.json"}},{"package":{"name":"libgoogle-gson-java","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/libgoogle-gson-java?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.8.5-3+deb10u1build0.20.04.1"}]}],"versions":["2.8.5-3"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"2.8.5-3+deb10u1build0.20.04.1","binary_name":"libgoogle-gson-java"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-25647.json"}},{"package":{"name":"libgoogle-gson-java","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/libgoogle-gson-java?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.8.8-1ubuntu0.1"}]}],"versions":["2.8.6-1","2.8.8-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.8.8-1ubuntu0.1","binary_name":"libgoogle-gson-java"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-25647.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"NVD"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:H","source":"CNA"},{"type":"Ubuntu","score":"medium","source":"SELF"}]}