Missing Release of Resource after Effective Lifetime Affecting thread-amount package, versions <0.2.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-THREADAMOUNT-14100996
  • published23 Nov 2025
  • disclosed21 Nov 2025
  • creditUnknown

Introduced: 21 Nov 2025

NewCVE-2025-65947  (opens in a new tab)
CWE-772  (opens in a new tab)

How to fix?

Upgrade thread-amount to version 0.2.2 or higher.

Overview

thread-amount is a library for geting the amount of threads in the current process

Affected versions of this package are vulnerable to Missing Release of Resource after Effective Lifetime via the thread_amount function. An attacker can cause resource exhaustion by repeatedly invoking this function on Windows or macOS/iOS platforms, leading to unclosed handles or unreleased memory, which may result in process termination or system instability.

Note: Long-running applications that use this crate to check thread counts periodically will eventually crash due to resource exhaustion, even without the direct involvement of a thread actor.

CVSS Base Scores

version 4.0
version 3.1