{"id":"USN-5638-2","summary":"expat vulnerabilities","details":"USN-5638-1 fixed a vulnerability in Expat. This update provides\nthe corresponding updates for Ubuntu 18.04 LTS, Ubuntu 20.04 LTS and\nUbuntu 22.04 LTS.\n\nIt was discovered that Expat incorrectly handled memory in out-of-memory\nsituations. An attacker could possibly use this issue to cause a crash,\n resulting in a denial of service, or possibly execute arbitrary code.\n This issue only affected Ubuntu 18.04 LTS. (CVE-2022-43680)\n\nOriginal advisory details:\n\n Rhodri James discovered that Expat incorrectly handled memory when\n processing certain malformed XML files. An attacker could possibly\n use this issue to cause a crash or execute arbitrary code.\n","modified":"2026-04-27T16:21:14.658199Z","published":"2022-11-17T09:56:58Z","related":["UBUNTU-CVE-2022-40674","UBUNTU-CVE-2022-43680"],"upstream":["CVE-2022-40674","CVE-2022-43680","UBUNTU-CVE-2022-40674","UBUNTU-CVE-2022-43680"],"references":[{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5638-2"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-40674"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-43680"}],"affected":[{"package":{"name":"expat","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/expat@2.2.5-3ubuntu0.8?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.5-3ubuntu0.8"}]}],"versions":["2.2.3-1","2.2.3-2","2.2.5-0ubuntu2","2.2.5-3","2.2.5-3ubuntu0.1","2.2.5-3ubuntu0.2","2.2.5-3ubuntu0.4","2.2.5-3ubuntu0.7"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"expat","binary_version":"2.2.5-3ubuntu0.8"},{"binary_name":"libexpat1","binary_version":"2.2.5-3ubuntu0.8"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-5638-2.json","cves_map":{"ecosystem":"Ubuntu:18.04:LTS","cves":[{"id":"CVE-2022-40674","severity":[{"score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","type":"CVSS_V3"},{"score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}]},{"id":"CVE-2022-43680","severity":[{"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:L/PR:N/UI:N/S:U/C:N/I:N/A:H","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}]}]}}},{"package":{"name":"expat","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/expat@2.2.9-1ubuntu0.5?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.9-1ubuntu0.5"}]}],"versions":["2.2.7-2","2.2.9-1","2.2.9-1build1","2.2.9-1ubuntu0.2","2.2.9-1ubuntu0.4"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"expat","binary_version":"2.2.9-1ubuntu0.5"},{"binary_name":"libexpat1","binary_version":"2.2.9-1ubuntu0.5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-5638-2.json","cves_map":{"ecosystem":"Ubuntu:20.04:LTS","cves":[{"id":"CVE-2022-40674","severity":[{"score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","type":"CVSS_V3"},{"score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}]}]}}},{"package":{"name":"expat","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/expat@2.4.7-1ubuntu0.1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.7-1ubuntu0.1"}]}],"versions":["2.4.1-2","2.4.1-3","2.4.2-1","2.4.3-1","2.4.3-2","2.4.4-1","2.4.6-1","2.4.7-1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"expat","binary_version":"2.4.7-1ubuntu0.1"},{"binary_name":"libexpat1","binary_version":"2.4.7-1ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-5638-2.json","cves_map":{"ecosystem":"Ubuntu:22.04:LTS","cves":[{"id":"CVE-2022-40674","severity":[{"score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","type":"CVSS_V3"},{"score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}]}]}}}],"schema_version":"1.7.5"}