CVE-2021-21401 Vulnerability Analysis & Exploit Details

CVE-2021-21401
Vulnerability Scoring

7.1
/10
Very High Risk

Highly exploitable, CVE-2021-21401 poses a critical security risk that could lead to severe breaches.

Attack Complexity Details

  • Attack Complexity: Low
    Exploits can be performed without significant complexity or special conditions.
  • Attack Vector: Network
    Vulnerability is exploitable over a network without physical access.
  • Privileges Required: Low
    Some privileges are necessary to exploit the vulnerability.
  • Scope: Unchanged
    Exploit remains within the originally vulnerable component.
  • User Interaction: None
    No user interaction is necessary for exploitation.

CVE-2021-21401 Details

Status: Modified

Last updated: 🕠 21 Nov 2024, 05:48 UTC
Originally published on: 🕕 23 Mar 2021, 18:15 UTC

Time between publication and last update: 1338 days

CVSS Release: version 3

CVSS3 Source

security-advisories@github.com

CVSS3 Type

Secondary

CVSS3 Vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L

CVE-2021-21401 Vulnerability Summary

CVE-2021-21401: 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.

Assessing the Risk of CVE-2021-21401

Access Complexity Graph

The exploitability of CVE-2021-21401 depends on two key factors: attack complexity (the level of effort required to execute an exploit) and privileges required (the access level an attacker needs).

Exploitability Analysis for CVE-2021-21401

CVE-2021-21401 presents an accessible attack vector with minimal effort required. Restricting access controls and implementing security updates are critical to reducing exploitation risks.

Understanding AC and PR

A lower complexity and fewer privilege requirements make exploitation easier. Security teams should evaluate these aspects to determine the urgency of mitigation strategies, such as patch management and access control policies.

Attack Complexity (AC) measures the difficulty in executing an exploit. A high AC means that specific conditions must be met, making an attack more challenging, while a low AC means the vulnerability can be exploited with minimal effort.

Privileges Required (PR) determine the level of system access necessary for an attack. Vulnerabilities requiring no privileges are more accessible to attackers, whereas high privilege requirements limit exploitation to authorized users with elevated access.

CVSS Score Breakdown Chart

Above is the CVSS Sub-score Breakdown for CVE-2021-21401, illustrating how Base, Impact, and Exploitability factors combine to form the overall severity rating. A higher sub-score typically indicates a more severe or easier-to-exploit vulnerability.

CIA Impact Analysis

Below is the Impact Analysis for CVE-2021-21401, showing how Confidentiality, Integrity, and Availability might be affected if the vulnerability is exploited. Higher values usually signal greater potential damage.

  • Confidentiality: None
    CVE-2021-21401 has no significant impact on data confidentiality.
  • Integrity: High
    CVE-2021-21401 could allow unauthorized modifications to data, potentially affecting system reliability and trust.
  • Availability: Low
    CVE-2021-21401 may slightly degrade system performance without fully affecting service availability.

Exploit Prediction Scoring System (EPSS)

The EPSS score estimates the probability that this vulnerability will be exploited in the near future.

EPSS Score: 0.138% (probability of exploit)

EPSS Percentile: 50.76% (lower percentile = lower relative risk)
This vulnerability is less risky than approximately 49.24% of others.

CVE-2021-21401 References

External References

CWE Common Weakness Enumeration

CWE-763

Vulnerable Configurations

  • cpe:2.3:a:nanopb_project:nanopb:-:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:-:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.1.0:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.1.0:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.1.1:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.1.1:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.1.2:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.1.2:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.1.3:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.1.3:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.1.4:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.1.4:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.1.5:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.1.5:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.1.6:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.1.6:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.1.7:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.1.7:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.1.8:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.1.8:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.1.9:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.1.9:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.1.9.1:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.1.9.1:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.2.0:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.2.0:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.2.1:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.2.1:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.2.2:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.2.2:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.2.3:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.2.3:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.2.4:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.2.4:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.2.5:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.2.5:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.2.6:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.2.6:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.2.7:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.2.7:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.2.8:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.2.8:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.2.9:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.2.9:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.2.9.1:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.2.9.1:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.2.9.2:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.2.9.2:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.2.9.3:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.2.9.3:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.2.9.4:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.2.9.4:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.3.0:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.3.0:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.3.1:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.3.1:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.3.2:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.3.2:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.3.3:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.3.3:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.3.4:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.3.4:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.3.5:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.3.5:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.3.6:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.3.6:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.3.7:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.3.7:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.3.8:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.3.8:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.3.9:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.3.9:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.3.9.1:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.3.9.1:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.3.9.2:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.3.9.2:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.3.9.3:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.3.9.3:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.3.9.4:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.3.9.4:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.3.9.5:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.3.9.5:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.3.9.6:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.3.9.6:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.3.9.7:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.3.9.7:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.4.0:-:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.4.0:-:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.4.0:dev:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.4.0:dev:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.4.1:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.4.1:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.4.2:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.4.2:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.4.3:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.4.3:*:*:*:*:*:*:*
  • cpe:2.3:a:nanopb_project:nanopb:0.4.4:*:*:*:*:*:*:*
    cpe:2.3:a:nanopb_project:nanopb:0.4.4:*:*:*:*:*:*:*

Protect Your Infrastructure against CVE-2021-21401: Combat Critical CVE Threats

Stay updated with real-time CVE vulnerabilities and take action to secure your systems. Enhance your cybersecurity posture with the latest threat intelligence and mitigation techniques. Develop the skills necessary to defend against CVEs and secure critical infrastructures. Join the top cybersecurity professionals safeguarding today's infrastructures.

Other 5 Recently Published CVEs Vulnerabilities

  • CVE-2025-31203 – An integer overflow was addressed with improved input validation. This issue is fixed in macOS Sequoia 15.4, tvOS 18.4, iPadOS 17.7.6, macOS Sonoma...
  • CVE-2025-31202 – A null pointer dereference was addressed with improved input validation. This issue is fixed in iOS 18.4 and iPadOS 18.4, macOS Sequoia 15.4, tvOS ...
  • CVE-2025-31197 – The issue was addressed with improved checks. This issue is fixed in macOS Sequoia 15.4, tvOS 18.4, macOS Ventura 13.7.5, iPadOS 17.7.6, macOS Sono...
  • CVE-2025-30445 – A type confusion issue was addressed with improved checks. This issue is fixed in macOS Sequoia 15.4, tvOS 18.4, macOS Ventura 13.7.5, iPadOS 17.7....
  • CVE-2025-24271 – An access issue was addressed with improved access restrictions. This issue is fixed in macOS Sequoia 15.4, tvOS 18.4, macOS Ventura 13.7.5, iPadOS...