CVE-2024-53984
MEDIUMnanopb 0.4.0-0.4.9.1 - Use-After-Free in pb_decode_ex()
Title source: llmDescription
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.
References (2)
Core 2
Core References
Vendor Advisory x_refsource_confirm
https://github.com/nanopb/nanopb/security/advisories/GHSA-xwqq-qxmw-hj5r
Patch x_refsource_misc
https://github.com/nanopb/nanopb/commit/2b86c255aa52250438d5aba124d0e86db495b378
Scores
CVSS v3
4.3
EPSS
0.0039
EPSS Percentile
30.1%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-401
CWE-755
Status
published
Products (1)
nanopb/nanopb
>=0.4.0, < 0.4.9.1
Published
Dec 02, 2024
Tracked Since
Feb 18, 2026