Skip to content

NULL Pointer Dereference in Protocol Buffers

High severity GitHub Reviewed Published Jan 27, 2022 to the GitHub Advisory Database • Updated Aug 16, 2023

Package

nuget Google.Protobuf (NuGet)

Affected versions

< 3.15.0

Patched versions

3.15.0
maven com.google.protobuf:protobuf-java (Maven)
< 3.15.0
3.15.0
gomod github.com/protocolbuffers/protobuf (Go)
< 3.15.0
3.15.0
composer google/protobuf (Composer)
< 3.15.0
3.15.0
pip protobuf (pip)
< 3.15.0
3.15.0

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.

References

Published by the National Vulnerability Database Jan 26, 2022
Published to the GitHub Advisory Database Jan 27, 2022
Reviewed Feb 3, 2022
Last updated Aug 16, 2023

Severity

High
7.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Weaknesses

CVE ID

CVE-2021-22570

GHSA ID

GHSA-77rm-9x9h-xj3g

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.