Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2022-1941

HIGH 7.5EPSS 72%

Out of Memory issue in ProtocolBuffers for cpp and python

Also known as GHSA-8gq9-2x98-w8hf, PYSEC-2026-899

Mitigation

  • Upgrade protobuf to one of 3.18.3, 3.19.5, 3.20.2, 4.21.6 (or later in the same release line).

Who should check

  • Projects that depend on PyPI package protobuf (< 3.18.3)
  • Anyone running Google LLC protobuf-cpp >= unspecified, <= 3.16.1; >= unspecified, <= 3.17.3; >= unspecified, <= 3.18.2; >= unspecified, <= 3.19.4; >= unspecified, <= 3.20.1; >= unspecified, <= 3.21.5
  • Anyone running Google LLC protobuf-python >= unspecified, <= 3.16.1; >= unspecified, <= 3.17.3; >= unspecified, <= 3.18.2; >= unspecified, <= 3.19.4; >= unspecified, <= 3.20.1; >= unspecified, <= 4.21.5

Vulnerability facts

Affected
protobuf < 3.18.3
Fixed in
3.18.3, 3.19.5, 3.20.2, 4.21.6
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
EPSS
1.39% chance of exploitation in 30 days (percentile 72, 2026-11-26)
CWE
CWE-1286
Published
Modified

Description

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.

Affected and fixed versions

Package / productAffectedFixedSource
PyPI protobuf< 3.18.33.18.3, 3.19.5, 3.20.2, 4.21.6osv
Google LLC protobuf-cpp>= unspecified, <= 3.16.1; >= unspecified, <= 3.17.3; >= unspecified, <= 3.18.2; >= unspecified, <= 3.19.4; >= unspecified, <= 3.20.1; >= unspecified, <= 3.21.5—cvelist
Google LLC protobuf-python>= unspecified, <= 3.16.1; >= unspecified, <= 3.17.3; >= unspecified, <= 3.18.2; >= unspecified, <= 3.19.4; >= unspecified, <= 3.20.1; >= unspecified, <= 4.21.5—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2022-1941. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-1941.md
Affected: protobuf < 3.18.3
Fixed in: 3.18.3, 3.19.5, 3.20.2, 4.21.6

Steps:
1. Search this machine and project for protobuf (PyPI), Google LLC protobuf-cpp, Google LLC protobuf-python: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2022-1941 being exploited?

There is no confirmed exploitation: CVE-2022-1941 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.39% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2022-1941?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2022-1941?

protobuf < 3.18.3.

Is there a fix for CVE-2022-1941?

Yes. Fixed in 3.18.3, 3.19.5, 3.20.2, 4.21.6. Upgrade protobuf to one of 3.18.3, 3.19.5, 3.20.2, 4.21.6 (or later in the same release line).

How do I check if I'm affected by CVE-2022-1941?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors