CVE-2024-53984: Nanopb does not release memory on error return when using PB_DECODE_DELIMITED

4.3 CVSS

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.

Classification

CVE ID: CVE-2024-53984

CVSS Base Severity: MEDIUM

CVSS Base Score: 4.3

Affected Products

Vendor: nanopb

Product: nanopb

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.04% (probability of being exploited)

EPSS Percentile: 11.44% (scored less or equal to compared to others)

EPSS Date: 2025-02-03 (when was this score calculated)

References

https://github.com/nanopb/nanopb/security/advisories/GHSA-xwqq-qxmw-hj5r
https://github.com/nanopb/nanopb/commit/2b86c255aa52250438d5aba124d0e86db495b378

Timeline