{"id":24782171,"url":"https://github.com/kw-soft/cvesearch","last_synced_at":"2025-07-28T00:10:06.394Z","repository":{"id":274675827,"uuid":"923696021","full_name":"kw-soft/cveSearch","owner":"kw-soft","description":"This Python tool searches for Common Vulnerabilities and Exposures (CVEs) affecting a specified program and version within a local CVE database","archived":false,"fork":false,"pushed_at":"2025-01-28T17:46:14.000Z","size":38023,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-31T05:19:34.142Z","etag":null,"topics":["cve","cve-database","cve-search","exposures","python","vulnerabilities"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kw-soft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"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}},"created_at":"2025-01-28T17:42:05.000Z","updated_at":"2025-03-25T09:31:03.000Z","dependencies_parsed_at":"2025-01-28T18:46:33.368Z","dependency_job_id":null,"html_url":"https://github.com/kw-soft/cveSearch","commit_stats":null,"previous_names":["kw-soft/cvesearch"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kw-soft/cveSearch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kw-soft%2FcveSearch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kw-soft%2FcveSearch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kw-soft%2FcveSearch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kw-soft%2FcveSearch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kw-soft","download_url":"https://codeload.github.com/kw-soft/cveSearch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kw-soft%2FcveSearch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267442480,"owners_count":24087806,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"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"}},"keywords":["cve","cve-database","cve-search","exposures","python","vulnerabilities"],"created_at":"2025-01-29T11:16:20.407Z","updated_at":"2025-07-28T00:10:01.384Z","avatar_url":"https://github.com/kw-soft.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CVE Search\n\nThis Python tool searches for Common Vulnerabilities and Exposures (CVEs) affecting a specified program and version within a local CVE database.\n\n## Features\n\n- **Fast JSON Processing**: Utilizes `orjson` for efficient JSON parsing.\n- **Parallel Processing**: Employs multiprocessing to scan files concurrently, significantly reducing search time.\n- **Semantic Versioning**: Supports complex version range comparisons to accurately determine affected versions.\n- **Interactive Input**: Prompts the user for necessary inputs, making the tool user-friendly.\n- **CVE Source Integration**: Currently integrated with CVEs from 2024 and 2025 sourced from the CVE Project.\n\n## Prerequisites\n\n- **Python 3.9** or later\n\n## Installation\n\n1. **Clone the Repository**:\n    ```bash\n    git clone https://github.com/kw-soft/cveSearch.git\n    cd cveSearch\n    ```\n\n2. **Create a Virtual Environment** (optional but recommended):\n    ```bash\n    python -m venv venv\n    source venv/bin/activate  # On Windows: venv\\Scripts\\activate\n    ```\n\n3. **Install Dependencies**:\n    ```bash\n    pip install -r requirements.txt\n    ```\n\n## Usage\n\n1. **Prepare Your CVE Database**:\n    - Ensure you have a directory containing all your CVE JSON files. For example: `./`.\n    - Currently, only CVEs from **2024** and **2025** are integrated. These should be placed directly in the base path (`./`).\n\n2. **Run the Script**:\n    ```bash\n    python main.py\n    ```\n\n3. **Provide the Required Inputs**:\n    \n    - **Program Name**: Enter the exact name of the program you want to search for (e.g., `git`).\n    - **Program Version**: Enter the specific version of the program you want to check (e.g., `2.31.1`).\n\n4. **View the Results**:\n    - The script will display a progress indicator.\n    - Upon completion, it will list all found CVEs along with their CVSS scores.\n\n### Example\n\n```bash\n\nProgram name: git\nProgram version: 2.31.1\n```\n### Output\n\n```bash\n\nFiles to process: 66128\nProgress: 100/66128 files processed\n\nFound CVEs:\nCVE-2023-22490 cvss: 5.5\nCVE-2023-22743 cvss: 7.3\n\nTotal 17 CVEs found.\n\n```\n\n\n## Integrating Additional CVEs\n\nThe current CVE database includes CVEs from **2024** and **2025**, sourced from the [CVE Project's cvelistV5](https://github.com/CVEProject/cvelistV5). To integrate additional CVEs from other years or sources, follow these steps:\n\n### 1. Download Additional CVEs\n\n- **From CVE Project's cvelistV5**:\n  - Visit the [CVE Project's cvelistV5 repository](https://github.com/CVEProject/cvelistV5) to download CVE JSON files.\n\n- **From Other Trusted Sources**:\n  - Alternatively, obtain CVE data from other trusted sources in JSON format.\n\n### 2. Add CVE Files to the Database\n\n- **Copy Files**:\n  - Copy the downloaded CVE JSON files directly into the base path directory (`./`).\n\n- **Ensure Consistency**:\n  - Ensure that all CVE files are in JSON format and follow the same structure as the existing files.\n\n\n\n### Project Structure\n\n```bash\ncveSearch/\n├── main.py        # Main script with the search functionality\n├── requirements.txt     # Python dependencies\n├── README.md            # Project description\n├── .gitignore           # Files and directories to ignore in Git\n```\n\n### Contributing\n\nContributions are welcome! Please fork the repository and create a pull request with your changes.\n\n### License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n### Acknowledgements\n\n- [orjson](https://github.com/ijl/orjson) for fast JSON parsing.\n- [packaging](https://packaging.pypa.io/) for version comparison utilities.\n- [CVE Project](https://github.com/CVEProject/cvelistV5) for providing comprehensive CVE lists.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkw-soft%2Fcvesearch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkw-soft%2Fcvesearch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkw-soft%2Fcvesearch/lists"}