{"answers":{"affected":"3 open source packages ship an affected version, including requests.","exploited":"There is no known exploitation of CVE-2024-47081 in the wild and no public exploit code.","fix":"Upgrade requests to 2.32.4 or later.","what":"CVE-2024-47081 is a medium-severity vulnerability in psf requests, published on 9 Jun 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-47081 and fix it if it is affected.\n\nWhat it is: CVE-2024-47081 is a medium-severity vulnerability in psf requests, published on 9 Jun 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-47081 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- requests (PyPI): affected all versions; fixed in 2.32.4\n- requests (PyPI): affected all versions; fixed in 2.32.4\n- requests (PyPI): affected all versions; fixed in 2.32.4\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-47081/ (Markdown: https://insights.sbomify.com/CVE-2024-47081/index.md)","id":"CVE-2024-47081","markdown":"https://insights.sbomify.com/CVE-2024-47081/index.md","name":"CVE-2024-47081","record":{"aliases":["ALPINE-CVE-2024-47081","ALSA-2025:12519","ALSA-2025:13234","ALSA-2025:13604","ALSA-2025:14750","ALSA-2025:14999","AZL-63747","AZL-63812","BELL-CVE-2024-47081","CLEANSTART-2026-IP27790","CLEANSTART-2026-TQ24260","CLSA-2026-1789975369","DEBIAN-CVE-2024-47081","ECHO-6fd0-2865-91ff","GHSA-9hjg-9r4m-mvj7","MINI-4264-8x7m-ffv5","MINI-577q-gwpm-5335","MINI-66x3-p8j6-jx66","MINI-73vj-44hp-fq62","MINI-9j85-x99w-c53f","MINI-g2p5-cxvf-4wcx","MINI-r9pq-9c7c-f6xq","OESA-2025-1674","OESA-2025-1710","OESA-2025-1711","OESA-2025-1712","OESA-2025-1825","OESA-2025-1826","OESA-2025-1827","OESA-2025-1828","OESA-2025-1979","OESA-2025-1980","OESA-2025-2173","OESA-2025-2174","OESA-2025-2175","OESA-2025-2287","PYSEC-2026-1872","RHSA-2025:12519","RHSA-2025:13234","RHSA-2025:13604","RHSA-2025:14750","RHSA-2025:14999","RHSA-2025:15121","RHSA-2025:15122","RHSA-2025:15614","RHSA-2025:15615","RHSA-2025:15616","RHSA-2025:15617","RHSA-2025:15618","RHSA-2025:15622","RHSA-2025:15691","RHSA-2025:15723","RLSA-2025:12519","RLSA-2025:13234","RLSA-2025:13604","RLSA-2025:14750","RLSA-2025:14999","ROOT-APP-PYPI-CVE-2024-47081","SUSE-SU-2025:01997-1","SUSE-SU-2025:01998-1","SUSE-SU-2025:01999-1","SUSE-SU-2025:02205-1","SUSE-SU-2025:02371-1","SUSE-SU-2025:20455-1","SUSE-SU-2025:20531-1","UBUNTU-CVE-2024-47081","openSUSE-SU-2025:15281-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Python HTTP library","requires_auth":"none","summary":"Attackers can leak .netrc credentials to third parties via malicious URLs in the Requests HTTP library, requiring an upgrade to fix.","user_interaction":"required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-522","name":"Insufficiently Protected Credentials"}],"description":"Requests is a HTTP library. Due to a URL parsing issue, Requests releases prior to 2.32.4 may leak .netrc credentials to third parties for specific maliciously-crafted URLs. Users should upgrade to version 2.32.4 to receive a fix. For older versions of Requests, use of the .netrc file can be disabled with `trust_env=False` on one's Requests Session.","ecosystems":["AlmaLinux:10","AlmaLinux:8","AlmaLinux:9","PyPI","Red Hat:enterprise_linux:10.0","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:8::baseos","Red Hat:enterprise_linux:8::highavailability","Red Hat:enterprise_linux:8::resilientstorage","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::baseos","Red Hat:rhel_aus:8.2::baseos","Red Hat:rhel_aus:8.4::appstream","Red Hat:rhel_aus:8.4::baseos","Red Hat:rhel_aus:8.4::highavailability","Red Hat:rhel_aus:8.6::appstream","Red Hat:rhel_aus:8.6::baseos","Red Hat:rhel_e4s:8.6::appstream","Red Hat:rhel_e4s:8.6::baseos","Red Hat:rhel_e4s:8.6::highavailability","Red Hat:rhel_e4s:8.8::appstream","Red Hat:rhel_e4s:8.8::baseos","Red Hat:rhel_e4s:8.8::highavailability","Red Hat:rhel_eus_long_life:8.4::appstream","Red Hat:rhel_eus_long_life:8.4::baseos","Red Hat:rhel_eus_long_life:8.4::highavailability","Red Hat:rhel_tus:8.6::appstream","Red Hat:rhel_tus:8.6::baseos","Red Hat:rhel_tus:8.6::highavailability","Red Hat:rhel_tus:8.8::appstream","Red Hat:rhel_tus:8.8::baseos","Red Hat:rhel_tus:8.8::highavailability","Rocky Linux:10","Rocky Linux:8","Rocky Linux:9","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 Basesystem 15 SP6","SUSE:Linux Enterprise Module for Basesystem 15 SP7","SUSE:Linux Enterprise Module for Public Cloud 12","SUSE:Linux Enterprise Module for Public Cloud 15 SP4","SUSE:Linux Enterprise Module for Python 3 15 SP6","SUSE:Linux Enterprise Module for Python 3 15 SP7","SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","SUSE:Linux Micro 6.0","SUSE:Linux Micro 6.1","SUSE:Manager Client Tools 12","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"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 vulnerable to .netrc credentials leak via malicious URLs","id":"CVE-2024-47081","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"information_disclosure","year":"2024"},"n_packages":609,"n_references":5,"next":{"headline":"Strawberry GraphQL Cross-Site Request Forgery (CSRF) vulnerability","id":"CVE-2024-47082"},"packages":[{"ecosystem":"PyPI","fixed":["2.32.4"],"introduced":["0"],"last_affected":[],"package":"requests","purl":null,"source":"GHSA-9hjg-9r4m-mvj7"},{"ecosystem":"PyPI","fixed":["2.32.4"],"introduced":["0"],"last_affected":[],"package":"requests","purl":"pkg:pypi/requests","source":"GHSA-9hjg-9r4m-mvj7"},{"ecosystem":"PyPI","fixed":["2.32.4"],"introduced":["0"],"last_affected":[],"package":"requests","purl":"pkg:pypi/requests","source":"PYSEC-2026-1872"},{"ecosystem":"AlmaLinux:10","fixed":["2.32.4-1.el10_0"],"introduced":["0"],"last_affected":[],"package":"python3-requests","purl":"pkg:rpm/almalinux/python3-requests","source":"ALSA-2025:13604"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-all","purl":"pkg:rpm/almalinux/fence-agents-all","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-amt-ws","purl":"pkg:rpm/almalinux/fence-agents-amt-ws","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-apc","purl":"pkg:rpm/almalinux/fence-agents-apc","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-apc-snmp","purl":"pkg:rpm/almalinux/fence-agents-apc-snmp","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-bladecenter","purl":"pkg:rpm/almalinux/fence-agents-bladecenter","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-brocade","purl":"pkg:rpm/almalinux/fence-agents-brocade","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-cisco-mds","purl":"pkg:rpm/almalinux/fence-agents-cisco-mds","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-cisco-ucs","purl":"pkg:rpm/almalinux/fence-agents-cisco-ucs","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-common","purl":"pkg:rpm/almalinux/fence-agents-common","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-compute","purl":"pkg:rpm/almalinux/fence-agents-compute","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-drac5","purl":"pkg:rpm/almalinux/fence-agents-drac5","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-eaton-snmp","purl":"pkg:rpm/almalinux/fence-agents-eaton-snmp","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-emerson","purl":"pkg:rpm/almalinux/fence-agents-emerson","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-eps","purl":"pkg:rpm/almalinux/fence-agents-eps","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-heuristics-ping","purl":"pkg:rpm/almalinux/fence-agents-heuristics-ping","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-hpblade","purl":"pkg:rpm/almalinux/fence-agents-hpblade","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-ibm-powervs","purl":"pkg:rpm/almalinux/fence-agents-ibm-powervs","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-ibm-vpc","purl":"pkg:rpm/almalinux/fence-agents-ibm-vpc","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-ibmblade","purl":"pkg:rpm/almalinux/fence-agents-ibmblade","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-ifmib","purl":"pkg:rpm/almalinux/fence-agents-ifmib","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-ilo-moonshot","purl":"pkg:rpm/almalinux/fence-agents-ilo-moonshot","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-ilo-mp","purl":"pkg:rpm/almalinux/fence-agents-ilo-mp","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-ilo-ssh","purl":"pkg:rpm/almalinux/fence-agents-ilo-ssh","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-ilo2","purl":"pkg:rpm/almalinux/fence-agents-ilo2","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-intelmodular","purl":"pkg:rpm/almalinux/fence-agents-intelmodular","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-ipdu","purl":"pkg:rpm/almalinux/fence-agents-ipdu","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-ipmilan","purl":"pkg:rpm/almalinux/fence-agents-ipmilan","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-kdump","purl":"pkg:rpm/almalinux/fence-agents-kdump","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-kubevirt","purl":"pkg:rpm/almalinux/fence-agents-kubevirt","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-lpar","purl":"pkg:rpm/almalinux/fence-agents-lpar","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-mpath","purl":"pkg:rpm/almalinux/fence-agents-mpath","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-redfish","purl":"pkg:rpm/almalinux/fence-agents-redfish","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-rhevm","purl":"pkg:rpm/almalinux/fence-agents-rhevm","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-rsa","purl":"pkg:rpm/almalinux/fence-agents-rsa","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-rsb","purl":"pkg:rpm/almalinux/fence-agents-rsb","source":"ALSA-2025:14750"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.1-129.el8_10.14"],"introduced":["0"],"last_affected":[],"package":"fence-agents-sbd","purl":"pkg:rpm/almalinux/fence-agents-sbd","source":"ALSA-2025:14750"}],"prev":{"headline":"matrix-js-sdk keys sent via `sendSharedHistoryKeys` vulnerable to interception by malicious homeserver","id":"CVE-2024-47080"},"products":["requests"],"published":"2025-06-09","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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-06-09","vendors":["psf"]},"summary":"Attackers can leak .netrc credentials to third parties via malicious URLs in the Requests HTTP library, requiring an upgrade to fix.","url":"https://insights.sbomify.com/CVE-2024-47081/"}