Memory leak in Nanopb - CVE-2024-53984

 

Memory leak in Nanopb - CVE-2024-53984

Published: December 1, 2024 / Updated: November 9, 2026


Vulnerability identifier: #VU162833
CSH Severity: Low
CVSS v4: 5.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-53984
CWE-ID: CWE-401
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a low-privileged remote attacker to cause memory leaks and potential denial of service in Nanopb.

The vulnerability exists due to missing memory cleanup when pb_decode_ex() fails on a corrupted length prefix with the PB_DECODE_DELIMITED flag. A low-privileged remote attacker can submit such messages to trigger unreleased allocations when PB_ENABLE_MALLOC is enabled, messages contain an FT_POINTER field, and a custom stream callback uses stream.bytes_left = SIZE_MAX.


Affected software

Nanopb

How to mitigate CVE-2024-53984

Install security update from vendor's website.

Nanopb - update to 0.4.9.1

External References

Related Security Bulletins