Security mailing lists by PureSourceCode

CVE-2020-5235

CRITICAL 9.8CVSS 3.1

There is a potentially exploitable out of memory condition In Nanopb before 0.4.1, 0.3.9.5, and 0.2.9.4. When nanopb is compiled with PB_ENABLE_MALLOC, the message to be decoded contains a repeated string, bytes or message field and realloc() runs out of memory when expanding the array nanopb can end up calling free() on a pointer value that comes from uninitialized memory. Depending on platform this can result in a crash or further memory corruption, which may be exploitable in some cases. This problem is fixed in nanopb-0.4.1, nanopb-0.3.9.5, nanopb-0.2.9.4.

Published
4 Feb 2020
Last modified
17 Jun 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-125
Sources
NVDJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L
NVD nvd@nist.gov (Primary) CVSS 2.0 HIGH 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD nanopb_project nanopb
cpe:2.3:a:nanopb_project:nanopb:*:*:*:*:*:*:*:*
< 0.2.9.4 0.2.9.4
NVD nanopb_project nanopb
cpe:2.3:a:nanopb_project:nanopb:*:*:*:*:*:*:*:*
>= 0.3.0, < 0.3.9.5 0.3.9.5
NVD nanopb_project nanopb
cpe:2.3:a:nanopb_project:nanopb:*:*:*:*:*:*:*:*
>= 0.4.0, < 0.4.1 0.4.1

References

History

  • 25 Nov 2026 20:31 UTC · NVD: first stored (published 4 Feb 2020)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.