CVE-2021-22570
JSON

6.5medium

Nullptr Dereference in Protobuf

Severity
6.5medium CVSS:3.1 by Google
Exploit likelihood
2.51% (higher than 85% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Google
Also known as
GHSA-77rm-9x9h-xj3gPYSEC-2022-48

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

Product or packageVersionsReported by
Google LLC Protobuffrom unspecified before 3.15.0CVE List
Google.Protobuf (NuGet)before 3.15.0GitHub Advisory Database
google/protobuf (Packagist)before 3.15.0GitHub Advisory Database
com.google.protobuf:protobuf-java (Maven)before 3.15.0GitHub Advisory Database
github.com/protocolbuffers/protobuf (Go)before 0.0.0-20210218195015-ae50d9b99025, from 0.0.0 before 3.15.0GitHub Advisory Database
protobuf (PyPI)before 3.15.0GitHub Advisory Database, PyPA Advisory Database
google protobufbefore 3.15.0NVD
debian debian_linux9.0, 10.0, 11.0NVD
fedoraproject fedora34, 35, 36NVD
oracle mysqlup to 8.0.28NVD
netapp active_iq_unified_managerNot specifiedNVD
netapp oncommand_insightNot specifiedNVD

All scores

Google6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD2.1low CVSS:2.0AV:L/AC:L/Au:N/C:N/I:N/A:P

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Withdrawn Advisory

This advisory has been withdrawn because the protobuf vulnerability comes from the compiler rather that the code. This link is maintained to preserve external references.

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

NVD (es)

Una desreferencia de puntero Null cuando un char nulo está presente en un símbolo proto. El símbolo es analizado incorrectamente, conllevando a una llamada no comprobada al nombre del archivo proto durante la generación del mensaje de error resultante. Como el símbolo es analizado incorrectamente, el archivo es nullptr. Es recomendado actualizar a versión 3.15.0 o superior

References

https://github.com/protocolbuffers/protobuf/releases/tag/v3.15.0release-notes, third-party-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IFX6KPNOFHYD6L4XES5PCM3QNSKZBOTQ/vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3DVUZPALAQ34TQP6KFNLM4IZS6B32XSA/vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NVTWVQRB5OCCTMKEQFY5MYED3DXDVSLP/vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BTRGBRC5KGCA4SK5MUNLPYJRAGXMBIYY/vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5PAGL5M2KGYPN3VEQCRJJE6NA7D5YG5X/vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KQJB6ZPRLKV6WCMX2PRRRQBFAOXFBK6B/vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MRWRAXAFR3JR7XCFWTHC2KALSZKWACCE/vendor-advisory
https://www.oracle.com/security-alerts/cpuapr2022.htmlthird-party-advisory, web
https://security.netapp.com/advisory/ntap-20220429-0005/third-party-advisory
https://lists.debian.org/debian-lts-announce/2023/04/msg00019.htmlmailing-list, web
https://nvd.nist.gov/vuln/detail/CVE-2021-22570advisory

Sources

SourceRecordLicence
CVE ListCVE-2021-22570 changed 2025-04-21CVE Terms of Use
GitHub Advisory DatabaseGHSA-77rm-9x9h-xj3g changed 2026-09-10CC-BY-4.0
NVDCVE-2021-22570 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2022-48 changed 2026-01-28CC-BY-4.0