{"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-01-30T02:26:24.953937Z","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@2.4-1ubuntu0.1~esm1?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4-1ubuntu0.1~esm1"}]}],"versions":["2.2.4-1","2.4-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libgoogle-gson-java","binary_version":"2.4-1ubuntu0.1~esm1"}],"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@2.8.5-3~18.04.1~esm1?arch=source&distro=esm-apps/bionic"},"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":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"libgoogle-gson-java","binary_version":"2.8.5-3~18.04.1~esm1"}]},"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@2.8.5-3+deb10u1build0.20.04.1?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_name":"libgoogle-gson-java","binary_version":"2.8.5-3+deb10u1build0.20.04.1"}]},"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@2.8.8-1ubuntu0.1?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":{"availability":"No subscription required","binaries":[{"binary_name":"libgoogle-gson-java","binary_version":"2.8.8-1ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-25647.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}