CVE-2024-53984 MEDIUM

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

Vendor Nanopb
Product nanopb
Weakness CWE-401
Published December 2, 2024
Last update December 2, 2024

CVSS base score

4.3/10
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction None
Confidentiality None
Integrity None

CVSS vector

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

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

December 2, 2024 CVE published
December 2, 2024 Record updated