# CVE-2021-22570: Withdrawn Advisory: NULL Pointer Dereference in Protocol Buffers

Source: https://junglewise.ai/threats/cve-2021-22570-withdrawn-advisory-null-pointer-dereference-in-protocol-buffers  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-01-26  
License: CC BY 4.0 with a link back

CVE-2021-22570 · Severity: low · CVSS 3.1 · Published 2022-01-26

Nullptr dereference when a null char is present in a proto symbol. The symbol is parsed incorrectly, leading to an unchecked call into the proto file's name during generation of the resulting error message. Since the symbol is incorrectly parsed, the file is nullptr. We recommend upgrading to version 3.15.0 or greater.

Technologies: [com.google.protobuf:protobuf-java (Maven)](https://junglewise.ai/threats/technologies/com-google-protobuf-protobuf-java), [google/protobuf (Packagist)](https://junglewise.ai/threats/technologies/google-protobuf), [protobuf (PyPI)](https://junglewise.ai/threats/technologies/pypi-protobuf). Vendors: [Go](https://junglewise.ai/threats/vendors/go), [Maven](https://junglewise.ai/threats/vendors/maven), [NuGet](https://junglewise.ai/threats/vendors/nuget), [Packagist](https://junglewise.ai/threats/vendors/packagist), [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2021-22570 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-22570 being exploited in the wild.

**How severe is CVE-2021-22570?** Low severity, with a CVSS score of 3.1, published 26 January 2022.

**Which products and versions are affected?** github.com/protocolbuffers/protobuf (Go) SEMVER:introduced=0,fixed=0.0.0-20210218195015-ae50d9b99025; com.google.protobuf:protobuf-java (Maven) ECOSYSTEM:introduced=0,fixed=3.15.0; Google.Protobuf (NuGet) ECOSYSTEM:introduced=0,fixed=3.15.0; google/protobuf (Packagist) ECOSYSTEM:introduced=0,fixed=3.15.0; and 1 more.

**Is there a fix for CVE-2021-22570?** Yes. github.com/protocolbuffers/protobuf (Go): upgrade to 0.0.0-20210218195015-ae50d9b99025 or later; com.google.protobuf:protobuf-java (Maven): upgrade to 3.15.0 or later; Google.Protobuf (NuGet): upgrade to 3.15.0 or later; google/protobuf (Packagist): upgrade to 3.15.0 or later; protobuf (PyPI): upgrade to 3.15.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-22570?** Check whether you run github.com/protocolbuffers/protobuf (Go), com.google.protobuf:protobuf-java (Maven), Google.Protobuf (NuGet) or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/protocolbuffers/protobuf (Go): upgrade to 0.0.0-20210218195015-ae50d9b99025 or later

  ```sh
  go get github.com/protocolbuffers/protobuf@v0.0.0-20210218195015-ae50d9b99025
  ```

- com.google.protobuf:protobuf-java (Maven): upgrade to 3.15.0 or later

  ```sh
  # set com.google.protobuf:protobuf-java to 3.15.0 in your pom.xml or build.gradle
  ```

- Google.Protobuf (NuGet): upgrade to 3.15.0 or later

  ```sh
  dotnet add package Google.Protobuf --version 3.15.0
  ```

- google/protobuf (Packagist): upgrade to 3.15.0 or later

  ```sh
  composer require google/protobuf:^3.15.0
  ```

- protobuf (PyPI): upgrade to 3.15.0 or later

  ```sh
  pip install "protobuf>=3.15.0"
  ```


## Affected products

- github.com/protocolbuffers/protobuf (Go) SEMVER:introduced=0,fixed=0.0.0-20210218195015-ae50d9b99025
- com.google.protobuf:protobuf-java (Maven) ECOSYSTEM:introduced=0,fixed=3.15.0
- Google.Protobuf (NuGet) ECOSYSTEM:introduced=0,fixed=3.15.0
- google/protobuf (Packagist) ECOSYSTEM:introduced=0,fixed=3.15.0
- protobuf (PyPI) ECOSYSTEM:introduced=0,fixed=3.15.0

## Identifiers

- CVE-2021-22570
- GHSA-77rm-9x9h-xj3g
- PYSEC-2022-48

## Related threats

- [PYSEC-2026-1806 - protobuf-python has a potential Denial of Service issue](https://junglewise.ai/threats/cve-2025-4565-protobuf-python-has-a-potential-denial-of-service-issue)
- [PYSEC-2026-899 - protobuf-cpp and protobuf-python have potential Denial of Service issue](https://junglewise.ai/threats/cve-2022-1941-protobuf-cpp-and-protobuf-python-have-potential-denial-of-service)
- [Google Protobuf PHP denial of service via malicious messages](https://junglewise.ai/threats/google-protobuf-php-denial-of-service-via-malicious-messages-485224ad)
- [Google Protobuf DoS via negative varints or deep recursion in PHP](https://junglewise.ai/threats/cve-2026-6409-google-protobuf-dos-via-negative-varints-or-deep-recursion-in-php)
- [Google Protobuf denial of service in Python json_format.ParseDict](https://junglewise.ai/threats/cve-2026-0994-google-protobuf-denial-of-service-in-python-json-format-parsedict)
