Search covers the description text, product and vendor names and weakness types (also partial words).

CVE-2021-21401
nanopb project nanopb

Score7.1 High
CVSS 3.1
Exploit probability (EPSS)1.8%
within the next 30 days
CategoryOther
Published23 March 2021
Last modified: 17 June 2026

In short

This vulnerability can be exploited remotely over the network, with a regular user account, without any user interaction.

A successful attack has high impact: modifying data.

✨ AI commentary

After a short ad, a plain-language commentary on this vulnerability is shown. AI can make mistakes; base decisions on the official sources.

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

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

Weakness: CWE-763

Affected products

VendorProductVersions
nanopb projectnanopb<0.3.9.8
nanopb projectnanopb>=0.4.0 <0.4.5

Sources

Latest in the same category

  • CVE-2026-140330 High 7.4
    A flaw was found in oauth-proxy. An unauthenticated remote attacker can bypass authentication to access protected resources by sending a crafted HTTP request containing percent-encoded path traversal sequences. This…
    Other · 1 December 2026
  • CVE-2026-140038 Medium 5.1
    A flaw was found in the gprofng component of binutils. The utility creates temporary directories in shared locations using predictable names based on user and process identifiers without verifying whether the directory…
    Other · 1 December 2026
  • CVE-2026-140094 Critical 9.9
    A flaw was found in openshift-apiserver. Incomplete authorization checks in the TemplateInstance instantiation mechanism allow requests to specify arbitrary group memberships without proper validation. An authenticated…
    Other · 1 December 2026
  • CVE-2026-103657 High 8.2
    A flaw was found in cloud-provider-kubevirt. This vulnerability allows an authenticated tenant administrator to intercept network traffic or manipulate infrastructure routing. When provisioning load balancer services…
    Other · 1 December 2026
  • CVE-2026-130400 Medium 5.3
    The iOS application "MynaApp (formerly Mynaportal App)" provided by Digital Agency contains an improper restriction vulnerability due to permissive list of allowed inputs. By clicking a malicious link, a user may be…
    Other · 1 December 2026
  • CVE-2026-130399 Medium 5.3
    The Android application "MynaApp (formerly Mynaportal App)" provided by Digital Agency contains a vulnerability due to permissive list of allowed inputs. By clicking a malicious link, a user may be redirected to an…
    Other · 1 December 2026