Advisory

GHSA-pjrj-h4fg-6gm4

Also known as: CVE-2023-6180

Summary

tokio-boring vulnerable to resource exhaustion via memory leak

Details

Impact
The tokio-boring library in version 4.0.0 is affected by a memory leak issue that can lead to excessive resource consumption and potential DoS by resource exhaustion. The set_ex_data function used by the library did not deallocate memory used by pre-existing data in memory each time after completing a TLS connection causing the program to consume more resources with each new connection.

Patches
The issue is fixed in version 4.1.0 of tokio-boring.

References
CVE-2023-6180 at cve.org

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-12-05 23:42 UTC
Modified
2026-07-08 06:29 UTC

Affected packages and fixes

tokio-boring

crates.io · All systems

Affected

  • introduced 4.0.0, fixed 4.1.0 (semver)

Fixed versions

4.1.0

Fix

  • Fixed version 4.1.0
    cargo update -p tokio-boring --precise 4.1.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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences