CVEfocus › CVE database › CVE-2021-22570

CVE-2021-22570Nullptr Dereference in Protobuf

CVSS 6.5 MediumEPSS 2.5% (higher than 86% of CVEs)Published 2022-01-26Updated 2025-04-21Assigner: Google

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.

CWE-476

What to do

Fixed builds are available from AlmaLinux, Debian, PyPI, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

33Fixed
2Fix pending
13Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04protobufFixed3.12.4-1ubuntu7.22.04.1UBUNTU-CVE-2021-22570
Ubuntu 20.04protobufFixed3.6.1.3-2ubuntu5.2UBUNTU-CVE-2021-22570
Ubuntu 18.04protobufFixed3.0.0-9.1ubuntu1.1UBUNTU-CVE-2021-22570
Ubuntu 16.04protobufFix pending2.6.1-1.3ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2021-22570
Ubuntu 14.04protobufFix pending2.5.0-9ubuntu1+esm1 (Ubuntu Pro)UBUNTU-CVE-2021-22570
Debian 14protobufFixed3.21.9-3DEBIAN-CVE-2021-22570
Debian 13protobufFixed3.21.9-3DEBIAN-CVE-2021-22570
Debian 12protobufFixed3.21.9-3DEBIAN-CVE-2021-22570
Red Hat Enterprise Linux 9protobufFixed0:3.14.0-13.el9RHSA-2022:7970
Red Hat Enterprise Linux 9protobuf-compilerFixed0:3.14.0-13.el9RHSA-2022:7970
Red Hat Enterprise Linux 9protobuf-develFixed0:3.14.0-13.el9RHSA-2022:7970
Red Hat Enterprise Linux 9protobuf-liteFixed0:3.14.0-13.el9RHSA-2022:7970
Red Hat Enterprise Linux 9protobuf-lite-develFixed0:3.14.0-13.el9RHSA-2022:7970
Red Hat Enterprise Linux 9python3-protobufFixed0:3.14.0-13.el9RHSA-2022:7970
Red Hat Enterprise Linux 8protobufFixed0:3.5.0-15.el8RHSA-2022:7464
Red Hat Enterprise Linux 8protobuf-compilerFixed0:3.5.0-15.el8RHSA-2022:7464
Red Hat Enterprise Linux 8protobuf-develFixed0:3.5.0-15.el8RHSA-2022:7464
Red Hat Enterprise Linux 8protobuf-liteFixed0:3.5.0-15.el8RHSA-2022:7464
Red Hat Enterprise Linux 8protobuf-lite-develFixed0:3.5.0-15.el8RHSA-2022:7464
Red Hat Enterprise Linux 8python3-protobufFixed0:3.5.0-15.el8RHSA-2022:7464
Red Hat Enterprise Linux 7protobufWill not fix
Out of support scope
Red Hat Enterprise Linux 7protobuf-compilerWill not fix
Out of support scope
Red Hat Enterprise Linux 7protobuf-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7protobuf-emacsWill not fix
Out of support scope
Red Hat Enterprise Linux 7protobuf-emacs-elWill not fix
Out of support scope
Red Hat Enterprise Linux 7protobuf-javaWill not fix
Out of support scope
Red Hat Enterprise Linux 7protobuf-javadocWill not fix
Out of support scope
Red Hat Enterprise Linux 7protobuf-liteWill not fix
Out of support scope
Red Hat Enterprise Linux 7protobuf-lite-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7protobuf-lite-staticWill not fix
Out of support scope
Red Hat Enterprise Linux 7protobuf-pythonWill not fix
Out of support scope
Red Hat Enterprise Linux 7protobuf-staticWill not fix
Out of support scope
Red Hat Enterprise Linux 7protobuf-vimWill not fix
Out of support scope
AlmaLinux 9protobufFixed3.14.0-13.el9ALSA-2022:7970
AlmaLinux 9protobuf-compilerFixed3.14.0-13.el9ALSA-2022:7970
AlmaLinux 9protobuf-develFixed3.14.0-13.el9ALSA-2022:7970
AlmaLinux 9protobuf-liteFixed3.14.0-13.el9ALSA-2022:7970
AlmaLinux 9protobuf-lite-develFixed3.14.0-13.el9ALSA-2022:7970
AlmaLinux 9python3-protobufFixed3.14.0-13.el9ALSA-2022:7970
AlmaLinux 8protobufFixed3.5.0-15.el8ALSA-2022:7464
AlmaLinux 8protobuf-compilerFixed3.5.0-15.el8ALSA-2022:7464
AlmaLinux 8protobuf-develFixed3.5.0-15.el8ALSA-2022:7464
AlmaLinux 8protobuf-liteFixed3.5.0-15.el8ALSA-2022:7464
AlmaLinux 8protobuf-lite-develFixed3.5.0-15.el8ALSA-2022:7464
AlmaLinux 8python3-protobufFixed3.5.0-15.el8ALSA-2022:7464
Rocky Linux 9protobufFixed0:3.14.0-13.el9RLSA-2022:7970
Rocky Linux 8protobufFixed0:3.5.0-15.el8RLSA-2022:7464
PyPI libraryprotobufFixed3.15.0PYSEC-2022-48

What the vendor says

As published in the CVE record by Google, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.