CVE-2025-65947

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-65947
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-65947.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-65947
Aliases
Published
2025-11-21T22:15:30.181Z
Modified
2025-11-23T04:16:56.190602Z
Severity
  • 8.7 (High) CVSS_V4 - 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 CVSS Calculator
Summary
thread-amount is Vulnerable to Resource Exhaustion (Memory and Handle Leaks) on Windows and macOS
Details

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 threadamount 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 threadamount function calls taskthreads (via Mach kernel APIs) which allocates memory for the thread list. The function fails to deallocate this memory using vmdeallocate. 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.

Database specific
{
    "cwe_ids": [
        "CWE-400",
        "CWE-772"
    ]
}
References

Affected packages

Git / github.com/jzeuzs/thread-amount

Affected ranges

Type
GIT
Repo
https://github.com/jzeuzs/thread-amount
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v0.*

v0.1.0
v0.1.1
v0.1.2
v0.1.3
v0.2.0
v0.2.1