Skip to main content
VulnerabilityPublished Updated

CVE-2025-65947: jzeuzs thread-amount · Uncontrolled Resource Consumption

Affects jzeuzs thread-amountSource CVE Database V5

0

Not known to be exploited · CVSS 8.7 High : upgrade to 0.2.2 soon.

Data as of 26 Oct 2026, 14:05 UTC

CVSS 4.0 base score
8.7High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 30% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.2.2
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 21 Nov 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade jzeuzs/thread-amount to 0.2.2.

Affected software

ProductAffectedFixed in
GitHubjzeuzs/thread-amountpkg:github/jzeuzs/thread-amountOther threatsAffected
  • <0.2.2
Fixed in
  • 0.2.2

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

The primary mitigation is to upgrade the thread-amount tool to version 0.2.2 or later, where the resource leaks have been fixed. Organizations should audit their environments to identify all instances of thread-amount and verify the version in use. For environments where immediate upgrade is not feasible, implement monitoring of handle counts on Windows systems and memory usage on Apple systems for processes invoking thread-amount to detect abnormal resource consumption early. Limit the frequency of calls to thread-amount in automated scripts or monitoring tools to reduce the risk of rapid resource exhaustion. Employ application whitelisting and endpoint protection to prevent unauthorized or unintended execution of vulnerable versions. Additionally, consider isolating or sandboxing processes that use thread-amount to contain potential impact. Regularly review and update system and application inventories to ensure vulnerable versions are not overlooked. Finally, maintain awareness of vendor advisories and apply patches promptly to minimize exposure.

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.

References

Community reviews

Loading reviews…