gsd-2020-6817
Vulnerability from gsd
Modified
2023-12-13 01:21
Details
bleach.clean behavior parsing style attributes could result in a regular expression denial of service (ReDoS). Calls to bleach.clean with an allowed tag with an allowed style attribute are vulnerable to ReDoS. For example, bleach.clean(..., attributes={'a': ['style']}).
Aliases
Aliases
{
"GSD": {
"alias": "CVE-2020-6817",
"id": "GSD-2020-6817",
"references": [
"https://www.suse.com/security/cve/CVE-2020-6817.html",
"https://advisories.mageia.org/CVE-2020-6817.html"
]
},
"gsd": {
"metadata": {
"exploitCode": "unknown",
"remediation": "unknown",
"reportConfidence": "confirmed",
"type": "vulnerability"
},
"osvSchema": {
"aliases": [
"CVE-2020-6817"
],
"details": "bleach.clean behavior parsing style attributes could result in a regular expression denial of service (ReDoS). Calls to bleach.clean with an allowed tag with an allowed style attribute are vulnerable to ReDoS. For example, bleach.clean(..., attributes={\u0027a\u0027: [\u0027style\u0027]}).",
"id": "GSD-2020-6817",
"modified": "2023-12-13T01:21:54.784364Z",
"schema_version": "1.4.0"
}
},
"namespaces": {
"cve.org": {
"CVE_data_meta": {
"ASSIGNER": "security@mozilla.org",
"ID": "CVE-2020-6817",
"STATE": "PUBLIC"
},
"affects": {
"vendor": {
"vendor_data": [
{
"product": {
"product_data": [
{
"product_name": "Mozilla Bleach",
"version": {
"version_data": [
{
"version_affected": "\u003c",
"version_value": "3.1.4"
}
]
}
}
]
},
"vendor_name": "Mozilla"
}
]
}
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "eng",
"value": "bleach.clean behavior parsing style attributes could result in a regular expression denial of service (ReDoS). Calls to bleach.clean with an allowed tag with an allowed style attribute are vulnerable to ReDoS. For example, bleach.clean(..., attributes={\u0027a\u0027: [\u0027style\u0027]})."
}
]
},
"generator": {
"engine": "Vulnogram 0.0.9"
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "eng",
"value": "regular expression denial-of-service (ReDoS) in BleachSanitizerFilter.sanitize_css gauntlet regular expression "
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://github.com/mozilla/bleach/security/advisories/GHSA-vqhp-cxgc-6wmm",
"refsource": "MISC",
"url": "https://github.com/mozilla/bleach/security/advisories/GHSA-vqhp-cxgc-6wmm"
},
{
"name": "https://bugzilla.mozilla.org/show_bug.cgi?id=1623633",
"refsource": "MISC",
"url": "https://bugzilla.mozilla.org/show_bug.cgi?id=1623633"
}
]
},
"source": {
"discovery": "UNKNOWN"
}
},
"gitlab.com": {
"advisories": [
{
"affected_range": "\u003c3.1.4",
"affected_versions": "All versions before 3.1.4",
"cwe_ids": [
"CWE-1035",
"CWE-937"
],
"date": "2021-08-23",
"description": "### Impact\n\n`bleach.clean` behavior parsing style attributes could result in a regular expression denial of service .\n\nCalls to ``bleach.clean`` with an allowed tag with an allowed ``style`` attribute are vulnerable to ReDoS. For example, ``bleach.clean(..., attributes={\u0027a\u0027: \u0027style\u0027 Workarounds\n\n* do not allowlist the style attribute in `bleach.clean` calls\n\n* limit input string length\n\n### References\n\n* https://bugzilla.mozilla.org/show_bug.cgi?id=1623633\n* https://www.regular-expressions.info/redos.html\n* https://blog.r2c.dev/posts/finding-python-redos-bugs-at-scale-using-dlint-and-r2c/\n* https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-6817\n\n### Credits\n\n* Reported by schwag09 of r2c\n\n### For more information\nIf you have any questions or comments about this advisory:\n\n* Open an issue at https://github.com/mozilla/bleach/issues\n* Email us at security@mozilla.org",
"fixed_versions": [
"3.1.4"
],
"identifier": "GMS-2020-698",
"identifiers": [
"GHSA-vqhp-cxgc-6wmm",
"GMS-2020-698",
"CVE-2020-6817"
],
"not_impacted": "All versions starting from 3.1.4",
"package_slug": "pypi/bleach",
"pubdate": "2020-03-30",
"solution": "Upgrade to version 3.1.4 or above.",
"title": "regular expression denial-of-service in Bleach",
"urls": [
"https://github.com/mozilla/bleach/security/advisories/GHSA-vqhp-cxgc-6wmm",
"https://bugzilla.mozilla.org/show_bug.cgi?id=1623633",
"https://github.com/mozilla/bleach/releases/tag/v3.1.4",
"https://nvd.nist.gov/vuln/detail/CVE-2020-6817",
"https://snyk.io/vuln/SNYK-PYTHON-BLEACH-561754",
"https://github.com/advisories/GHSA-vqhp-cxgc-6wmm"
],
"uuid": "55a10afd-a2bb-4082-b092-81d2505527e3"
}
]
},
"nvd.nist.gov": {
"configurations": {
"CVE_data_version": "4.0",
"nodes": [
{
"children": [],
"cpe_match": [
{
"cpe23Uri": "cpe:2.3:a:mozilla:bleach:*:*:*:*:*:*:*:*",
"cpe_name": [],
"versionEndExcluding": "3.1.4",
"vulnerable": true
}
],
"operator": "OR"
}
]
},
"cve": {
"CVE_data_meta": {
"ASSIGNER": "security@mozilla.org",
"ID": "CVE-2020-6817"
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "en",
"value": "bleach.clean behavior parsing style attributes could result in a regular expression denial of service (ReDoS). Calls to bleach.clean with an allowed tag with an allowed style attribute are vulnerable to ReDoS. For example, bleach.clean(..., attributes={\u0027a\u0027: [\u0027style\u0027]})."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "en",
"value": "CWE-1333"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://github.com/mozilla/bleach/security/advisories/GHSA-vqhp-cxgc-6wmm",
"refsource": "MISC",
"tags": [
"Vendor Advisory"
],
"url": "https://github.com/mozilla/bleach/security/advisories/GHSA-vqhp-cxgc-6wmm"
},
{
"name": "https://bugzilla.mozilla.org/show_bug.cgi?id=1623633",
"refsource": "MISC",
"tags": [
"Exploit",
"Issue Tracking"
],
"url": "https://bugzilla.mozilla.org/show_bug.cgi?id=1623633"
}
]
}
},
"impact": {
"baseMetricV3": {
"cvssV3": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 7.5,
"baseSeverity": "HIGH",
"confidentialityImpact": "NONE",
"integrityImpact": "NONE",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"version": "3.1"
},
"exploitabilityScore": 3.9,
"impactScore": 3.6
}
},
"lastModifiedDate": "2023-02-28T14:46Z",
"publishedDate": "2023-02-16T22:15Z"
}
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…