What’s Vulnerable › Vulnerabilities
CVE-2024-53984: Nanopb does not release memory on error return when using PB_DECODE_DELIMITED
- Severity: medium (CVSS 4.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-12-02 · updated 2026-06-17
- Weakness: CWE-401
Description
Nanopb is a small code-size Protocol Buffers implementation. When the compile time option PB_ENABLE_MALLOC is enabled, the message contains at least one field with FT_POINTER field type, custom stream callback is used with unknown stream length. and the pb_decode_ex() function is used with flag PB_DECODE_DELIMITED, then the pb_decode_ex() function does not automatically call pb_release(), like is done for other failure cases. This could lead to memory leak and potential denial-of-service. This vulnerability is fixed in 0.4.9.1.
Affected products
- nanopb: from 0.4.0, < 0.4.9.1
References
- https://github.com/nanopb/nanopb/commit/2b86c255aa52250438d5aba124d0e86db495b378
- https://github.com/nanopb/nanopb/security/advisories/GHSA-xwqq-qxmw-hj5r
Get alerted when CVE-2024-53984 or the next vulnerability affects your stack