GHSA-x67x-vg9m-65c3
Dashboard / Vulnerabilities / GHSA-x67x-vg9m-65c3
GHSA-x67x-vg9m-65c3
Summary: Integer overflow in base64
Details: Affected versions of this crate suffered from an integer overflow bug when calculating the size of a buffer to use when encoding base64 using the `encode_config_buf` and `encode_config` functions. If the input string was large, this would cause a buffer to be allocated that was too small. Since this function writes to the buffer using unsafe code, it would allow an attacker to write beyond the buffer, causing memory corruption and possibly the execution of arbitrary code. This flaw was corrected by using checked arithmetic to calculate the size of the buffer.
References: https://nvd.nist.gov/vuln/detail/CVE-2017-1000430, https://github.com/alicemaz/rust-base64/commit/24ead980daf11ba563e4fb2516187a56a71ad319, https://github.com/alicemaz/rust-base64, https://rustsec.org/advisories/RUSTSEC-2017-0004.html
Affected packages
Package
Name: base64
Purl: pkg:cargo/base64
Affected ranges
Type: SEMVER
Events:
