CVE-2022-1941

CVE-2022-1941 is a high-severity security vulnerability in protobuf (pip), affecting versions < 3.18.3. It is fixed in 3.18.3, 3.19.5, 3.20.2, 4.21.6.

Does this CVE actually affect you?

Kodem shows which CVEs are reachable and running in your applications, so you fix what's exploitable, not just what's listed.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Runtime intelligence, not another scanner.

Summary

protobuf-cpp and protobuf-python have potential Denial of Service issue

A 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.

Reporter: ClusterFuzz

Affected versions: All versions of C++ Protobufs (including Python) prior to the versions listed below.

Severity & Impact

As scored by google
Medium 5.7 - CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Asscored byt NIST
High 7.5 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

A small (~500 KB) malicious payload can be constructed which causes the running service to allocate more than 3GB of RAM.

Proof of Concept

For reproduction details, please refer to the unit test that identifies the specific inputs that exercise this parsing weakness.

Mitigation / Patching

Please update to the latest available versions of the following packages:

  • protobuf-cpp (3.18.3, 3.19.5, 3.20.2, 3.21.6)
  • protobuf-python (3.18.3, 3.19.5, 3.20.2, 4.21.6)

Impact

CVE-2022-1941 has a CVSS score of 7.5 (High). The vector is network-reachable, no privileges required, and no user interaction. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (3.18.3, 3.19.5, 3.20.2, 4.21.6); upgrading removes the vulnerable code path.

Affected versions

protobuf (< 3.18.3) protobuf (>= 3.19.0, < 3.19.5) protobuf (>= 3.20.0, < 3.20.2) protobuf (>= 4.0.0, < 4.21.6)

Security releases

protobuf → 3.18.3 (pip) protobuf → 3.19.5 (pip) protobuf → 3.20.2 (pip) protobuf → 4.21.6 (pip)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

Already deployed Kodem?

See it in your environmentNew to Kodem? Get a demo →

Remediation advice

Upgrade the following packages to resolve this vulnerability:

protobuf to 3.18.3 or later; protobuf to 3.19.5 or later; protobuf to 3.20.2 or later; protobuf to 4.21.6 or later

Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.

Frequently Asked Questions

  1. What is CVE-2022-1941? CVE-2022-1941 is a high-severity security vulnerability in protobuf (pip), affecting versions < 3.18.3. It is fixed in 3.18.3, 3.19.5, 3.20.2, 4.21.6.
  2. How severe is CVE-2022-1941? CVE-2022-1941 has a CVSS score of 7.5 (High). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
  3. Which versions of protobuf are affected by CVE-2022-1941? protobuf (pip) versions < 3.18.3 is affected.
  4. Is there a fix for CVE-2022-1941? Yes. CVE-2022-1941 is fixed in 3.18.3, 3.19.5, 3.20.2, 4.21.6. Upgrade to this version or later.
  5. Is CVE-2022-1941 exploitable, and should I be worried? Whether CVE-2022-1941 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  6. What actually determines whether CVE-2022-1941 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  7. How do I fix CVE-2022-1941?
    • Upgrade protobuf to 3.18.3 or later
    • Upgrade protobuf to 3.19.5 or later
    • Upgrade protobuf to 3.20.2 or later
    • Upgrade protobuf to 4.21.6 or later

Other vulnerabilities in protobuf

Stop the waste.
Protect your environment with Kodem.