AppThreat / vulnerability-db

Vulnerability database and package search for sources such as Linux, OSV, NVD, GitHub and npm. Powered by sqlite, CVE 5.0, purl, and vers.
MIT License
92 stars 22 forks source link

Fix version was missing for certain packages for osv #136

Closed prabhu closed 3 months ago

prabhu commented 3 months ago

With this PR, the fix version shows up for certain python packages that have a start version of 0.

python vdb/cli.py --search "pkg:pypi/ujson@5.2.0"

+----------------+-----------------+--------------------+---------------+---------+------------+---------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Id             | Package         | Affected Version   | Fix Version   | CWE     | Severity   |   Score | Description                                                                                                                                                                                                                      |
+================+=================+====================+===============+=========+============+=========+==================================================================================================================================================================================================================================+
| CVE-2022-31117 | pypi:pypi:ujson | >=1.15-<=5.3.0     | 5.4.0         | CWE-415 | MEDIUM     |     5.9 | # Potential double free of buffer during string decoding                                                                                                                                                                         |
|                |                 |                    |               |         |            |         | ### Impact                                                                                                                                                                                                                       |
|                |                 |                    |               |         |            |         | _What kind of vulnerability is it? Who is impacted?_                                                                                                                                                                             |
prabhu commented 3 months ago
python vdb/cli.py --search "pkg:pypi/gunicorn@20.0.4"
| CVE-2024-1135 | pypi:pypi:gunicorn | >=0.1-<=21.2.0     | 22.0.0        | CWE-444 | HIGH       |     8.2 | # Request smuggling leading to endpoint restriction bypass in Gunicorn                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
|               |                    |                    |               |         |            |         | Gunicorn fails to properly validate Transfer-Encoding headers, leading to HTTP Request Smuggling (HRS) vulnerabilities. By crafting requests with conflicting Transfer-Encoding headers, attackers can bypass security restrictions and access restricted endpoints. This issue is due to Gunicorn's handling of Transfer-Encoding headers, where it incorrectly processes requests with multiple, conflicting Transfer-Encoding headers, treating them as chunked regardless of the final encoding specified. This vulnerability has been shown to allow access to endpoints restricted by gunicorn. This issue has been addressed in version 22.0.0. |
|               |                    |                    |               |         |            |         |