{"id":"UBUNTU-CVE-2018-18074","details":"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.","modified":"2026-02-04T18:56:13.996321Z","published":"2018-10-09T00:00:00Z","related":["USN-3790-1","USN-3790-2"],"upstream":["CVE-2018-18074"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-18074"},{"type":"REPORT","url":"https://github.com/requests/requests/commit/c45d7c49ea75133e52ab22a8e9e13173938e36ff"},{"type":"REPORT","url":"https://github.com/requests/requests/issues/4716"},{"type":"REPORT","url":"https://github.com/requests/requests/pull/4718"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-3790-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-3790-2"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2018-18074"}],"affected":[{"package":{"name":"requests","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/requests@2.2.1-1ubuntu0.4?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.1-1ubuntu0.4"}]}],"versions":["1.2.3-1","2.0.0-1","2.2.1-1","2.2.1-1ubuntu0.1","2.2.1-1ubuntu0.2","2.2.1-1ubuntu0.3"],"ecosystem_specific":{"binaries":[{"binary_version":"2.2.1-1ubuntu0.4","binary_name":"python-requests"},{"binary_version":"2.2.1-1ubuntu0.4","binary_name":"python-requests-whl"},{"binary_version":"2.2.1-1ubuntu0.4","binary_name":"python3-requests"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-18074.json"}},{"package":{"name":"requests","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/requests@2.9.1-3ubuntu0.1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.1-3ubuntu0.1"}]}],"versions":["2.7.0-3","2.8.1-1","2.9.1-1ubuntu1","2.9.1-2","2.9.1-3"],"ecosystem_specific":{"binaries":[{"binary_version":"2.9.1-3ubuntu0.1","binary_name":"python-requests"},{"binary_version":"2.9.1-3ubuntu0.1","binary_name":"python3-requests"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-18074.json"}},{"package":{"name":"python-pip","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/python-pip@8.1.1-2ubuntu0.6+esm12?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.5.6-7ubuntu1","1.5.6-7ubuntu2","8.0.2-7","8.0.3-1","8.0.3-2","8.1.0-1","8.1.0-2","8.1.1-1","8.1.1-2","8.1.1-2ubuntu0.1","8.1.1-2ubuntu0.2","8.1.1-2ubuntu0.4","8.1.1-2ubuntu0.6","8.1.1-2ubuntu0.6+esm2","8.1.1-2ubuntu0.6+esm3","8.1.1-2ubuntu0.6+esm4","8.1.1-2ubuntu0.6+esm5","8.1.1-2ubuntu0.6+esm6","8.1.1-2ubuntu0.6+esm8","8.1.1-2ubuntu0.6+esm10","8.1.1-2ubuntu0.6+esm11","8.1.1-2ubuntu0.6+esm12"],"ecosystem_specific":{"binaries":[{"binary_version":"8.1.1-2ubuntu0.6+esm12","binary_name":"python-pip"},{"binary_version":"8.1.1-2ubuntu0.6+esm12","binary_name":"python-pip-whl"},{"binary_version":"8.1.1-2ubuntu0.6+esm12","binary_name":"python3-pip"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-18074.json"}},{"package":{"name":"python-pip","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/python-pip@9.0.1-2.3~ubuntu1.18.04.2?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.0.1-2.3~ubuntu1.18.04.2"}]}],"versions":["9.0.1-2","9.0.1-2.3~ubuntu1","9.0.1-2.3~ubuntu1.18.04.1"],"ecosystem_specific":{"binaries":[{"binary_version":"9.0.1-2.3~ubuntu1.18.04.2","binary_name":"python-pip"},{"binary_version":"9.0.1-2.3~ubuntu1.18.04.2","binary_name":"python-pip-whl"},{"binary_version":"9.0.1-2.3~ubuntu1.18.04.2","binary_name":"python3-pip"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-18074.json"}},{"package":{"name":"requests","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/requests@2.18.4-2ubuntu0.1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.18.4-2ubuntu0.1"}]}],"versions":["2.18.1-1","2.18.4-1","2.18.4-2"],"ecosystem_specific":{"binaries":[{"binary_version":"2.18.4-2ubuntu0.1","binary_name":"python-requests"},{"binary_version":"2.18.4-2ubuntu0.1","binary_name":"python3-requests"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-18074.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"},{"type":"Ubuntu","score":"medium"}]}