National Vulnerability Database

National Vulnerability Database

National Vulnerability
Database

CVE-2020-5235 Detail

Current Description

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.

Source:  MITRE
View Analysis Description

Severity



CVSS 3.x Severity and Metrics:

NIST CVSS score
NIST: NVD
Base Score: 9.8 CRITICAL
Vector:  CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Nist CVSS score does not match with CNA score
CNA:  GitHub, Inc.
Base Score: 6.5 MEDIUM
Vector:  CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to nvd@nist.gov.

Hyperlink Resource
https://github.com/nanopb/nanopb/commit/45582f1f97f49e2abfdba1463d1e1027682d9856 Patch Third Party Advisory
https://github.com/nanopb/nanopb/commit/7b396821ddd06df8e39143f16e1dc0a4645b89a3 Patch Third Party Advisory
https://github.com/nanopb/nanopb/commit/aa9d0d1ca78d6adec3adfeecf3a706c7f9df81f2 Patch Third Party Advisory
https://github.com/nanopb/nanopb/security/advisories/GHSA-gcx3-7m76-287p Patch Third Party Advisory

Weakness Enumeration

CWE-ID CWE Name Source
CWE-125 Out-of-bounds Read NIST   GitHub, Inc.  

Known Affected Software Configurations Switch to CPE 2.2

Configuration 1 ( hide )
 cpe:2.3:a:nanopb_project:nanopb:*:*:*:*:*:*:*:*
     Show Matching CPE(s)
Up to (excluding)
0.2.9.4
 cpe:2.3:a:nanopb_project:nanopb:*:*:*:*:*:*:*:*
     Show Matching CPE(s)
From (including)
0.3.0
Up to (excluding)
0.3.9.5
 cpe:2.3:a:nanopb_project:nanopb:*:*:*:*:*:*:*:*
     Show Matching CPE(s)
From (including)
0.4.0
Up to (excluding)
0.4.1


Change History

2 change records found - show changes

Quick Info

CVE Dictionary Entry:
CVE-2020-5235
NVD Published Date:
02/03/2020
NVD Last Modified:
02/06/2020