{"api_version":"1","generated_at":"2026-04-23T04:10:58+00:00","cve":"CVE-2018-18074","urls":{"html":"https://cve.report/CVE-2018-18074","api":"https://cve.report/api/cve/CVE-2018-18074.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2018-18074","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-18074"},"summary":{"title":"CVE-2018-18074","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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2018-10-09 17:29:00","updated_at":"2022-07-25 18:15:00"},"problem_types":["CWE-522"],"metrics":[],"references":[{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00024.html","name":"openSUSE-SU-2019:1754","refsource":"SUSE","tags":[],"title":"[security-announce] openSUSE-SU-2019:1754-1: moderate: Security update f","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/requests/requests/commit/c45d7c49ea75133e52ab22a8e9e13173938e36ff","name":"https://github.com/requests/requests/commit/c45d7c49ea75133e52ab22a8e9e13173938e36ff","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"Merge pull request #4718 from bmerry/fix-4716 · requests/requests@c45d7c4 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://bugs.debian.org/910766","name":"https://bugs.debian.org/910766","refsource":"MISC","tags":["Exploit","Issue Tracking","Patch","Third Party Advisory"],"title":"#910766 - requests: CVE-2018-18074 - Debian Bug report logs","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://docs.python-requests.org/en/master/community/updates/#release-and-version-history","name":"http://docs.python-requests.org/en/master/community/updates/#release-and-version-history","refsource":"CONFIRM","tags":["Release Notes","Third Party Advisory"],"title":"Community Updates — Requests 2.25.1 documentation","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://github.com/requests/requests/pull/4718","name":"https://github.com/requests/requests/pull/4718","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"Strip Authorization header whenever root URL changes by bmerry · Pull Request #4718 · psf/requests · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://usn.ubuntu.com/3790-2/","name":"USN-3790-2","refsource":"UBUNTU","tags":["Third Party Advisory"],"title":"USN-3790-2: Requests vulnerability | Ubuntu security notices","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://usn.ubuntu.com/3790-1/","name":"USN-3790-1","refsource":"UBUNTU","tags":["Third Party Advisory"],"title":"USN-3790-1: Requests vulnerability | Ubuntu security notices","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/requests/requests/issues/4716","name":"https://github.com/requests/requests/issues/4716","refsource":"MISC","tags":["Exploit","Patch","Third Party Advisory"],"title":"Should Authorization header be cleared in https -> http redirect? · Issue #4716 · psf/requests · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","name":"N/A","refsource":"N/A","tags":[],"title":"Oracle Critical Patch Update Advisory - July 2022","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://access.redhat.com/errata/RHSA-2019:2035","name":"RHSA-2019:2035","refsource":"REDHAT","tags":[],"title":"Red Hat Customer Portal","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-18074","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-18074","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2018","cve_id":"18074","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"14.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"esm","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"18074","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"14.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"lts","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"18074","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"16.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"lts","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"18074","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"18.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"lts","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"18074","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"18.10","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"18074","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"14.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"lts","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"18074","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"16.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"lts","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"18074","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"18.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"lts","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"18074","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"18.10","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"18074","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"opensuse","cpe5":"leap","cpe6":"15.1","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"18074","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"python","cpe5":"requests","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"18074","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"python-requests","cpe5":"requests","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"18074","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"redhat","cpe5":"enterprise_linux_desktop","cpe6":"7.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"18074","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"redhat","cpe5":"enterprise_linux_server","cpe6":"7.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"18074","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"redhat","cpe5":"enterprise_linux_workstation","cpe6":"7.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2018-18074","qid":"159655","title":"Oracle Enterprise Linux Security Update for python27:2.7 (ELSA-2020-1605)"},{"cve":"CVE-2018-18074","qid":"296079","title":"Oracle Solaris 11.4 Support Repository Update (SRU) 15.5.0 Missing (CPUOCT2019)"},{"cve":"CVE-2018-18074","qid":"377327","title":"Alibaba Cloud Linux Security Update for python-pip (ALINUX3-SA-2022:0103)"},{"cve":"CVE-2018-18074","qid":"377434","title":"Alibaba Cloud Linux Security Update for python-requests (ALINUX2-SA-2019:0090)"},{"cve":"CVE-2018-18074","qid":"377494","title":"Alibaba Cloud Linux Security Update for python-virtualenv (ALINUX2-SA-2020:0029)"},{"cve":"CVE-2018-18074","qid":"377534","title":"Alibaba Cloud Linux Security Update for python-pip (ALINUX2-SA-2020:0030)"},{"cve":"CVE-2018-18074","qid":"752089","title":"SUSE Enterprise Linux Security Update for python-requests (SUSE-SU-2022:1448-1)"},{"cve":"CVE-2018-18074","qid":"752164","title":"SUSE Enterprise Linux Security Update for python-requests (SUSE-SU-2022:1819-1)"},{"cve":"CVE-2018-18074","qid":"940120","title":"AlmaLinux Security Update for python27:2.7 (ALSA-2020:1605)"},{"cve":"CVE-2018-18074","qid":"980797","title":"Python (pip) Security Update for requests (GHSA-x84v-xcm2-53pg)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2018-18074","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"USN-3790-1","refsource":"UBUNTU","url":"https://usn.ubuntu.com/3790-1/"},{"name":"USN-3790-2","refsource":"UBUNTU","url":"https://usn.ubuntu.com/3790-2/"},{"refsource":"SUSE","name":"openSUSE-SU-2019:1754","url":"http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00024.html"},{"refsource":"REDHAT","name":"RHSA-2019:2035","url":"https://access.redhat.com/errata/RHSA-2019:2035"},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","refsource":"MISC","name":"https://www.oracle.com/security-alerts/cpujul2022.html"},{"name":"http://docs.python-requests.org/en/master/community/updates/#release-and-version-history","refsource":"CONFIRM","url":"http://docs.python-requests.org/en/master/community/updates/#release-and-version-history"},{"name":"https://bugs.debian.org/910766","refsource":"MISC","url":"https://bugs.debian.org/910766"},{"name":"https://github.com/requests/requests/commit/c45d7c49ea75133e52ab22a8e9e13173938e36ff","refsource":"MISC","url":"https://github.com/requests/requests/commit/c45d7c49ea75133e52ab22a8e9e13173938e36ff"},{"name":"https://github.com/requests/requests/issues/4716","refsource":"MISC","url":"https://github.com/requests/requests/issues/4716"},{"name":"https://github.com/requests/requests/pull/4718","refsource":"MISC","url":"https://github.com/requests/requests/pull/4718"}]}},"nvd":{"publishedDate":"2018-10-09 17:29:00","lastModifiedDate":"2022-07-25 18:15:00","problem_types":["CWE-522"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:N/A:N","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":5},"severity":"MEDIUM","exploitabilityScore":10,"impactScore":2.9,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:python:requests:*:*:*:*:*:*:*:*","versionEndExcluding":"2.20.0","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:esm:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2018","CveId":"18074","Ordinal":"134906","Title":"CVE-2018-18074","CVE":"CVE-2018-18074","Year":"2018"},"notes":[{"CveYear":"2018","CveId":"18074","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2018","CveId":"18074","Ordinal":"2","NoteData":"2018-10-09","Type":"Other","Title":"Published"},{"CveYear":"2018","CveId":"18074","Ordinal":"3","NoteData":"2019-08-06","Type":"Other","Title":"Modified"}]}}}