Publish GHSA-9wx4-h78v-vm56

This commit is contained in:
advisory-database[bot]
2024-05-20 20:16:39 +00:00
parent 7d777d181e
commit bd7c329f61
@@ -0,0 +1,65 @@
{
"schema_version": "1.4.0",
"id": "GHSA-9wx4-h78v-vm56",
"modified": "2024-05-20T20:15:00Z",
"published": "2024-05-20T20:15:00Z",
"aliases": [
"CVE-2024-35195"
],
"summary": "Requests `Session` object does not verify requests after making first request with verify=False",
"details": "When making requests through a Requests `Session`, if the first request is made with `verify=False` to disable cert verification, all subsequent requests to the same origin will continue to ignore cert verification regardless of changes to the value of `verify`. This behavior will continue for the lifecycle of the connection in the connection pool.\n\n### Remediation\nAny of these options can be used to remediate the current issue, we highly recommend upgrading as the preferred mitigation.\n\n* Upgrade to `requests>=2.32.0`.\n* For `requests<2.32.0`, avoid setting `verify=False` for the first request to a host while using a Requests Session.\n* For `requests<2.32.0`, call `close()` on `Session` objects to clear existing connections if `verify=False` is used.\n\n### Related Links\n* https://github.com/psf/requests/pull/6655",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N"
}
],
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "requests"
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.32.0"
}
]
}
]
}
],
"references": [
{
"type": "WEB",
"url": "https://github.com/psf/requests/security/advisories/GHSA-9wx4-h78v-vm56"
},
{
"type": "WEB",
"url": "https://github.com/psf/requests/pull/6655"
},
{
"type": "WEB",
"url": "https://github.com/psf/requests/commit/a58d7f2ffb4d00b46dca2d70a3932a0b37e22fac"
},
{
"type": "PACKAGE",
"url": "https://github.com/psf/requests"
}
],
"database_specific": {
"cwe_ids": [
"CWE-670"
],
"severity": "MODERATE",
"github_reviewed": true,
"github_reviewed_at": "2024-05-20T20:15:00Z",
"nvd_published_at": null
}
}