Advisory

RUSTSEC-2022-0025

Also known as: CVE-2022-1473, GHSA-g323-fr93-4j3c

Summary

Resource leakage when decoding certificates and keys

Details

The OPENSSL_LH_flush() function, which empties a hash table, contains
a bug that breaks reuse of the memory occupied by the removed hash
table entries.

This function is used when decoding certificates or keys. If a long lived
process periodically decodes certificates or keys its memory usage will
expand without bounds and the process might be terminated by the operating
system causing a denial of service. Also traversing the empty hash table
entries will take increasingly more time.

Typically such long lived processes might be TLS clients or TLS servers
configured to accept client certificate authentication.

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
2022-05-03 12:00 UTC
Modified
2023-11-08 04:07 UTC

Affected packages and fixes

openssl-src

crates.io · All systems

Affected

  • introduced 300.0.0, fixed 300.0.6 (semver)

Fixed versions

300.0.6

Fix

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

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