Advisory

RUSTSEC-2021-0057

Also known as: BIT-node-2021-23840, BIT-node-min-2021-23840, CVE-2021-23840, GHSA-qgm6-9472-pwq7

Summary

Integer overflow in CipherUpdate

Details

Calls to EVP_CipherUpdate, EVP_EncryptUpdate and EVP_DecryptUpdate may overflow
the output length argument in some cases where the input length is close to the
maximum permissable length for an integer on the platform. In such cases the
return value from the function call will be 1 (indicating success), but the
output length value will be negative. This could cause applications to behave
incorrectly or crash.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2021-05-01 12:00 UTC
Modified
2024-12-16 15:27 UTC

Affected packages and fixes

openssl-src

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 111.14.0 (semver)

Fixed versions

111.14.0

Fix

  • Fixed version 111.14.0
    cargo update -p openssl-src --precise 111.14.0

Fix 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

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences