Crash or memory corruption via invalid free
Published Feb 4, 2020 · Updated Aug 4, 2024
Invalid memory release in Nanopb before 0.2.9.4, 0.3.0 through 0.3.9.4, and 0.4.0 allows attackers to crash or corrupt a decoding process. The decode_pointer_field path increments the repeated-field count before allocation succeeds, so failed realloc leaves an uninitialized new slot that cleanup passes to free. Exploitation requires PB_ENABLE_MALLOC, a repeated string, bytes, or message field, and memory exhaustion during array growth; the result is a crash or further memory corruption.
Summary
What happened
Invalid memory release in Nanopb before 0.2.9.4, 0.3.0 through 0.3.9.4, and 0.4.0 allows attackers to crash or corrupt a decoding process. The decode_pointer_field path increments the repeated-field count before allocation succeeds, so failed realloc leaves an uninitialized new slot that cleanup passes to free. Exploitation requires PB_ENABLE_MALLOC, a repeated string, bytes, or message field, and memory exhaustion during array growth; the result is a crash or further memory corruption.
The record
- CVE
- CVE-2020-5235
- Published
- Feb 4, 2020
- Updated
- Aug 4, 2024
- Vendor
- Nanopb
- Product
- Nanopb
- Classifications
- CWE-125
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Feb 4, 2020CVE publishedPublication date reported by the CVE source.
- Aug 4, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 0.2.9.4
- Affected versionversion=>= 0.3.0, < 0.3.9.5
- Affected versionversion=>= 0.4.0, < 0.4.1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo