Description
RIOT 2020.04 has a buffer overflow in the base64 decoder. The decoding function base64_decode() uses an output buffer estimation function to compute the required buffer capacity and validate against the provided buffer size. The base64_estimate_decode_size() function calculates the expected decoded size with an arithmetic round-off error and does not take into account possible padding bytes. Due to this underestimation, it may be possible to craft base64 input that causes a buffer overflow.
References (2)
Core 2
Core References
Mailing List, Patch, Third Party Advisory x_refsource_misc
https://drive.google.com/file/d/1jMCAi8uawV1-an5uCghIxT2TEdxCE1Lk/view?usp=sharing
Patch, Third Party Advisory x_refsource_misc
https://github.com/RIOT-OS/RIOT/pull/14400
Scores
CVSS v3
9.8
EPSS
0.0147
EPSS Percentile
70.3%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Details
CWE
CWE-119
CWE-131
Status
published
Products (1)
riot-os/riot
2020.04
Published
Jul 07, 2020
Tracked Since
Feb 18, 2026