> CVE-2025-65947 [HIGH]

« BACK_TO_HOME
PUBLISHED
2025-11-21 23:15
MODIFIED
2025-11-21 23:15
CVSS_SCORE V3
8.7
EPSS (Prob. Exploit)
0.37%
Top 68.7%
DATA SOURCES:
NVD 🔗 2025-11-22 CVE PROJECT 🔗 2026-01-19 CWE MITRE 🔗 2026-11-01 FIRST EPSS 🔗 2026-11-08 GITHUB 🔗 2026-11-04 OSV 🔗 2026-10-25

> DESCRIPTION

thread-amount is a tool that gets the amount of threads in the current process. Prior to version 0.2.2, there are resource leaks when querying thread counts on Windows and Apple platforms. In Windows platforms, the thread_amount function calls CreateToolhelp32Snapshot but fails to close the returned HANDLE using CloseHandle. Repeated calls to this function will cause the handle count of the process to grow indefinitely, eventually leading to system instability or process termination when the handle limit is reached. In Apple platforms, the thread_amount function calls task_threads (via Mach kernel APIs) which allocates memory for the thread list. The function fails to deallocate this memory using vm_deallocate. Repeated calls will result in a steady memory leak, eventually causing the process to be killed by the OOM (Out of Memory) killer. This issue has been patched in version 0.2.2.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
None (N)
Aucune divulgation d'informations
I (Impact Intégrité)
Integrity Impact
None (N)
Aucune modification de données possible
A (Impact Disponibilité)
Availability Impact
High (H)
Interruption totale du service possible

> RÉSUMÉ DES IMPACTS

Confidentialité
None
Aucune divulgation d'informations
Intégrité
None
Aucune modification de données possible
Disponibilité
High
Interruption totale du service possible

> WEAKNESSES

CWE-400 CWE-772

> CWE DETAILED DESCRIPTIONS

CWE-400: Uncontrolled Resource Consumption - The product does not properly control the allocation and maintenance of a limited resource. | CWE-772: Missing Release of Resource after Effective Lifetime - The product does not release a resource after its effective lifetime has ended, i.e., after the resource is no longer needed.

> GITHUB SECURITY ADVISORY

GHSA-jf9p-2fv9-2jp2 HIGH

thread-amount Vulnerable to Resource Exhaustion (Memory and Handle Leaks) on Windows and macOS

AFFECTED PACKAGES:
RUST / thread-amount
< 0.2.2
Fixed in: 0.2.2

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

thread-amount is Vulnerable to Resource Exhaustion (Memory and Handle Leaks) on Windows and macOS

AFFECTED PACKAGES:
Unknown / Unknown
2 versions affected
ALIASES:
GHSA-jf9p-2fv9-2jp2, RUSTSEC-2025-0125

> HISTORIQUE DES MODIFICATIONS

Première apparition
21/11/2025 23:15
Source: NVD
📊 ENRICHISSEMENT 19/01/2026 17:37
CVEPROJECT
Champ modifié: CVE Project
Ancienne valeur:
Non
Nouvelle valeur:
Oui
📊 ENRICHISSEMENT 01/12/2025 06:01
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-400: Uncontrolled Resource Consumption - The product does not properly control the allocation and maintenance of a limited resource. | CWE-772: Missing Release of Resource after Effective Lifetime...
Total des modifications: 2 Dernière mise à jour: 9 months ago

> REFERENCES

https://github.com/jzeuzs/thread-amount/commit/28860d4a38286609cb884c13b5b7941ed...
https://github.com/jzeuzs/thread-amount/pull/29
https://github.com/jzeuzs/thread-amount/security/advisories/GHSA-jf9p-2fv9-2jp2
« BACK_TO_HOME