{"id":"UBUNTU-CVE-2022-1941","details":"A parsing vulnerability for the MessageSet type in the ProtocolBuffers versions prior to and including 3.16.1, 3.17.3, 3.18.2, 3.19.4, 3.20.1 and 3.21.5 for protobuf-cpp, and versions prior to and including 3.16.1, 3.17.3, 3.18.2, 3.19.4, 3.20.1 and 4.21.5 for protobuf-python can lead to out of memory failures. A specially crafted message with multiple key-value per elements creates parsing issues, and can lead to a Denial of Service against services receiving unsanitized input. We recommend upgrading to versions 3.18.3, 3.19.5, 3.20.2, 3.21.6 for protobuf-cpp and 3.18.3, 3.19.5, 3.20.2, 4.21.6 for protobuf-python. Versions for 3.16 and 3.17 are no longer updated.","modified":"2026-04-22T15:18:58.613107Z","published":"2022-09-22T15:15:00Z","related":["USN-5769-1","USN-5945-1"],"upstream":["CVE-2022-1941"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-1941"},{"type":"REPORT","url":"https://cloud.google.com/support/bulletins#GCP-2022-019"},{"type":"REPORT","url":"https://github.com/protocolbuffers/protobuf/security/advisories/GHSA-8gq9-2x98-w8hf"},{"type":"REPORT","url":"https://github.com/protocolbuffers/protobuf/releases/tag/v3.20.2"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5769-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5945-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-1941"}],"affected":[{"package":{"name":"protobuf","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/protobuf@2.5.0-9ubuntu1+esm1?arch=source&distro=esm-infra-legacy/trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.1-3ubuntu2","2.4.1-3ubuntu3","2.4.1-3ubuntu4","2.5.0-5ubuntu2","2.5.0-7ubuntu1","2.5.0-8ubuntu1","2.5.0-9ubuntu1","2.5.0-9ubuntu1+esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.5.0-9ubuntu1+esm1","binary_name":"libprotobuf-java"},{"binary_version":"2.5.0-9ubuntu1+esm1","binary_name":"libprotobuf-lite8"},{"binary_version":"2.5.0-9ubuntu1+esm1","binary_name":"libprotobuf8"},{"binary_version":"2.5.0-9ubuntu1+esm1","binary_name":"libprotoc8"},{"binary_version":"2.5.0-9ubuntu1+esm1","binary_name":"protobuf-compiler"},{"binary_version":"2.5.0-9ubuntu1+esm1","binary_name":"python-protobuf"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-1941.json"}},{"package":{"name":"protobuf","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/protobuf@2.6.1-1.3ubuntu0.1~esm2?arch=source&distro=esm-infra/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.1-1.3ubuntu0.1~esm2"}]}],"versions":["2.6.1-1.2","2.6.1-1.3","2.6.1-1.3ubuntu0.1~esm1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_version":"2.6.1-1.3ubuntu0.1~esm2","binary_name":"libprotobuf-java"},{"binary_version":"2.6.1-1.3ubuntu0.1~esm2","binary_name":"libprotobuf-lite9v5"},{"binary_version":"2.6.1-1.3ubuntu0.1~esm2","binary_name":"libprotobuf9v5"},{"binary_version":"2.6.1-1.3ubuntu0.1~esm2","binary_name":"libprotoc9v5"},{"binary_version":"2.6.1-1.3ubuntu0.1~esm2","binary_name":"protobuf-compiler"},{"binary_version":"2.6.1-1.3ubuntu0.1~esm2","binary_name":"python-protobuf"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-1941.json"}},{"package":{"name":"protobuf","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/protobuf@3.0.0-9.1ubuntu1.1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.0-9.1ubuntu1.1"}]}],"versions":["3.0.0-9ubuntu5","3.0.0-9ubuntu6","3.0.0-9.1ubuntu1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"3.0.0-9.1ubuntu1.1","binary_name":"libprotobuf-java"},{"binary_version":"3.0.0-9.1ubuntu1.1","binary_name":"libprotobuf-lite10"},{"binary_version":"3.0.0-9.1ubuntu1.1","binary_name":"libprotobuf10"},{"binary_version":"3.0.0-9.1ubuntu1.1","binary_name":"libprotoc10"},{"binary_version":"3.0.0-9.1ubuntu1.1","binary_name":"protobuf-compiler"},{"binary_version":"3.0.0-9.1ubuntu1.1","binary_name":"python-protobuf"},{"binary_version":"3.0.0-9.1ubuntu1.1","binary_name":"python3-protobuf"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-1941.json"}},{"package":{"name":"protobuf","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/protobuf@3.6.1.3-2ubuntu5.2?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.1.3-2ubuntu5.2"}]}],"versions":["3.6.1.3-2","3.6.1.3-2ubuntu1","3.6.1.3-2ubuntu3","3.6.1.3-2ubuntu4","3.6.1.3-2ubuntu5"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"3.6.1.3-2ubuntu5.2","binary_name":"libprotobuf-java"},{"binary_version":"3.6.1.3-2ubuntu5.2","binary_name":"libprotobuf-lite17"},{"binary_version":"3.6.1.3-2ubuntu5.2","binary_name":"libprotobuf17"},{"binary_version":"3.6.1.3-2ubuntu5.2","binary_name":"libprotoc17"},{"binary_version":"3.6.1.3-2ubuntu5.2","binary_name":"protobuf-compiler"},{"binary_version":"3.6.1.3-2ubuntu5.2","binary_name":"python-protobuf"},{"binary_version":"3.6.1.3-2ubuntu5.2","binary_name":"python3-protobuf"},{"binary_version":"3.6.1.3-2ubuntu5.2","binary_name":"ruby-google-protobuf"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-1941.json"}},{"package":{"name":"protobuf","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/protobuf@3.12.4-1ubuntu7.22.04.1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.12.4-1ubuntu7.22.04.1"}]}],"versions":["3.12.4-1ubuntu3","3.12.4-1ubuntu5","3.12.4-1ubuntu6","3.12.4-1ubuntu7"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"3.12.4-1ubuntu7.22.04.1","binary_name":"elpa-protobuf-mode"},{"binary_version":"3.12.4-1ubuntu7.22.04.1","binary_name":"libprotobuf-java"},{"binary_version":"3.12.4-1ubuntu7.22.04.1","binary_name":"libprotobuf-lite23"},{"binary_version":"3.12.4-1ubuntu7.22.04.1","binary_name":"libprotobuf23"},{"binary_version":"3.12.4-1ubuntu7.22.04.1","binary_name":"libprotoc23"},{"binary_version":"3.12.4-1ubuntu7.22.04.1","binary_name":"protobuf-compiler"},{"binary_version":"3.12.4-1ubuntu7.22.04.1","binary_name":"python3-protobuf"},{"binary_version":"3.12.4-1ubuntu7.22.04.1","binary_name":"ruby-google-protobuf"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-1941.json"}}],"schema_version":"1.7.5","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:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"low"}]}