{"answers":{"affected":"3 open source packages ship an affected version, including requests.","exploited":"There is no known exploitation of CVE-2024-35195 in the wild and no public exploit code.","fix":"Upgrade requests to 2.32.0 or later.","what":"CVE-2024-35195 is a medium-severity vulnerability in psf requests, published on 20 May 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-35195 and fix it if it is affected.\n\nWhat it is: CVE-2024-35195 is a medium-severity vulnerability in psf requests, published on 20 May 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-35195 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- requests (PyPI): affected all versions; fixed in 2.32.0\n- requests (PyPI): affected all versions; fixed in 2.32.0\n- requests (PyPI): affected all versions; fixed in 2.32.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-35195/ (Markdown: https://insights.sbomify.com/CVE-2024-35195/index.md)","id":"CVE-2024-35195","markdown":"https://insights.sbomify.com/CVE-2024-35195/index.md","name":"CVE-2024-35195","record":{"aliases":["ALPINE-CVE-2024-35195","ALSA-2025:0012","ALSA-2025:7049","AZL-42106","AZL-42127","AZL-42145","BELL-CVE-2024-35195","CLEANSTART-2026-ZF37263","DEBIAN-CVE-2024-35195","ECHO-8499-05d3-fb08","GHSA-9wx4-h78v-vm56","MGASA-2024-0210","MINI-6jj3-mc3h-hpvv","MINI-mrcj-w8c9-95h6","OESA-2025-2806","OESA-2025-2807","OESA-2025-2808","OESA-2025-2809","OESA-2025-2888","OESA-2025-2889","PYSEC-2026-1873","RHSA-2024:9988","RHSA-2025:0012","RHSA-2025:7049","RLSA-2025:0012","RLSA-2025:7049","ROOT-APP-PYPI-CVE-2024-35195","ROOT-OS-UBUNTU-2204-CVE-2024-35195","SUSE-RU-2024:3598-1","SUSE-RU-2024:3599-1","SUSE-RU-2024:3600-1","SUSE-SU-2024:1857-1","SUSE-SU-2024:1880-1","SUSE-SU-2024:1880-2","SUSE-SU-2024:1937-1","SUSE-SU-2024:1937-2","SUSE-SU-2024:1938-1","SUSE-SU-2024:1946-1","SUSE-SU-2024:2068-1","SUSE-SU-2024:2182-1","SUSE-SU-2025:20034-1","SUSE-SU-2025:20094-1","UBUNTU-CVE-2024-35195"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Python HTTP library","requires_auth":"high_privilege","summary":"Attackers can bypass TLS certificate verification in Python Requests sessions if the first request disables verification, allowing man-in-the-middle attacks.","user_interaction":"required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.6,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-670","name":"Always-Incorrect Control Flow Implementation"}],"description":"Requests is a HTTP library. Prior to 2.32.0, 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 host 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. This vulnerability is fixed in 2.32.0.","ecosystems":["AlmaLinux:8","AlmaLinux:9","PyPI","Red Hat:enterprise_linux:8::baseos","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::baseos","Red Hat:openstack:17.1::el8","Rocky Linux:8","Rocky Linux:9","SUSE:Enterprise Storage 7.1","SUSE:Linux Enterprise High Availability Extension 12 SP5","SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","SUSE:Linux Enterprise Micro 5.1","SUSE:Linux Enterprise Micro 5.2","SUSE:Linux Enterprise Micro 5.3","SUSE:Linux Enterprise Micro 5.4","SUSE:Linux Enterprise Micro 5.5","SUSE:Linux Enterprise Module for Advanced Systems Management 12","SUSE:Linux Enterprise Module for Basesystem 15 SP5","SUSE:Linux Enterprise Module for Basesystem 15 SP6","SUSE:Linux Enterprise Module for Package Hub 15 SP5","SUSE:Linux Enterprise Module for Package Hub 15 SP6","SUSE:Linux Enterprise Module for Public Cloud 12","SUSE:Linux Enterprise Module for Public Cloud 15 SP4","SUSE:Linux Enterprise Module for Public Cloud 15 SP5","SUSE:Linux Enterprise Module for Public Cloud 15 SP6","SUSE:Linux Enterprise Module for Python 3 15 SP5","SUSE:Linux Enterprise Module for Python 3 15 SP6","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server 15 SP3-LTSS","SUSE:Linux Enterprise Server 15 SP4-LTSS","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15 SP3","SUSE:Linux Enterprise Server for SAP Applications 15 SP4","SUSE:Linux Micro 6.0","SUSE:Manager Client Tools 12","SUSE:Manager Client Tools 15","SUSE:Manager Proxy 4.3","SUSE:Manager Server 4.3","openSUSE:Leap 15.5","openSUSE:Leap 15.6","openSUSE:Leap Micro 5.3","openSUSE:Leap Micro 5.4"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Requests `Session` object does not verify requests after making first request with verify=False","id":"CVE-2024-35195","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"security_feature_bypass","year":"2024"},"n_packages":75,"n_references":5,"next":{"headline":"Slack integration leaks sensitive information in logs in Sentry","id":"CVE-2024-35196"},"packages":[{"ecosystem":"PyPI","fixed":["2.32.0"],"introduced":["0"],"last_affected":[],"package":"requests","purl":null,"source":"GHSA-9wx4-h78v-vm56"},{"ecosystem":"PyPI","fixed":["2.32.0"],"introduced":["0"],"last_affected":[],"package":"requests","purl":"pkg:pypi/requests","source":"GHSA-9wx4-h78v-vm56"},{"ecosystem":"PyPI","fixed":["2.32.0"],"introduced":["0"],"last_affected":[],"package":"requests","purl":"pkg:pypi/requests","source":"PYSEC-2026-1873"},{"ecosystem":"AlmaLinux:8","fixed":["2.20.0-5.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3-requests","purl":"pkg:rpm/almalinux/python3-requests","source":"ALSA-2025:0012"},{"ecosystem":"AlmaLinux:9","fixed":["2.25.1-9.el9"],"introduced":["0"],"last_affected":[],"package":"python3-requests","purl":"pkg:rpm/almalinux/python3-requests","source":"ALSA-2025:7049"},{"ecosystem":"AlmaLinux:9","fixed":["2.25.1-9.el9"],"introduced":["0"],"last_affected":[],"package":"python3-requests+security","purl":"pkg:rpm/almalinux/python3-requests%2Bsecurity","source":"ALSA-2025:7049"},{"ecosystem":"AlmaLinux:9","fixed":["2.25.1-9.el9"],"introduced":["0"],"last_affected":[],"package":"python3-requests+socks","purl":"pkg:rpm/almalinux/python3-requests%2Bsocks","source":"ALSA-2025:7049"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.20.0-5.el8_10"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/redhat/python-requests","source":"RHSA-2025:0012"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.20.0-5.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3-requests","purl":"pkg:rpm/redhat/python3-requests","source":"RHSA-2025:0012"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.25.1-9.el9"],"introduced":["0"],"last_affected":[],"package":"python3-requests+security","purl":"pkg:rpm/redhat/python3-requests%2Bsecurity","source":"RHSA-2025:7049"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.25.1-9.el9"],"introduced":["0"],"last_affected":[],"package":"python3-requests+socks","purl":"pkg:rpm/redhat/python3-requests%2Bsocks","source":"RHSA-2025:7049"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:2.25.1-9.el9"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/redhat/python-requests","source":"RHSA-2025:7049"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:2.25.1-9.el9"],"introduced":["0"],"last_affected":[],"package":"python3-requests","purl":"pkg:rpm/redhat/python3-requests","source":"RHSA-2025:7049"},{"ecosystem":"Red Hat:openstack:17.1::el8","fixed":["0:2.25.1-2.el8ost"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/redhat/python-requests","source":"RHSA-2024:9988"},{"ecosystem":"Red Hat:openstack:17.1::el8","fixed":["0:2.25.1-2.el8ost"],"introduced":["0"],"last_affected":[],"package":"python3-requests","purl":"pkg:rpm/redhat/python3-requests","source":"RHSA-2024:9988"},{"ecosystem":"Rocky Linux:8","fixed":["0:2.20.0-5.el8_10"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/rocky-linux/python-requests?distro=rocky-linux-8-x86-64\u0026epoch=0","source":"RLSA-2025:0012"},{"ecosystem":"Rocky Linux:9","fixed":["0:2.25.1-9.el9"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/rocky-linux/python-requests?distro=rocky-linux-9-6-aarch64\u0026epoch=0","source":"RLSA-2025:7049"},{"ecosystem":"SUSE:Enterprise Storage 7.1","fixed":["2.25.1-150300.3.9.1"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/suse/python-requests\u0026distro=SUSE%20Enterprise%20Storage%207.1","source":"SUSE-SU-2024:1880-2"},{"ecosystem":"SUSE:Linux Enterprise High Availability Extension 12 SP5","fixed":["2.24.0-8.17.1"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/suse/python-requests\u0026distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2012%20SP5","source":"SUSE-SU-2024:2068-1"},{"ecosystem":"SUSE:Linux Enterprise High Availability Extension 12 SP5","fixed":["2.24.0-8.20.1"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/suse/python-requests\u0026distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2012%20SP5","source":"SUSE-RU-2024:3598-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","fixed":["2.25.1-150300.3.9.1"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/suse/python-requests\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSS","source":"SUSE-SU-2024:1880-2"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","fixed":["2.25.1-150300.3.9.1"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/suse/python-requests\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-ESPOS","source":"SUSE-SU-2024:1880-2"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","fixed":["2.31.0-150400.6.15.1"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/suse/python-requests\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-ESPOS","source":"SUSE-RU-2024:3600-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","fixed":["2.25.1-150300.3.9.1"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/suse/python-requests\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-LTSS","source":"SUSE-SU-2024:1880-2"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","fixed":["2.31.0-150400.6.15.1"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/suse/python-requests\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-LTSS","source":"SUSE-RU-2024:3600-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.1","fixed":["2.25.1-150300.3.9.1"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/suse/python-requests\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.1","source":"SUSE-SU-2024:1880-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.2","fixed":["2.25.1-150300.3.9.1"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/suse/python-requests\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.2","source":"SUSE-SU-2024:1880-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.3","fixed":["2.25.1-150300.3.9.1"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/suse/python-requests\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.3","source":"SUSE-SU-2024:1880-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.4","fixed":["2.25.1-150300.3.9.1"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/suse/python-requests\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.4","source":"SUSE-SU-2024:1880-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.5","fixed":["2.25.1-150300.3.9.1"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/suse/python-requests\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.5","source":"SUSE-SU-2024:1880-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Advanced Systems Management 12","fixed":["2.11.1-6.37.1"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/suse/python-requests\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Advanced%20Systems%20Management%2012","source":"SUSE-SU-2024:1946-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Advanced Systems Management 12","fixed":["2.11.1-6.40.1"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/suse/python-requests\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Advanced%20Systems%20Management%2012","source":"SUSE-RU-2024:3599-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP5","fixed":["2.25.1-150300.3.9.1"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/suse/python-requests\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP5","source":"SUSE-SU-2024:1880-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP6","fixed":["2.25.1-150300.3.9.1"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/suse/python-requests\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP6","source":"SUSE-SU-2024:1880-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP5","fixed":["4.2.0-150200.3.5.1"],"introduced":["0"],"last_affected":[],"package":"python-docker","purl":"pkg:rpm/suse/python-docker\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP5","source":"SUSE-SU-2024:1938-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP6","fixed":["4.2.0-150200.3.5.1"],"introduced":["0"],"last_affected":[],"package":"python-docker","purl":"pkg:rpm/suse/python-docker\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP6","source":"SUSE-SU-2024:1938-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 12","fixed":["2.24.0-8.17.1"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/suse/python-requests\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2012","source":"SUSE-SU-2024:2068-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 12","fixed":["2.24.0-8.20.1"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/suse/python-requests\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2012","source":"SUSE-RU-2024:3598-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP4","fixed":["7.0.0-150400.8.7.1"],"introduced":["0"],"last_affected":[],"package":"python-docker","purl":"pkg:rpm/suse/python-docker\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP4","source":"SUSE-SU-2024:1937-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP4","fixed":["2.31.0-150400.6.12.1"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/suse/python-requests\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP4","source":"SUSE-SU-2024:1857-1"}],"prev":{"headline":"Stacklok Minder vulnerable to denial of service from maliciously crafted templates","id":"CVE-2024-35194"},"products":["requests"],"published":"2024-05-20","related":[],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"BSD","name":"Rocky Linux","prefix":"RLSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-07-31","vendors":["psf"]},"summary":"Attackers can bypass TLS certificate verification in Python Requests sessions if the first request disables verification, allowing man-in-the-middle attacks.","url":"https://insights.sbomify.com/CVE-2024-35195/"}