Out-of-bounds Read

Affecting nanopb package, versions <1.30905.0

Report new vulnerabilities
Do your applications use this vulnerable package? Test your applications

Overview

nanopb is a plain-C implementation of Google's Protocol Buffers data format.

Affected versions of this package are vulnerable to Out-of-bounds Read. It might call free() on a pointer value that comes from uninitialized memory, with the following conditions:

  1. It is compiled with PB_ENABLE_MALLOC
  2. the message to be decoded contains a repeated string, bytes or message field
  3. realloc() runs out of memory when expanding the array

Depending on platform this can result in a crash or further memory corruption, which may be exploitable in some cases.

Remediation

Upgrade nanopb to version 1.30905.0 or higher.

References

CVSS Score

6.5
medium severity
  • Attack Vector
    Network
  • Attack Complexity
    High
  • Privileges Required
    None
  • User Interaction
    None
  • Scope
    Changed
  • Confidentiality
    Low
  • Integrity
    Low
  • Availability
    Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L
Credit
Unknown
CVE
CVE-2020-5235
CWE
CWE-125
Snyk ID
SNYK-COCOAPODS-NANOPB-546355
Disclosed
03 Feb, 2020
Published
04 Feb, 2020