http.cookiejar.DefaultPolicy.domain_return_ok in Lib/http/cookiejar.py in Python before 3.7.3 does not correctly validate the domain: it can
Noroxi assessment
Priority: Monitor (action score 18/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 3.6% (FIRST EPSS); higher than 89.4% of all records.
- Anyone who can reach it over the internet can trigger it. No account or password is required. A user must open a link or visit a page. No special conditions are required; it is repeatable.
- Fixed version: python-psycopg2-doc (AlmaLinux:8) 2.7.5-7.module_el8.6.0+2781+fed64c13; python2-attrs (AlmaLinux:8) 17.4.0-10.module_el8.6.0+2781+fed64c13; python2-chardet (AlmaLinux:8) 3.0.4-10.module_el8.6.0+2781+fed64c13.
- Mentioned 4 times in Turkish national cyber security advisories (siberguvenlik.gov.tr).
Low priority for now. Upgrade to python-psycopg2-doc (AlmaLinux:8) 2.7.5-7.module_el8.6.0+2781+fed64c13; python2-attrs (AlmaLinux:8) 17.4.0-10.module_el8.6.0+2781+fed64c13; python2-chardet (AlmaLinux:8) 3.0.4-10.module_el8.6.0+2781+fed64c13 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
http.cookiejar.DefaultPolicy.domain_return_ok in Lib/http/cookiejar.py in Python before 3.7.3 does not correctly validate the domain: it can be tricked into sending existing cookies to the wrong server. An attacker may abuse this flaw by using a server with a hostname that has another valid hostname as a suffix (e.g., pythonicexample.com to steal cookies for example.com). When a program uses http.cookiejar.DefaultPolicy and tries to do an HTTP connection to an attacker-controlled server, existing cookies can be leaked to the attacker. This affects 2.x through 2.7.16, 3.x before 3.4.10, 3.5.x before 3.5.7, 3.6.x before 3.6.9, and 3.7.x before 3.7.3.
- BDU:2021-00373
- ALSA-2020:1605
- DLA-1889-1
- DLA-1906-1
- DLA-2280-1
- DLA-2337-1
- openSUSE-SU-2019:1988-1
- openSUSE-SU-2019:1989-1
- openSUSE-SU-2020:0086-1
- openSUSE-SU-2024:11284-1
- RHSA-2019:3725
- RHSA-2019:3948
- RHSA-2020:1131
- RHSA-2020:1132
- RHSA-2020:1605
- RHSA-2020:1764
- RLSA-2020:1605
- SUSE-SU-2019:14142-1
- SUSE-SU-2019:2050-1
- SUSE-SU-2019:2091-1
- Published
- Jul 13, 2019
- Updated
- Oct 7, 2026
- EPSS
- 3.7% · 89th percentile
- CWE
- CWE-20
Report tools
Action score
18
Monitor
Low priority for now.
- CVSS
- 17 / 40 · 4.3 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 3.7%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
Vulnrichment: CISA's decision-tree inputs.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Running WordPress? Scan your site free with WP Lens
Noroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| python | python | cpe:2.3:a:python:python |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- python python2.0 and later · up to 2.7.16 inclusive
- python python3.0.0 and later · before 3.4.10
- python python3.5.0 and later · before 3.5.7
- python python3.6.0 and later · before 3.6.9
- python python3.7.0 and later · before 3.7.3
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:8 | python-psycopg2-doc | before 2.7.5-7.module_el8.6.0+2781+fed64c13 | 2.7.5-7.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-attrs | before 17.4.0-10.module_el8.6.0+2781+fed64c13 | 17.4.0-10.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-chardet | before 3.0.4-10.module_el8.6.0+2781+fed64c13 | 3.0.4-10.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-coverage | before 4.5.1-4.module_el8.6.0+2781+fed64c13 | 4.5.1-4.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-Cython | before 0.28.1-7.module_el8.6.0+2781+fed64c13 | 0.28.1-7.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-dns | before 1.15.0-10.module_el8.6.0+2781+fed64c13 | 1.15.0-10.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-docs | before 2.7.16-2.module_el8.6.0+2781+fed64c13 | 2.7.16-2.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-docs-info | before 2.7.16-2.module_el8.6.0+2781+fed64c13 | 2.7.16-2.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-docutils | before 0.14-12.module_el8.6.0+2781+fed64c13 | 0.14-12.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-funcsigs | before 1.0.2-13.module_el8.6.0+2781+fed64c13 | 1.0.2-13.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-idna | before 2.5-7.module_el8.6.0+2781+fed64c13 | 2.5-7.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-ipaddress | before 1.0.18-6.module_el8.6.0+2781+fed64c13 | 1.0.18-6.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-markupsafe | before 0.23-19.module_el8.6.0+2781+fed64c13 | 0.23-19.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-mock | before 2.0.0-13.module_el8.6.0+2781+fed64c13 | 2.0.0-13.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-pluggy | before 0.6.0-8.module_el8.6.0+2781+fed64c13 | 0.6.0-8.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-psycopg2 | before 2.7.5-7.module_el8.6.0+2781+fed64c13 | 2.7.5-7.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-psycopg2-debug | before 2.7.5-7.module_el8.6.0+2781+fed64c13 | 2.7.5-7.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-psycopg2-tests | before 2.7.5-7.module_el8.6.0+2781+fed64c13 | 2.7.5-7.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-py | before 1.5.3-6.module_el8.6.0+2781+fed64c13 | 1.5.3-6.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-PyMySQL | before 0.8.0-10.module_el8.6.0+2781+fed64c13 | 0.8.0-10.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-pysocks | before 1.6.8-6.module_el8.6.0+2781+fed64c13 | 1.6.8-6.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-pytest | before 3.4.2-13.module_el8.6.0+2781+fed64c13 | 3.4.2-13.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-pytest-mock | before 1.9.0-4.module_el8.6.0+2781+fed64c13 | 1.9.0-4.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-pytz | before 2017.2-12.module_el8.6.0+2781+fed64c13 | 2017.2-12.module_el8.6.0+2781+fed64c13 |
+96
Same product
python: all recordsOther highest-scoring records for the same primary product.
- CVE-2016-5636Integer overflow in the get_data function in zipimport.c in CPython (aka Python) before 2.7.12, 3.x before 3.4.5, and 3.5.x before 3.5.2 all47Plan
- CVE-2007-4559Directory traversal vulnerability in the (1) extract and (2) extractall functions in the tarfile module in Python allows user-assisted remot47Plan
- CVE-2021-3177Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr in _ctypes/callproc.c, which may lead to remote code execution in certain Pyth46Plan
- CVE-2014-4650The CGIHTTPServer module in Python 2.7.5 and 3.3.4 does not properly handle URLs in which URL encoding is used for path separators, which al46Plan
- CVE-2018-1000802Python Software Foundation Python (CPython) version 2.7 contains a CWE-77: Improper Neutralization of Special Elements used in a Command ('C45Plan
- CVE-2020-27619In Python 3 through 3.9.0, the Lib/test/multibytecodec_support.py CJK codec tests call eval() on content retrieved via HTTP.42Plan
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| almalinux:python-psycopg2-doc | 2.7.5-7.module_el8.6.0+2781+fed64c13 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python2-attrs | 17.4.0-10.module_el8.6.0+2781+fed64c13 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python2-chardet | 3.0.4-10.module_el8.6.0+2781+fed64c13 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python2-coverage | 4.5.1-4.module_el8.6.0+2781+fed64c13 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python2-Cython | 0.28.1-7.module_el8.6.0+2781+fed64c13 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python2-dns | 1.15.0-10.module_el8.6.0+2781+fed64c13 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python2-docs | 2.7.16-2.module_el8.6.0+2781+fed64c13 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python2-docs-info | 2.7.16-2.module_el8.6.0+2781+fed64c13 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python2-docutils | 0.14-12.module_el8.6.0+2781+fed64c13 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python2-funcsigs | 1.0.2-13.module_el8.6.0+2781+fed64c13 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python2-idna | 2.5-7.module_el8.6.0+2781+fed64c13 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python2-PyMySQL | 0.8.0-10.module_el8.6.0+2781+fed64c13 · AlmaLinux:8 | Package registry (OSV) |
| debian:python2.7 | 2.7.16-3 · Debian:11 | Package registry (OSV) |
| debian:python3.4 | 3.4.2-1+deb8u6 · Debian:8 | Package registry (OSV) |
| debian:python3.5 | 3.5.3-1+deb9u2 · Debian:9 | Package registry (OSV) |
| opensuse:python | 2.7.14-lp150.6.17.1 · openSUSE:Leap 15.0 | Package registry (OSV) |
| opensuse:python-base | 2.7.14-lp151.10.7.1 · openSUSE:Leap 15.1 | Package registry (OSV) |
| opensuse:python-doc | 2.7.14-lp151.10.7.1 · openSUSE:Leap 15.1 | Package registry (OSV) |
| opensuse:python3 | 3.6.10-lp151.6.7.1 · openSUSE:Leap 15.1 | Package registry (OSV) |
| opensuse:python3-base | 3.6.10-lp151.6.7.1 · openSUSE:Leap 15.1 | Package registry (OSV) |
| opensuse:python36 | 3.6.15-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| red hat:python27-python | 0:2.7.17-2.el6 · Red Hat:rhel_software_collections:3::el6 | Package registry (OSV) |
| red hat:python27-python-debug | 0:2.7.17-2.el6 · Red Hat:rhel_software_collections:3::el6 | Package registry (OSV) |
| red hat:python27-python-debuginfo | 0:2.7.17-2.el6 · Red Hat:rhel_software_collections:3::el6 | Package registry (OSV) |
| red hat:python27-python-devel | 0:2.7.17-2.el6 · Red Hat:rhel_software_collections:3::el6 | Package registry (OSV) |
| red hat:rh-python36-python | 0:3.6.9-2.el6 · Red Hat:rhel_software_collections:3::el6 | Package registry (OSV) |
| red hat:rh-python36-python-debug | 0:3.6.9-2.el6 · Red Hat:rhel_software_collections:3::el6 | Package registry (OSV) |
| red hat:rh-python36-python-debuginfo | 0:3.6.9-2.el6 · Red Hat:rhel_software_collections:3::el6 | Package registry (OSV) |
| red hat:rh-python36-python-devel | 0:3.6.9-2.el6 · Red Hat:rhel_software_collections:3::el6 | Package registry (OSV) |
| red hat:rh-python36-python-libs | 0:3.6.9-2.el6 · Red Hat:rhel_software_collections:3::el6 | Package registry (OSV) |
+22
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
National notice (Türkiye Cybersecurity Directorate / USOM)
Official security notices citing this record; remediation advice is on the agency's page.
- TR-20-905 · Oct 30, 2020(OpenShift Güvenlik Güncellemesi)
- TR-20-773 · Sep 22, 2020(Python için Güvenlik Güncellemeleri Yayınladı)
- TR-20-535 · Jul 16, 2020(Python için Güvenlik Güncellemeleri Yayınladı)
- TR-20-189 · Apr 1, 2020(Red Hat Enterprise Linux 7 Güvenlik Güncellemesi)
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- A user must open a link or visit a page.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- low · data can be read
- Integrity
- none
- Availability
- none
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality impact
- Low
- Integrity impact
- None
- Availability impact
- None
Weakness class (CWE)
CWE-20 · Improper Input ValidationCVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
nvd-secondary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Buffer Overflow via Environment VariablesCAPEC-10likelihood: High · High
- Server Side Include (SSI) InjectionCAPEC-101likelihood: High · High
- Cross Zone ScriptingCAPEC-104likelihood: Medium · High
- Command Line Execution through SQL InjectionCAPEC-108likelihood: Low · Very High
- Object Relational Mapping InjectionCAPEC-109likelihood: Low · High
- SQL Injection through SOAP Parameter TamperingCAPEC-110likelihood: High · Very High
- Double EncodingCAPEC-120likelihood: Low · Medium
- Subverting Environment Variable ValuesCAPEC-13likelihood: High · Very High
ATT&CK techniques
- Obfuscated Files or InformationT1027
- Masquerading: Invalid Code SignatureT1036.001
- Steal Web Session CookieT1539
- Subvert Trust Controls: Code SigningT1553.002
- Impair Defenses:Impair Command History LoggingT1562.003
- Hijack Execution Flow:Dynamic Linker HijackingT1574.006
- Hijack Execution Flow:Path Interception by PATH Environment VariableT1574.007
Change log
- CVSS5.3 → 4.3
- SSVC exploitation— → none
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (16 more)Show less
- lists.opensuse.org/opensuse-security-announce/2019-08/msg00074.html
- lists.opensuse.org/opensuse-security-announce/2020-01/msg00040.html
- access.redhat.com/errata/RHSA-2019:3725
- access.redhat.com/errata/RHSA-2019:3948
- lists.debian.org/debian-lts-announce/2019/08/msg00022.html
- lists.debian.org/debian-lts-announce/2019/08/msg00040.html
- lists.debian.org/debian-lts-announce/2020/07/msg00011.html
- lists.debian.org/debian-lts-announce/2020/08/msg00034.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/COATURTCY7G67AYI6UDV5B2JZTBCKIDX/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/K7HNVIFMETMFWWWUNTB72KYJYXCZOS5V/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZBTGPBUABGXZ7WH7677OEM3NSP6ZEA76/
- python-security.readthedocs.io/vuln/cookie-domain-check.html
- security.gentoo.org/glsa/202003-26
- usn.ubuntu.com/4127-1/
- usn.ubuntu.com/4127-2/
- www.oracle.com/security-alerts/cpuapr2020.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.