Vulnerability · Published Jan 26, 2022 · Assigned by Google

CVE-2021-22570Nullptr Dereference in Protobuf

Medium 6.5

In plain English

A medium-severity null pointer dereference in Protobuf from Google LLC. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.7% (higher than 86% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)2.7%top 14.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8protobuf3.5.0-15.el8ALSA-2022:7464
AlmaLinux:9protobuf3.14.0-13.el9ALSA-2022:7970
AlmaLinux:8protobuf-compiler3.5.0-15.el8ALSA-2022:7464
AlmaLinux:9protobuf-compiler3.14.0-13.el9ALSA-2022:7970
AlmaLinux:8protobuf-devel3.5.0-15.el8ALSA-2022:7464
AlmaLinux:9protobuf-devel3.14.0-13.el9ALSA-2022:7970
AlmaLinux:8protobuf-lite3.5.0-15.el8ALSA-2022:7464
AlmaLinux:9protobuf-lite3.14.0-13.el9ALSA-2022:7970
AlmaLinux:8protobuf-lite-devel3.5.0-15.el8ALSA-2022:7464
AlmaLinux:9protobuf-lite-devel3.14.0-13.el9ALSA-2022:7970
AlmaLinux:8python3-protobuf3.5.0-15.el8ALSA-2022:7464
AlmaLinux:9python3-protobuf3.14.0-13.el9ALSA-2022:7970
Debian:12protobuf3.21.9-3DEBIAN-CVE-2021-22570
Debian:13protobuf3.21.9-3DEBIAN-CVE-2021-22570
Debian:14protobuf3.21.9-3DEBIAN-CVE-2021-22570
Gogithub.com/protocolbuffers/protobuf0.0.0-20210218195015-ae50d9b99025GHSA-77rm-9x9h-xj3g
Gogithub.com/protocolbuffers/protobuf3.15.0GHSA-77rm-9x9h-xj3g
Mavencom.google.protobuf:protobuf-java3.15.0GHSA-77rm-9x9h-xj3g
NuGetgoogle.protobuf3.15.0GHSA-77rm-9x9h-xj3g
Packagistgoogle/protobuf3.15.0GHSA-77rm-9x9h-xj3g
PyPIprotobuf3.15.0GHSA-77rm-9x9h-xj3g
PyPIprotobuf3.15.0PYSEC-2022-48
Rocky Linux:8protobuf0:3.5.0-15.el8RLSA-2022:7464
Rocky Linux:9protobuf0:3.14.0-13.el9RLSA-2022:7970
Ubuntu:22.04:LTSprotobuf3.12.4-1ubuntu7.22.04.1USN-5945-1
Ubuntu:22.04:LTSprotobuf3.12.4-1ubuntu7.22.04.1UBUNTU-CVE-2021-22570

Affected products (as reported)

VendorProductVersions
Google LLC Protobuf unspecified – before 3.15.0

Weakness: CWE-476 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

References