Advisory

RUSTSEC-2021-0058

Also known as: CVE-2021-23841, GHSA-84rm-qf37-fgc2

Summary

Null pointer deref in X509_issuer_and_serial_hash()

Details

The OpenSSL public API function X509_issuer_and_serial_hash() attempts to
create a unique hash value based on the issuer and serial number data contained
within an X509 certificate. However it fails to correctly handle any errors
that may occur while parsing the issuer field (which might occur if the issuer
field is maliciously constructed). This may subsequently result in a NULL
pointer deref and a crash leading to a potential denial of service attack.

The function X509_issuer_and_serial_hash() is never directly called by OpenSSL
itself so applications are only vulnerable if they use this function directly
and they use it on certificates that may have been obtained from untrusted
sources.

Severity

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

Dates

Published
2021-05-01 12:00 UTC
Modified
2023-11-08 04:05 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