cve.bz

CVE-2021-22570 NULL Pointer Dereference

5.5 mediumEPSS 2.9%Fix available

Medium (5.5). EPSS 2.9% estimated probability of exploitation activity in the next 30 days. Fixed in protobuf 3.15.0.

On this page
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.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
2.9% (unchanged from 2.7% a week ago; 2.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 87th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-04-21. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-476 NULL Pointer Dereference
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-22570 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-22570?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-22570?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-22570 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Google LLC Protobufbefore 3.15.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
PYSEC-2022-48PyPIprotobuf<3.15.03.15.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10protobuf3.6.1.3-2+deb10u1DLA-3393-1
Debian12, 13, 14protobuf3.21.9-3DEBIAN-CVE-2021-22570
Ubuntu18.04:LTSprotobuf3.0.0-9.1ubuntu1.1UBUNTU-CVE-2021-22570 USN-5945-1
Ubuntu20.04:LTSprotobuf3.6.1.3-2ubuntu5.2UBUNTU-CVE-2021-22570 USN-5945-1
Ubuntu22.04:LTSprotobuf3.12.4-1ubuntu7.22.04.1UBUNTU-CVE-2021-22570 USN-5945-1
UbuntuPro:14.04:LTSprotobuf2.5.0-9ubuntu1+esm1UBUNTU-CVE-2021-22570 USN-5945-1
UbuntuPro:16.04:LTSprotobuf2.6.1-1.3ubuntu0.1~esm1UBUNTU-CVE-2021-22570 USN-5490-1
Red Hatenterprise_linux:8::appstreamprotobuf, protobuf-lite, python3-protobuf and 5 more0:3.5.0-15.el8RHSA-2022:7464
Red Hatenterprise_linux:8::crbprotobuf-devel, protobuf-debuginfo, protobuf-lite-devel and 3 more0:3.5.0-15.el8RHSA-2022:7464
Red Hatenterprise_linux:9::appstreamprotobuf, protobuf-lite, python3-protobuf and 4 more0:3.14.0-13.el9RHSA-2022:7970
Red Hatenterprise_linux:9::crbprotobuf-devel, protobuf-compiler, protobuf-debuginfo and 4 more0:3.14.0-13.el9RHSA-2022:7970
Red Hatopenstack:16.1::el8protobuf, python3-protobuf0:3.6.1-6.el8ostRHSA-2022:8860
Red Hatopenstack:16.2::el8protobuf, python3-protobuf0:3.6.1-6.el8ostRHSA-2022:8847
Red Hatrhel_eus:8.6::appstreamprotobuf, protobuf-lite, python3-protobuf and 5 more0:3.5.0-15.el8_6RHSA-2024:3433
Red Hatrhel_eus:8.6::crbprotobuf-devel, protobuf-debuginfo, protobuf-lite-devel and 3 more0:3.5.0-15.el8_6RHSA-2024:3433
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP1-LTSS and 15 morepython-websocket-client1.3.2-150100.6.7.3SUSE-SU-2023:2783-1
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS and 14 morepython-zope.interface4.4.2-150000.3.4.1SUSE-SU-2023:2783-1
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS and 13 morepython-constantly15.1.0-150000.3.4.1SUSE-SU-2023:2783-1
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS and 13 morepython-hyperlink17.2.1-150000.3.4.1SUSE-SU-2023:2783-1
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS and 11 morepython-Automat0.6.0-150000.3.4.1SUSE-SU-2023:2783-1
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS and 11 morepython-incremental17.5.0-150000.3.4.1SUSE-SU-2023:2783-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 5 morepython-psutil5.9.1-150100.6.6.3SUSE-SU-2023:2783-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 5 morepython-requests2.25.1-150100.6.13.3SUSE-SU-2023:2783-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 7 moreprotobuf3.9.2-4.12.1SUSE-SU-2022:1040-3
SUSELinux Enterprise High Performance Computing 15 SP1-LTSSprotobuf3.9.2-150100.8.3.3SUSE-SU-2023:2783-2
SUSELinux Enterprise High Performance Computing 15 SP1-LTSSpython-cryptography3.3.2-150100.7.15.3SUSE-SU-2023:2783-2
SUSELinux Enterprise High Performance Computing 15 SP1-LTSSpython-psutil5.9.1-150100.6.6.3SUSE-SU-2023:2783-2
26 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.3protobuf3.5.0-5.5.1openSUSE-SU-2022:0823-1
openSUSELeap 15.3protobuf3.9.2-4.12.1openSUSE-SU-2022:1040-1
openSUSELeap 15.4azure-cli-core2.17.1-150100.6.18.1SUSE-SU-2023:2783-1
openSUSELeap 15.4python-constantly15.1.0-150000.3.4.1SUSE-SU-2023:2783-1
openSUSELeap 15.4python-humanfriendly10.0-150100.6.3.3SUSE-SU-2023:2783-1
openSUSELeap 15.4python-hyperlink17.2.1-150000.3.4.1SUSE-SU-2023:2783-1
openSUSELeap 15.4python-jsondiff1.3.0-150100.3.6.3SUSE-SU-2023:2783-1
openSUSELeap 15.4python-knack0.9.0-150100.3.7.3SUSE-SU-2023:2783-1
openSUSELeap 15.4python-websocket-client1.3.2-150100.6.7.3SUSE-SU-2023:2783-1
openSUSELeap 15.4python-zope.interface4.4.2-150000.3.4.1SUSE-SU-2023:2783-1
AlmaLinux8protobuf, protobuf-lite, protobuf-devel and 3 more3.5.0-15.el8ALSA-2022:7464
AlmaLinux9protobuf, protobuf-lite, protobuf-devel and 3 more3.14.0-13.el9ALSA-2022:7970
Rocky Linux8protobuf0:3.5.0-15.el8RLSA-2022:7464
Rocky Linux9protobuf0:3.14.0-13.el9RLSA-2022:7970
Azure Linux2mysql8.0.29-1AZL-9830

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8protobuf-0:3.5.0-15.el8Fixed 2022-11-08RHSA-2022:7464
Red Hat Enterprise Linux 8.6 Extended Update Supportprotobuf-0:3.5.0-15.el8_6Fixed 2024-05-28RHSA-2024:3433
Red Hat Enterprise Linux 9protobuf-0:3.14.0-13.el9Fixed 2022-11-15RHSA-2022:7970
Red Hat OpenStack Platform 16.1protobuf-0:3.6.1-6.el8ostFixed 2022-12-07RHSA-2022:8860
Red Hat OpenStack Platform 16.2protobuf-0:3.6.1-6.el8ostFixed 2022-12-07RHSA-2022:8847
Red Hat Enterprise Linux 7protobufOut of support scope
Red Hat OpenShift Container Platform 4openshift4/ose-kuryr-cni-rhel8Will not fix
Red Hat OpenShift Container Platform 4openshift4/ose-kuryr-controller-rhel8Will not fix
Red Hat Quay 3quay/quay-rhel8Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-22570.

References

Check your stackJSON