LiveActive security incident?Get immediate response
CVE Record

CVE-2020-26243: Memory leak in nanopb

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.

HighCVSS 7.5Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

Nanopb can leak memory while decoding a specially formed Protocol Buffers message under narrow conditions. The main business risk is service instability or denial of service in products that parse untrusted protobuf data with vulnerable nanopb versions and dynamic allocation enabled.

Executive priority

Prioritize remediation for internet-facing or externally fed systems that parse protobuf with nanopb. Internal-only systems with trusted inputs are lower urgency, but embedded or vendored copies can be easy to miss and should be inventoried.

Technical view

Before nanopb 0.3.9.7 and 0.4.4, decoding can leak memory when a oneof field contains a static submessage with a dynamic field, and the decoded message repeats that submessage. CVSS 3.1 rates this 7.5, network-accessible, low-complexity, unauthenticated, availability-only impact.

Likely exposure

Exposure is likely limited to systems embedding nanopb versions below 0.3.9.7 or 0.4.0 through 0.4.3, with dynamic allocation enabled, vulnerable schema structure, and untrusted protobuf input. Inventory should include vendored library copies in firmware, agents, services, and third-party components.

Exploitation context

The source bundle does not show CISA KEV listing or active exploitation. Public sources describe a specifically formed message causing memory leakage during decoding. The expected impact is availability degradation or denial of service, not data theft or data modification.

Researcher notes

The vulnerable condition is schema- and configuration-dependent, so version matching alone may overstate exposure. Focus validation on dynamic allocation, oneof layout, repeated submessage decoding, and whether attacker-controlled messages can reach the decoder.

Mitigation direction

  • Upgrade nanopb to 0.3.9.7, 0.4.4, or later supported releases.
  • Set no_unions for affected oneof fields where upgrade is delayed.
  • Set the submessage field inside oneof to FT_POINTER where appropriate.
  • Use an arena allocator so decoded-message memory can be released afterward.
  • Review vendor guidance for downstream products embedding nanopb.

Validation and detection

  • Inventory direct, vendored, and transitive nanopb copies and record versions.
  • Identify protobuf schemas using oneof static submessages containing dynamic fields.
  • Confirm whether dynamic allocation is enabled in affected builds.
  • Check whether untrusted protobuf data reaches vulnerable decode paths.
  • Verify patched versions or documented workarounds in build artifacts.
Prepared
Confidence
high
Sources
6

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-119: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cwe · low confidence lookup

CWE-20: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2020-26243 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.5 (3.1)
Known Exploited
No
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
5Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.5CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H3.93.6Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.5High
CVSS 3.1 vector shape for CVE-2020-26243Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
nanopbnanopb< 0.3.9.7, >= 0.4.0, < 0.4.4Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.