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

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Published: 2024-12-02T15:54:47.478Z
- Modified: 2026-06-17T08:09:36.963Z
- Weaknesses: CWE-401, CWE-755
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- nanopb nanopb: >=0.4.0, < 0.4.9.1

## References

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

## Sources

- CVE List: [CVE-2024-53984](https://www.cve.org/CVERecord?id=CVE-2024-53984), CVE Terms of Use, modified 2024-12-02
- NVD: [CVE-2024-53984](https://nvd.nist.gov/vuln/detail/CVE-2024-53984), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-53984 · Whole record: https://cve.day/CVE-2024-53984.json · Rebuilt by cve.day 2026-11-25T22:58:49.639Z
