base64
Affected
- introduced
0.0.0-0, fixed0.5.2(semver)
Fixed versions
0.5.2
Fix
- Fixed version
0.5.2cargo update -p base64 --precise 0.5.2
Advisory
Also known as: CVE-2017-1000430, GHSA-x67x-vg9m-65c3
Integer overflow leads to heap-based buffer overflow in encode_config_buf
Affected versions of this crate suffered from an integer overflow bug when
calculating the size of a buffer to use when encoding base64 using theencode_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.
Critical Basis: CVSS v3 score 9.8, vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
0.0.0-0, fixed 0.5.2 (semver)0.5.2
0.5.2cargo update -p base64 --precise 0.5.2Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: RustSec Advisory Database · CC0-1.0