# CVE-2017-1000430: Integer overflow in base64

- Severity: Critical 9.8 (CVSS:3.0, scored by NVD) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.53%, higher than 75% of CVEs (2026-12-01)
- Published: 2017-05-03T12:00:00.000Z
- Modified: 2026-06-17T00:59:09.897Z
- Also known as: GHSA-x67x-vg9m-65c3, RUSTSEC-2017-0004
- Weaknesses: CWE-119
- Assigned by: mitre

## Description

rust-base64 version <= 0.5.1 is vulnerable to a buffer overflow when calculating the size of a buffer to use when encoding base64 using the 'encode_config_buf' and 'encode_config' functions

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- base64 (crates.io): before 0.5.2; from 0.0.0-0 before 0.5.2
- rust-base64_project rust-base64: up to 0.5.1

## Every score

- GitHub: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- RustSec Advisory Database: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/RustSec/advisory-db/blob/master/crates/base64/RUSTSEC-2017-0004.toml> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2017-1000430> (advisory)
- <https://github.com/alicemaz/rust-base64/commit/24ead980daf11ba563e4fb2516187a56a71ad319> (web)
- <https://github.com/alicemaz/rust-base64> (package)
- <https://rustsec.org/advisories/RUSTSEC-2017-0004.html> (advisory, web)
- <https://crates.io/crates/base64> (package)

## Sources

- CVE List: [CVE-2017-1000430](https://www.cve.org/CVERecord?id=CVE-2017-1000430), CVE Terms of Use, modified 2024-09-17
- GitHub Advisory Database: [GHSA-x67x-vg9m-65c3](https://github.com/advisories/GHSA-x67x-vg9m-65c3), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2017-0004](https://rustsec.org/advisories/RUSTSEC-2017-0004.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2017-1000430](https://nvd.nist.gov/vuln/detail/CVE-2017-1000430), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2017-1000430 · Whole record: https://cve.day/CVE-2017-1000430.json · Rebuilt by cve.day 2026-11-25T22:57:34.129Z
