{"id":"CVE-2022-1941","aliases":["CVE-2022-1941","GHSA-8gq9-2x98-w8hf","PYSEC-2026-899"],"related":[],"kind":"vulnerability","state":"published","title":"Out of Memory issue in ProtocolBuffers for cpp and python","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nA message parsing and memory management vulnerability in ProtocolBuffer’s C++ and Python implementations can trigger an out of memory (OOM) failure when processing a specially crafted message, which could lead to a denial of service (DoS) on services using the libraries.\n\nReporter: [ClusterFuzz](https://google.github.io/clusterfuzz/)\n\nAffected versions: All versions of C++ Protobufs (including Python) prior to the versions listed below.\n\n### Severity & Impact\nAs scored by google  \n**Medium 5.7** - [CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H](https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H)  \nAsscored byt NIST  \n**High 7.5** - [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H](https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H)\n\nA small (~500 KB) malicious payload can be constructed which causes the running service to allocate more than 3GB of RAM.\n\n### Proof of Concept\n\nFor reproduction details, please refer to the unit test that identifies the specific inputs that exercise this parsing weakness.\n\n### Mitigation / Patching\n\nPlease update to the latest available versions of the following packages:\n- protobuf-cpp (3.18.3, 3.19.5, 3.20.2, 3.21.6)\n- protobuf-python (3.18.3, 3.19.5, 3.20.2, 4.21.6)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una vulnerabilidad de análisis de tipo MessageSet en ProtocolBuffers versiones anteriores a 3.16.1, 3.17.3, 3.18.2, 3.19.4, 3.20.1 y 3.21.5 para protobuf-cpp, y las versiones anteriores a la 3.16.1, 3.17.3, 3.18.2, 3.19.4, 3.20.1 y 4.21.5 para protobuf-python, entre otras, puede conllevar a fallos de memoria. Un mensaje especialmente diseñado con múltiples elementos clave-valor por crea problemas de análisis, y puede conllevar a una denegación de servicio contra los servicios que reciban entradas no saneadas. Es recomendado actualizar a versiones 3.18.3, 3.19.5, 3.20.2, 3.21.6 para protobuf-cpp y 3.18.3, 3.19.5, 3.20.2, 4.21.6 para protobuf-python. Las versiones para 3.16 y 3.17 ya no son actualizadas","source":"nvd"}],"published":"2022-09-22T00:00:00.000Z","modified":"2026-07-08T06:28:21.826Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-119","CWE-1286"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"3.16.1","status":"affected"},{"type":"custom","introduced":"unspecified","lastAffected":"3.17.3","status":"affected"},{"type":"custom","introduced":"unspecified","lastAffected":"3.18.2","status":"affected"},{"type":"custom","introduced":"unspecified","lastAffected":"3.19.4","status":"affected"},{"type":"custom","introduced":"unspecified","lastAffected":"3.20.1","status":"affected"},{"type":"custom","introduced":"unspecified","lastAffected":"3.21.5","status":"affected"}],"vendor":"Google LLC","product":"protobuf-cpp","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"3.16.1","status":"affected"},{"type":"custom","introduced":"unspecified","lastAffected":"3.17.3","status":"affected"},{"type":"custom","introduced":"unspecified","lastAffected":"3.18.2","status":"affected"},{"type":"custom","introduced":"unspecified","lastAffected":"3.19.4","status":"affected"},{"type":"custom","introduced":"unspecified","lastAffected":"3.20.1","status":"affected"},{"type":"custom","introduced":"unspecified","lastAffected":"4.21.5","status":"affected"}],"vendor":"Google LLC","product":"protobuf-python","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"3.18.3","status":"affected"},{"type":"custom","introduced":"3.19.0","fixed":"3.19.5","status":"affected"},{"type":"custom","introduced":"3.20.0","fixed":"3.20.2","status":"affected"},{"type":"custom","introduced":"3.21.0","fixed":"3.21.6","status":"affected"}],"vendor":"google","product":"protobuf-cpp","cpe":"cpe:2.3:a:google:protobuf-cpp:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"3.18.3","status":"affected"},{"type":"custom","introduced":"3.19.0","fixed":"3.19.5","status":"affected"},{"type":"custom","introduced":"3.20.0","fixed":"3.20.2","status":"affected"},{"type":"custom","introduced":"4.0.0","fixed":"4.21.6","status":"affected"}],"vendor":"google","product":"protobuf-python","cpe":"cpe:2.3:a:google:protobuf-python:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.18.3"}],"ecosystem":"PyPI","package":"protobuf","purl":"pkg:pypi/protobuf","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.19.0","status":"affected","fixed":"3.19.5"}],"ecosystem":"PyPI","package":"protobuf","purl":"pkg:pypi/protobuf","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.20.0","status":"affected","fixed":"3.20.2"}],"ecosystem":"PyPI","package":"protobuf","purl":"pkg:pypi/protobuf","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0","status":"affected","fixed":"4.21.6"}],"ecosystem":"PyPI","package":"protobuf","purl":"pkg:pypi/protobuf","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.18.3"},{"status":"affected","introduced":"3.19.0","fixed":"3.19.5"},{"status":"affected","introduced":"3.20.0","fixed":"3.20.2"},{"status":"affected","introduced":"3.21.0","fixed":"3.21.6"}],"vendor":"google","product":"protobuf-cpp","cpe":"cpe:2.3:a:google:protobuf-cpp:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"3.18.3"},{"status":"affected","introduced":"3.19.0","fixed":"3.19.5"},{"status":"affected","introduced":"3.20.0","fixed":"3.20.2"},{"status":"affected","introduced":"4.0.0","fixed":"4.21.6"}],"vendor":"google","product":"protobuf-python","cpe":"cpe:2.3:a:google:protobuf-python:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"36"},{"status":"affected","version":"37"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.18.3"},{"type":"ecosystem","introduced":"3.19.0","status":"affected","fixed":"3.19.5"},{"type":"ecosystem","introduced":"3.20.0","status":"affected","fixed":"3.20.2"},{"type":"ecosystem","introduced":"4.0.0","status":"affected","fixed":"4.21.6"}],"ecosystem":"PyPI","package":"protobuf","purl":"pkg:pypi/protobuf","source":"pysec"}],"references":[{"url":"https://cloud.google.com/support/bulletins#GCP-2022-019","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/protocolbuffers/protobuf/security/advisories/GHSA-8gq9-2x98-w8hf","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"http://www.openwall.com/lists/oss-security/2022/09/27/1","tags":["mailing-list","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CBAUKJQL6O4TIWYBENORSY5P43TVB4M3/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/04/msg00019.html","tags":["mailing-list","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MPCGUT3T5L6C3IDWUPSUO22QDCGQKTOP/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20240705-0001/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-1941","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/protocolbuffers/protobuf","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CBAUKJQL6O4TIWYBENORSY5P43TVB4M3","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MPCGUT3T5L6C3IDWUPSUO22QDCGQKTOP","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CBAUKJQL6O4TIWYBENORSY5P43TVB4M3","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MPCGUT3T5L6C3IDWUPSUO22QDCGQKTOP","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://security.netapp.com/advisory/ntap-20240705-0001","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/protobuf","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-8gq9-2x98-w8hf","tags":["advisory"],"sources":["pysec"]}],"credits":["CluterFuzz - https://google.github.io/clusterfuzz/"],"assigner":"Google","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-07-16T19:20:47.222Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-1941","url":"https://www.cve.org/CVERecord?id=CVE-2022-1941","licence":"CVE Terms of Use","modified":"2024-08-03T00:24:42.594Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8gq9-2x98-w8hf","url":"https://github.com/advisories/GHSA-8gq9-2x98-w8hf","licence":"CC-BY-4.0","modified":"2026-07-08T06:28:21.826Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-1941","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-1941","licence":"Public domain","modified":"2026-06-17T04:23:23.630Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-899","url":"https://osv.dev/vulnerability/PYSEC-2026-899","licence":"CC-BY-4.0","modified":"2026-07-07T11:45:17.408Z"}],"updatedAt":"2026-11-25T22:58:15.201Z","epss":{"score":0.01613,"percentile":0.76724,"date":"2026-12-02T12:00:21.000Z"}}