Amenazas en vivo

Todas las CVE / Nanopb Project

CVE-2020-26243Nanopb Project Nanopb

Alta 7.5 Sin autenticación

Prioridad
60
CVSS 3.1
7.5
EPSS
2.7%
probabilidad de explotación en 30 días · percentil 86
Requiere autenticación
No
Publicada
25 nov 2020
Actualizada
17 jun 2026
Categoría
Aplicación · Multiplataforma
Debilidad (CWE)
CWE-20, CWE-119
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Qué pasa

Nanopb is a small code-size Protocol Buffers implementation. In Nanopb before versions 0.4.4 and 0.3.9.7, decoding specifically formed message can leak memory if dynamic allocation is enabled and an oneof field contains a static submessage that contains a dynamic field, and the message being decoded contains the submessage multiple times. This is rare in normal messages, but it is a concern when untrusted data is parsed. This is fixed in versions 0.3.9.7 and 0.4.4. The following workarounds are available: 1) Set the option `no_unions` for the oneof field. This will generate fields as separate instead of C union, and avoids triggering the problematic code. 2) Set the type of the submessage field inside oneof to `FT_POINTER`. This way the whole submessage will be dynamically allocated and the problematic code is not executed. 3) Use an arena allocator for nanopb, to make sure all memory can be released afterwards.

Texto original de NVD, en inglés. La traducción y el resumen en español llegan pronto.

Qué hacer

  1. Aplica la actualización de seguridad del fabricante para Nanopb.
  2. Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.

Paquetes afectados

EcosistemaPaqueteVersiones afectadasCorregida enCómo actualizar
PyPI nanopb ≥ 0.3.2 < 0.3.9.7 0.3.9.7 pip install "nanopb>=0.3.9.7"
PyPI nanopb ≥ 0.4.0 < 0.4.4 0.4.4 pip install "nanopb>=0.4.4"
PyPI nanopb ≥ 0.3.2 < 0.3.9.7 0.3.9.7 pip install "nanopb>=0.3.9.7"
PyPI nanopb ≥ 0.4.0 < 0.4.4 0.4.4 pip install "nanopb>=0.4.4"

Según OSV / GitHub Advisories (GHSA-85rr-4rh9-hhwh, PYSEC-2026-684). Verifica la versión en tu lockfile antes de actualizar.

Productos afectados (CPE)

FabricanteProductoVersiones
nanopb_projectnanopb< 0.3.9.7
nanopb_projectnanopb≥ 0.4.0 < 0.4.4

Fuentes oficiales

Referencias

Enlaces publicados por las fuentes. Ábrelos con criterio.