{"answers":{"affected":"3 open source packages ship an affected version, including requests. It affects 6 products.","exploited":"There is no known exploitation of CVE-2018-18074 in the wild and no public exploit code.","fix":"Upgrade requests to 2.20.0 or later.","what":"CVE-2018-18074 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 9 Oct 2018. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2018-18074 and fix it if it is affected.\n\nWhat it is: CVE-2018-18074 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 9 Oct 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2018-18074 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- requests (PyPI): affected all versions; fixed in 2.20.0\n- requests (PyPI): affected all versions; fixed in 2.20.0\n- requests (PyPI): affected all versions; fixed in 2.20.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-2018-18074/ (Markdown: https://insights.sbomify.com/CVE-2018-18074/index.md)","id":"CVE-2018-18074","markdown":"https://insights.sbomify.com/CVE-2018-18074/index.md","name":"CVE-2018-18074","record":{"aliases":["ALBA-2019:3693","DEBIAN-CVE-2018-18074","GHSA-x84v-xcm2-53pg","MGASA-2018-0475","PYSEC-2018-28","RHSA-2019:2035","ROOT-APP-PYPI-CVE-2018-18074","SUSE-SU-2019:1487-1","SUSE-SU-2019:1487-2","SUSE-SU-2019:2027-1","SUSE-SU-2019:2047-1","SUSE-SU-2020:0555-1","SUSE-SU-2022:1448-1","SUSE-SU-2022:1819-1","UBUNTU-CVE-2018-18074","USN-3790-1","openSUSE-SU-2019:1754-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 sniff network traffic to steal credentials when the library sends Authorization headers over insecure HTTP redirects.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"ubuntu_linux","vendor":"canonical"},{"product":"leap","vendor":"opensuse"},{"product":"requests","vendor":"python"},{"product":"enterprise_linux_desktop","vendor":"redhat"},{"product":"enterprise_linux_server","vendor":"redhat"},{"product":"enterprise_linux_workstation","vendor":"redhat"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-522","name":"Insufficiently Protected Credentials"}],"description":"The Requests package before 2.20.0 for Python sends an HTTP Authorization header to an http URI upon receiving a same-hostname https-to-http redirect, which makes it easier for remote attackers to discover credentials by sniffing the network.","ecosystems":["AlmaLinux:8","PyPI","Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::computenode","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation","SUSE:Enterprise Storage 5","SUSE:HPE Helion OpenStack 8","SUSE:Linux Enterprise High Availability Extension 12 SP1","SUSE:Linux Enterprise High Availability Extension 12 SP2","SUSE:Linux Enterprise High Availability Extension 12 SP3","SUSE:Linux Enterprise High Availability Extension 12 SP4","SUSE:Linux Enterprise High Availability Extension 12 SP5","SUSE:Linux Enterprise High Performance Computing 15-ESPOS","SUSE:Linux Enterprise High Performance Computing 15-LTSS","SUSE:Linux Enterprise Module for Advanced Systems Management 12","SUSE:Linux Enterprise Module for Basesystem 15 SP1","SUSE:Linux Enterprise Module for Containers 12","SUSE:Linux Enterprise Module for Public Cloud 12","SUSE:Linux Enterprise Module for Python 2 15 SP1","SUSE:Linux Enterprise Point of Sale 12 SP2","SUSE:Linux Enterprise Server 12 SP1-LTSS","SUSE:Linux Enterprise Server 12 SP2-BCL","SUSE:Linux Enterprise Server 12 SP2-LTSS","SUSE:Linux Enterprise Server 12 SP3-BCL","SUSE:Linux Enterprise Server 12 SP3-LTSS","SUSE:Linux Enterprise Server 12 SP4","SUSE:Linux Enterprise Server 12 SP4-LTSS","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server 15-LTSS","SUSE:Linux Enterprise Server for SAP Applications 12 SP1","SUSE:Linux Enterprise Server for SAP Applications 12 SP2","SUSE:Linux Enterprise Server for SAP Applications 12 SP3","SUSE:Linux Enterprise Server for SAP Applications 12 SP4","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15","SUSE:Manager Client Tools 12","SUSE:Manager Proxy 3.2","SUSE:Manager Server 3.2","SUSE:OpenStack Cloud 7","SUSE:OpenStack Cloud 8","SUSE:OpenStack Cloud 9","SUSE:OpenStack Cloud Crowbar 8","SUSE:OpenStack Cloud Crowbar 9","openSUSE:Leap 15.1"],"exploits":{"exploitdb":0,"first_seen":"2026-05-11","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-05-11T00:11:54Z","kind":"github_poc","ref":"https://github.com/mlbrilliance/aurora-demo-lockfile","stars":0,"title":"AURORA demo target — deliberately vulnerable lockfiles (CVE-2019-10744, CVE-2018-18074, CVE-2020-26160)"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Insufficiently Protected Credentials in Requests","id":"CVE-2018-18074","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":"canonical:ubuntu_linux","products":["canonical:ubuntu_linux","opensuse:leap","redhat:enterprise_linux_desktop","redhat:enterprise_linux_server","redhat:enterprise_linux_workstation"],"type":"information_disclosure","year":"2018"},"n_packages":123,"n_references":10,"next":{"headline":"SQL injection in n/a","id":"CVE-2018-18075"},"packages":[{"ecosystem":"PyPI","fixed":["2.20.0"],"introduced":["0"],"last_affected":[],"package":"requests","purl":null,"source":"GHSA-x84v-xcm2-53pg"},{"ecosystem":"PyPI","fixed":["2.20.0"],"introduced":["0"],"last_affected":[],"package":"requests","purl":"pkg:pypi/requests","source":"GHSA-x84v-xcm2-53pg"},{"ecosystem":"PyPI","fixed":["2.20.0"],"introduced":["0"],"last_affected":[],"package":"requests","purl":"pkg:pypi/requests","source":"PYSEC-2018-28"},{"ecosystem":"AlmaLinux:8","fixed":["2.20.0-2.1.el8_1"],"introduced":["0"],"last_affected":[],"package":"python3-requests","purl":"pkg:rpm/almalinux/python3-requests","source":"ALBA-2019:3693"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:2.6.0-5.el7"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/redhat/python-requests","source":"RHSA-2019:2035"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:2.6.0-5.el7"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/redhat/python-requests","source":"RHSA-2019:2035"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:2.6.0-5.el7"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/redhat/python-requests","source":"RHSA-2019:2035"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:2.6.0-5.el7"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/redhat/python-requests","source":"RHSA-2019:2035"},{"ecosystem":"SUSE:Enterprise Storage 5","fixed":["5.1.2-26.9.4"],"introduced":["0"],"last_affected":[],"package":"python-PyYAML","purl":"pkg:rpm/suse/python-PyYAML\u0026distro=SUSE%20Enterprise%20Storage%205","source":"SUSE-SU-2020:0555-1"},{"ecosystem":"SUSE:Enterprise Storage 5","fixed":["0.24.0-2.5.1"],"introduced":["0"],"last_affected":[],"package":"python-asn1crypto","purl":"pkg:rpm/suse/python-asn1crypto\u0026distro=SUSE%20Enterprise%20Storage%205","source":"SUSE-SU-2020:0555-1"},{"ecosystem":"SUSE:Enterprise Storage 5","fixed":["17.1-2.5.1"],"introduced":["0"],"last_affected":[],"package":"python-packaging","purl":"pkg:rpm/suse/python-packaging\u0026distro=SUSE%20Enterprise%20Storage%205","source":"SUSE-SU-2020:0555-1"},{"ecosystem":"SUSE:HPE Helion OpenStack 8","fixed":["5.1.2-26.9.4"],"introduced":["0"],"last_affected":[],"package":"python-PyYAML","purl":"pkg:rpm/suse/python-PyYAML\u0026distro=HPE%20Helion%20OpenStack%208","source":"SUSE-SU-2020:0555-1"},{"ecosystem":"SUSE:HPE Helion OpenStack 8","fixed":["0.24.0-2.5.1"],"introduced":["0"],"last_affected":[],"package":"python-asn1crypto","purl":"pkg:rpm/suse/python-asn1crypto\u0026distro=HPE%20Helion%20OpenStack%208","source":"SUSE-SU-2020:0555-1"},{"ecosystem":"SUSE:HPE Helion OpenStack 8","fixed":["1.12.213-28.12.1"],"introduced":["0"],"last_affected":[],"package":"python-botocore","purl":"pkg:rpm/suse/python-botocore\u0026distro=HPE%20Helion%20OpenStack%208","source":"SUSE-SU-2020:0555-1"},{"ecosystem":"SUSE:HPE Helion OpenStack 8","fixed":["1.1-10.4.1"],"introduced":["0"],"last_affected":[],"package":"python-jsonpatch","purl":"pkg:rpm/suse/python-jsonpatch\u0026distro=HPE%20Helion%20OpenStack%208","source":"SUSE-SU-2020:0555-1"},{"ecosystem":"SUSE:HPE Helion OpenStack 8","fixed":["1.0-10.3.1"],"introduced":["0"],"last_affected":[],"package":"python-jsonpointer","purl":"pkg:rpm/suse/python-jsonpointer\u0026distro=HPE%20Helion%20OpenStack%208","source":"SUSE-SU-2020:0555-1"},{"ecosystem":"SUSE:HPE Helion OpenStack 8","fixed":["17.1-2.5.1"],"introduced":["0"],"last_affected":[],"package":"python-packaging","purl":"pkg:rpm/suse/python-packaging\u0026distro=HPE%20Helion%20OpenStack%208","source":"SUSE-SU-2020:0555-1"},{"ecosystem":"SUSE:HPE Helion OpenStack 8","fixed":["2.11.1-6.31.1"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/suse/python-requests\u0026distro=HPE%20Helion%20OpenStack%208","source":"SUSE-SU-2022:1819-1"},{"ecosystem":"SUSE:Linux Enterprise High Availability Extension 12 SP1","fixed":["5.1.2-26.9.4"],"introduced":["0"],"last_affected":[],"package":"python-PyYAML","purl":"pkg:rpm/suse/python-PyYAML\u0026distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2012%20SP1","source":"SUSE-SU-2020:0555-1"},{"ecosystem":"SUSE:Linux Enterprise High Availability Extension 12 SP1","fixed":["0.24.0-2.5.1"],"introduced":["0"],"last_affected":[],"package":"python-asn1crypto","purl":"pkg:rpm/suse/python-asn1crypto\u0026distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2012%20SP1","source":"SUSE-SU-2020:0555-1"},{"ecosystem":"SUSE:Linux Enterprise High Availability Extension 12 SP1","fixed":["17.1-2.5.1"],"introduced":["0"],"last_affected":[],"package":"python-packaging","purl":"pkg:rpm/suse/python-packaging\u0026distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2012%20SP1","source":"SUSE-SU-2020:0555-1"},{"ecosystem":"SUSE:Linux Enterprise High Availability Extension 12 SP1","fixed":["2.2.0-7.6.1"],"introduced":["0"],"last_affected":[],"package":"python-pyparsing","purl":"pkg:rpm/suse/python-pyparsing\u0026distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2012%20SP1","source":"SUSE-SU-2020:0555-1"},{"ecosystem":"SUSE:Linux Enterprise High Availability Extension 12 SP2","fixed":["5.1.2-26.9.4"],"introduced":["0"],"last_affected":[],"package":"python-PyYAML","purl":"pkg:rpm/suse/python-PyYAML\u0026distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2012%20SP2","source":"SUSE-SU-2020:0555-1"},{"ecosystem":"SUSE:Linux Enterprise High Availability Extension 12 SP3","fixed":["2.11.1-6.31.1"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/suse/python-requests\u0026distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2012%20SP3","source":"SUSE-SU-2022:1819-1"},{"ecosystem":"SUSE:Linux Enterprise High Availability Extension 12 SP4","fixed":["2.11.1-6.31.1"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/suse/python-requests\u0026distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2012%20SP4","source":"SUSE-SU-2022:1819-1"},{"ecosystem":"SUSE:Linux Enterprise High Availability Extension 12 SP5","fixed":["2.20.1-8.7.7"],"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-2020:0555-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15-ESPOS","fixed":["2.18.4-150000.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/suse/python-requests\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-ESPOS","source":"SUSE-SU-2022:1448-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15-LTSS","fixed":["2.18.4-150000.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/suse/python-requests\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-LTSS","source":"SUSE-SU-2022:1448-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Advanced Systems Management 12","fixed":["5.1.2-26.9.4"],"introduced":["0"],"last_affected":[],"package":"python-PyYAML","purl":"pkg:rpm/suse/python-PyYAML\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Advanced%20Systems%20Management%2012","source":"SUSE-SU-2020:0555-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Advanced Systems Management 12","fixed":["2.11.1-6.31.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-2022:1819-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP1","fixed":["2.20.1-6.3.2"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/suse/python-requests\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP1","source":"SUSE-SU-2019:1487-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Containers 12","fixed":["5.1.2-26.9.4"],"introduced":["0"],"last_affected":[],"package":"python-PyYAML","purl":"pkg:rpm/suse/python-PyYAML\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2012","source":"SUSE-SU-2020:0555-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 12","fixed":["5.1.2-26.9.4"],"introduced":["0"],"last_affected":[],"package":"python-PyYAML","purl":"pkg:rpm/suse/python-PyYAML\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2012","source":"SUSE-SU-2020:0555-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 12","fixed":["1.11.0-2.3.1"],"introduced":["0"],"last_affected":[],"package":"python-aws-sam-translator","purl":"pkg:rpm/suse/python-aws-sam-translator\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2012","source":"SUSE-SU-2020:0555-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 12","fixed":["1.9.213-14.9.1"],"introduced":["0"],"last_affected":[],"package":"python-boto3","purl":"pkg:rpm/suse/python-boto3\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2012","source":"SUSE-SU-2020:0555-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 12","fixed":["1.12.213-28.12.1"],"introduced":["0"],"last_affected":[],"package":"python-botocore","purl":"pkg:rpm/suse/python-botocore\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2012","source":"SUSE-SU-2020:0555-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 12","fixed":["0.21.4-2.3.1"],"introduced":["0"],"last_affected":[],"package":"python-cfn-lint","purl":"pkg:rpm/suse/python-cfn-lint\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2012","source":"SUSE-SU-2020:0555-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 12","fixed":["0.15.2-3.4.2"],"introduced":["0"],"last_affected":[],"package":"python-docutils","purl":"pkg:rpm/suse/python-docutils\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2012","source":"SUSE-SU-2020:0555-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 12","fixed":["3.2.3.2-2.6.1"],"introduced":["0"],"last_affected":[],"package":"python-functools32","purl":"pkg:rpm/suse/python-functools32\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2012","source":"SUSE-SU-2020:0555-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 12","fixed":["1.1-10.4.1"],"introduced":["0"],"last_affected":[],"package":"python-jsonpatch","purl":"pkg:rpm/suse/python-jsonpatch\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2012","source":"SUSE-SU-2020:0555-1"}],"prev":{"headline":"Security feature bypass in n/a","id":"CVE-2018-18073"},"products":["n/a"],"published":"2018-10-09","related":[{"cvss_score":9.8,"headline":"SaltStack Salt Authentication Bypass","id":"CVE-2020-11651","kev_date_added":"2021-11-03","published":"2020-04-30"},{"cvss_score":9.8,"headline":"OpenSMTPD Remote Code Execution","id":"CVE-2020-7247","kev_date_added":"2022-03-25","published":"2020-01-29"},{"cvss_score":9.8,"headline":"Exim Out-of-bounds Write","id":"CVE-2019-16928","kev_date_added":"2022-03-03","published":"2019-09-27"},{"cvss_score":9.8,"headline":"Exim Buffer Overflow","id":"CVE-2018-6789","kev_date_added":"2021-11-03","published":"2018-02-08"},{"cvss_score":9.8,"headline":"Oracle Java SE and Java SE Embedded Remote Code Execution","id":"CVE-2015-2590","kev_date_added":"2022-03-03","published":"2015-07-16"},{"cvss_score":9.8,"headline":"Oracle JRE Remote Code Execution","id":"CVE-2013-0422","kev_date_added":"2022-05-25","published":"2013-01-10"},{"cvss_score":9.8,"headline":"Oracle Java SE Runtime Environment (JRE) Arbitrary Code Execution","id":"CVE-2011-3544","kev_date_added":"2022-03-03","published":"2011-10-19"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALBA"},{"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":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["n/a"]},"summary":"Attackers can sniff network traffic to steal credentials when the library sends Authorization headers over insecure HTTP redirects.","url":"https://insights.sbomify.com/CVE-2018-18074/"}