Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2021-21401

7.1 · HIGH
Published Mar 23, 2021 nanopb_project CWE-763 EPSS 1.81% (77th pctl)

Overview

CVE-2021-21401 is a high-severity vulnerability affecting nanopb_project nanopb. It was published on March 23, 2021 and has a CVSS 3.1 base score of 7.1 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.1, rated HIGH. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

Technical Description

Nanopb is a small code-size Protocol Buffers implementation in ansi C. In Nanopb before versions 0.3.9.8 and 0.4.5, decoding a specifically formed message can cause invalid `free()` or `realloc()` calls if the message type contains an `oneof` field, and the `oneof` directly contains both a pointer field and a non-pointer field. If the message data first contains the non-pointer field and then the pointer field, the data of the non-pointer field is incorrectly treated as if it was a pointer value. Such message data rarely occurs in normal messages, but it is a concern when untrusted data is parsed. This has been fixed in versions 0.3.9.8 and 0.4.5. See referenced GitHub Security Advisory for more information including workarounds.

Remediation

Check the references section for vendor advisories and patches from nanopb_project. Update nanopb to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
nanopb_project nanopb >= 0, < 0.3.9.8 Affected

Frequently Asked Questions

What is CVE-2021-21401?

CVE-2021-21401 is a high-severity vulnerability affecting nanopb_project nanopb. It was published on March 23, 2021 and has a CVSS 3.1 base score of 7.1 (HIGH).

How severe is CVE-2021-21401?

This vulnerability has a CVSS 3.1 base score of 7.1, rated HIGH. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2021-21401?

Check the references section for vendor advisories and patches from nanopb_project. Update nanopb to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2021-21401?

CyberStrike's AI-powered security agents can automatically detect CVE-2021-21401 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.