{"id":4456724,"name":"thread-amount","ecosystem":"cargo","description":"Get the amount of threads in the current process","homepage":null,"licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/jzeuzs/thread-amount","keywords_array":["current","thread","number","process","amount"],"namespace":null,"versions_count":8,"first_release_published_at":"2022-06-01T01:34:01.046Z","latest_release_published_at":"2025-12-08T14:42:27.713Z","latest_release_number":"0.3.0","last_synced_at":"2026-06-13T11:28:52.417Z","created_at":"2022-06-01T01:41:40.672Z","updated_at":"2026-06-13T13:54:38.564Z","registry_url":"https://crates.io/crates/thread-amount/","install_command":"cargo install thread-amount","documentation_url":"https://docs.rs/thread-amount/","metadata":{"categories":["os::windows-apis","os::unix-apis","os"]},"repo_metadata":{"id":38057790,"uuid":"498307592","full_name":"jzeuzs/thread-amount","owner":"jzeuzs","description":"Get the amount of threads in the current process","archived":false,"fork":false,"pushed_at":"2026-05-01T22:34:55.000Z","size":94,"stargazers_count":2,"open_issues_count":3,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-02T00:27:14.012Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jzeuzs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-05-31T11:31:29.000Z","updated_at":"2026-04-19T09:40:09.000Z","dependencies_parsed_at":"2022-07-16T23:30:36.280Z","dependency_job_id":null,"html_url":"https://github.com/jzeuzs/thread-amount","commit_stats":null,"previous_names":["jzeuzs/thread-amount","devtomio/thread-amount"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/jzeuzs/thread-amount","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzeuzs%2Fthread-amount","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzeuzs%2Fthread-amount/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzeuzs%2Fthread-amount/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzeuzs%2Fthread-amount/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jzeuzs","download_url":"https://codeload.github.com/jzeuzs/thread-amount/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzeuzs%2Fthread-amount/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32518892,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"},"owner_record":{"login":"jzeuzs","name":"Jez","uuid":"75403863","kind":"user","description":"rustacean","email":"","website":null,"location":null,"twitter":null,"company":null,"icon_url":"https://avatars.githubusercontent.com/u/75403863?u=aba05ea8f28c86271a8a5011e3eaf65d09457d15\u0026v=4","repositories_count":1,"last_synced_at":"2023-07-30T15:21:36.857Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/jzeuzs","funding_links":[],"total_stars":null,"followers":null,"following":null,"created_at":"2022-11-14T06:13:03.371Z","updated_at":"2023-07-30T15:21:36.904Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jzeuzs","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jzeuzs/repositories"},"tags":[{"name":"v0.3.0","sha":"f5e9b43966af8ca0b542e7bf051dddc383a00cc2","kind":"commit","published_at":"2025-12-08T14:41:49.000Z","download_url":"https://codeload.github.com/jzeuzs/thread-amount/tar.gz/v0.3.0","html_url":"https://github.com/jzeuzs/thread-amount/releases/tag/v0.3.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/jzeuzs/thread-amount@v0.3.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzeuzs%2Fthread-amount/tags/v0.3.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzeuzs%2Fthread-amount/tags/v0.3.0/manifests"},{"name":"v0.2.2","sha":"8ecacfe197c11d75e29e67cb58bd06eb90b72460","kind":"commit","published_at":"2025-11-21T17:06:25.000Z","download_url":"https://codeload.github.com/jzeuzs/thread-amount/tar.gz/v0.2.2","html_url":"https://github.com/jzeuzs/thread-amount/releases/tag/v0.2.2","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/jzeuzs/thread-amount@v0.2.2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzeuzs%2Fthread-amount/tags/v0.2.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzeuzs%2Fthread-amount/tags/v0.2.2/manifests"},{"name":"v0.2.1","sha":"2eebaebca3f8b469dcaa2c915d7fd59135c134b5","kind":"commit","published_at":"2025-11-16T14:00:10.000Z","download_url":"https://codeload.github.com/jzeuzs/thread-amount/tar.gz/v0.2.1","html_url":"https://github.com/jzeuzs/thread-amount/releases/tag/v0.2.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/jzeuzs/thread-amount@v0.2.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzeuzs%2Fthread-amount/tags/v0.2.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzeuzs%2Fthread-amount/tags/v0.2.1/manifests"},{"name":"v0.2.0","sha":"ec97f91e8671db45563ba19ee26c0010356326eb","kind":"commit","published_at":"2025-11-08T09:57:35.000Z","download_url":"https://codeload.github.com/jzeuzs/thread-amount/tar.gz/v0.2.0","html_url":"https://github.com/jzeuzs/thread-amount/releases/tag/v0.2.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/jzeuzs/thread-amount@v0.2.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzeuzs%2Fthread-amount/tags/v0.2.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzeuzs%2Fthread-amount/tags/v0.2.0/manifests"},{"name":"v0.1.3","sha":"d268e0a96bd7a56b1ed51571560b4920b190406f","kind":"commit","published_at":"2022-06-24T12:40:04.000Z","download_url":"https://codeload.github.com/jzeuzs/thread-amount/tar.gz/v0.1.3","html_url":"https://github.com/jzeuzs/thread-amount/releases/tag/v0.1.3","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/jzeuzs/thread-amount@v0.1.3","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzeuzs%2Fthread-amount/tags/v0.1.3","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzeuzs%2Fthread-amount/tags/v0.1.3/manifests"},{"name":"v0.1.2","sha":"ff9ffbef34b4fb25919313450c6c28483998da0d","kind":"commit","published_at":"2022-06-01T03:20:53.000Z","download_url":"https://codeload.github.com/jzeuzs/thread-amount/tar.gz/v0.1.2","html_url":"https://github.com/jzeuzs/thread-amount/releases/tag/v0.1.2","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/jzeuzs/thread-amount@v0.1.2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzeuzs%2Fthread-amount/tags/v0.1.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzeuzs%2Fthread-amount/tags/v0.1.2/manifests"},{"name":"v0.1.1","sha":"acce137366154602d3a7058587fb98c67a7a5b69","kind":"commit","published_at":"2022-06-01T01:42:28.000Z","download_url":"https://codeload.github.com/jzeuzs/thread-amount/tar.gz/v0.1.1","html_url":"https://github.com/jzeuzs/thread-amount/releases/tag/v0.1.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/jzeuzs/thread-amount@v0.1.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzeuzs%2Fthread-amount/tags/v0.1.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzeuzs%2Fthread-amount/tags/v0.1.1/manifests"},{"name":"v0.1.0","sha":"9f45e50365cd5bccf433f278cf32c052df20edd8","kind":"commit","published_at":"2022-06-01T01:32:23.000Z","download_url":"https://codeload.github.com/jzeuzs/thread-amount/tar.gz/v0.1.0","html_url":"https://github.com/jzeuzs/thread-amount/releases/tag/v0.1.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/jzeuzs/thread-amount@v0.1.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzeuzs%2Fthread-amount/tags/v0.1.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzeuzs%2Fthread-amount/tags/v0.1.0/manifests"}]},"repo_metadata_updated_at":"2026-06-13T13:54:38.535Z","dependent_packages_count":0,"downloads":7686,"downloads_period":"total","dependent_repos_count":0,"rankings":{"downloads":62.10423100537925,"dependent_repos_count":29.318292202377133,"dependent_packages_count":33.81230354737315,"stargazers_count":43.63058200379388,"forks_count":37.47605912594045,"average":41.26829357697277},"purl":"pkg:cargo/thread-amount","advisories":[{"uuid":"GSA_kwCzR0hTQS1qZjlwLTJmdjktMmpwMs4ABOwO","url":"https://github.com/advisories/GHSA-jf9p-2fv9-2jp2","title":"thread-amount Vulnerable to Resource Exhaustion (Memory and Handle Leaks) on Windows and macOS","description":"Affected versions of this crate contain resource leaks when querying thread counts on Windows and Apple platforms.\n\n### Windows\nThe `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.\n\n### macOS / iOS\nThe `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.\n\n### Impact\nLong-running applications (such as servers, daemons, or monitoring tools) that use this crate to periodically check thread counts will eventually crash due to resource exhaustion.\n\n### Resources\n\n- https://github.com/jzeuzs/thread-amount/pull/29","origin":"UNSPECIFIED","severity":"HIGH","published_at":"2025-11-21T18:19:40.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":8.7,"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","references":["https://github.com/jzeuzs/thread-amount/security/advisories/GHSA-jf9p-2fv9-2jp2","https://github.com/jzeuzs/thread-amount/pull/29","https://nvd.nist.gov/vuln/detail/CVE-2025-65947","https://github.com/jzeuzs/thread-amount/commit/28860d4a38286609cb884c13b5b7941edc2390e5","https://rustsec.org/advisories/RUSTSEC-2025-0125.html","https://github.com/advisories/GHSA-jf9p-2fv9-2jp2"],"source_kind":"github","identifiers":["GHSA-jf9p-2fv9-2jp2","CVE-2025-65947"],"repository_url":null,"blast_radius":0.0,"created_at":"2025-11-21T19:00:08.451Z","updated_at":"2026-05-04T17:02:07.727Z","epss_percentage":0.00057,"epss_percentile":0.17617,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1qZjlwLTJmdjktMmpwMs4ABOwO","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS1qZjlwLTJmdjktMmpwMs4ABOwO","packages":[{"ecosystem":"cargo","package_name":"thread-amount","versions":[{"first_patched_version":"0.2.2","vulnerable_version_range":"\u003c 0.2.2"}],"purl":"pkg:cargo/thread-amount"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1qZjlwLTJmdjktMmpwMs4ABOwO/related_packages","related_advisories":[]}],"docker_usage_url":"https://docker.ecosyste.ms/usage/cargo/thread-amount","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/cargo/thread-amount","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/cargo/thread-amount/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2026-05-03T01:13:21.037Z","issues_count":0,"pull_requests_count":14,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":546379.7777777778,"issues_closed_count":0,"pull_requests_closed_count":9,"pull_request_authors_count":3,"issue_authors_count":0,"avg_comments_per_issue":null,"avg_comments_per_pull_request":0.0,"merged_pull_requests_count":8,"bot_issues_count":0,"bot_pull_requests_count":12,"past_year_issues_count":0,"past_year_pull_requests_count":14,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":546379.7777777778,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":9,"past_year_pull_request_authors_count":3,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":0.0,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":12,"past_year_merged_pull_requests_count":8,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzeuzs%2Fthread-amount/issues","maintainers":[{"login":"jzeuzs","count":2,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/jzeuzs"}],"active_maintainers":[{"login":"jzeuzs","count":2,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/jzeuzs"}]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/thread-amount/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/thread-amount/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/thread-amount/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/thread-amount/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/thread-amount/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/thread-amount/codemeta","maintainers":[{"uuid":"150250","login":"jzeuzs","name":"jez","email":null,"url":"https://github.com/jzeuzs","packages_count":6,"html_url":"https://crates.io/users/jzeuzs","role":null,"created_at":"2022-11-08T04:33:31.542Z","updated_at":"2022-11-08T04:33:31.542Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/maintainers/jzeuzs/packages"}]}