Action not permitted
Modal body text goes here.
Modal Title
Modal Body
GHSA-FJ7X-Q9J7-G6Q6
Vulnerability from github – Published: 2024-03-19 06:30 – Updated: 2024-03-20 15:24Versions of the package black before 24.3.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the lines_with_leading_tabs_expanded function in the strings.py file. An attacker could exploit this vulnerability by crafting a malicious input that causes a denial of service.
Exploiting this vulnerability is possible when running Black on untrusted input, or if you habitually put thousands of leading tab characters in your docstrings.
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "black"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "24.3.0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2024-21503"
],
"database_specific": {
"cwe_ids": [
"CWE-1333",
"CWE-75"
],
"github_reviewed": true,
"github_reviewed_at": "2024-03-20T15:24:01Z",
"nvd_published_at": "2024-03-19T05:15:09Z",
"severity": "MODERATE"
},
"details": "Versions of the package black before 24.3.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the lines_with_leading_tabs_expanded function in the strings.py file. An attacker could exploit this vulnerability by crafting a malicious input that causes a denial of service.\n\nExploiting this vulnerability is possible when running Black on untrusted input, or if you habitually put thousands of leading tab characters in your docstrings.",
"id": "GHSA-fj7x-q9j7-g6q6",
"modified": "2024-03-20T15:24:01Z",
"published": "2024-03-19T06:30:52Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-21503"
},
{
"type": "WEB",
"url": "https://github.com/psf/black/commit/f00093672628d212b8965a8993cee8bedf5fe9b8"
},
{
"type": "PACKAGE",
"url": "https://github.com/psf/black"
},
{
"type": "WEB",
"url": "https://github.com/psf/black/releases/tag/24.3.0"
},
{
"type": "WEB",
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/black/PYSEC-2024-48.yaml"
},
{
"type": "WEB",
"url": "https://security.snyk.io/vuln/SNYK-PYTHON-BLACK-6256273"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L",
"type": "CVSS_V3"
}
],
"summary": "Black vulnerable to Regular Expression Denial of Service (ReDoS)"
}
BREW-ANSIBLE-LINT-CVE-20… (GHSA-FJ7X-Q9J7-G6Q6)
Vulnerability from osv_homebrew – Published: 2026-08-13 16:35 – Updated: 2026-10-09 09:14 – Source websiteVersions of the package black before 24.3.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the lines_with_leading_tabs_expanded function in the strings.py file. An attacker could exploit this vulnerability by crafting a malicious input that causes a denial of service.
Exploiting this vulnerability is possible when running Black on untrusted input, or if you habitually put thousands of leading tab characters in your docstrings.
{
"affected": [
{
"ecosystem_specific": {
"fix": "bump",
"range_state": "fixed",
"resource": "black",
"resource_purl": "pkg:pypi/black@26.10.0",
"upstream_fixed_in": "24.3.0"
},
"package": {
"ecosystem": "Homebrew",
"name": "ansible-lint",
"purl": "pkg:brew/ansible-lint"
},
"ranges": [
{
"events": [
{
"introduced": "6.5.2"
},
{
"fixed": "6.8.7"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"database_specific": {
"confidence": "high",
"source": "matched",
"strategy": "registry",
"upstream_evidence": [
{
"ecosystem": "PyPI",
"key": "pkg:pypi/black@26.10.0",
"name": "black",
"resource": "black",
"strategy": "registry",
"subject_version": "26.10.0"
}
]
},
"details": "Versions of the package black before 24.3.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the lines_with_leading_tabs_expanded function in the strings.py file. An attacker could exploit this vulnerability by crafting a malicious input that causes a denial of service.\n\nExploiting this vulnerability is possible when running Black on untrusted input, or if you habitually put thousands of leading tab characters in your docstrings.",
"id": "BREW-ansible-lint-CVE-2024-21503",
"modified": "2026-10-09T09:14:42Z",
"published": "2026-08-13T16:35:16Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-21503"
},
{
"type": "WEB",
"url": "https://github.com/psf/black/commit/f00093672628d212b8965a8993cee8bedf5fe9b8"
},
{
"type": "PACKAGE",
"url": "https://github.com/psf/black"
},
{
"type": "WEB",
"url": "https://github.com/psf/black/releases/tag/24.3.0"
},
{
"type": "WEB",
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/black/PYSEC-2024-48.yaml"
},
{
"type": "WEB",
"url": "https://security.snyk.io/vuln/SNYK-PYTHON-BLACK-6256273"
}
],
"schema_version": "1.7.3",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L",
"type": "CVSS_V3"
}
],
"summary": "Black vulnerable to Regular Expression Denial of Service (ReDoS)",
"upstream": [
"GHSA-fj7x-q9j7-g6q6",
"CVE-2024-21503",
"PYSEC-2024-48"
]
}
BREW-BLACK-CVE-2024-21503 (CVE-2024-21503)
Vulnerability from osv_homebrew – Published: 2026-08-13 16:38 – Updated: 2026-10-12 09:27 – Source websiteVersions of the package black before 24.3.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the lines_with_leading_tabs_expanded function in the strings.py file. An attacker could exploit this vulnerability by crafting a malicious input that causes a denial of service.
Exploiting this vulnerability is possible when running Black on untrusted input, or if you habitually put thousands of leading tab characters in your docstrings.
{
"affected": [
{
"ecosystem_specific": {
"fix": "bump",
"range_state": "fixed",
"upstream_fixed_in": "24.3.0"
},
"package": {
"ecosystem": "Homebrew",
"name": "black",
"purl": "pkg:brew/black"
},
"ranges": [
{
"events": [
{
"introduced": "18.6b4"
},
{
"fixed": "24.3.0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"database_specific": {
"confidence": "high",
"source": "matched",
"strategy": "git",
"upstream_evidence": [
{
"ecosystem": "GIT",
"key": "https://github.com/psf/black",
"name": "https://github.com/psf/black",
"strategy": "git",
"subject_version": "26.10.1"
},
{
"ecosystem": "PyPI",
"key": "pkg:pypi/black@26.10.1",
"name": "black",
"strategy": "registry",
"subject_version": "26.10.1"
},
{
"ecosystem": "Debian",
"key": "Debian/black",
"name": "black",
"strategy": "distro"
},
{
"ecosystem": "GIT",
"key": "upstream:https://github.com/psf/black",
"name": "https://github.com/psf/black",
"strategy": "distro",
"subject_version": "26.10.1"
},
{
"ecosystem": "PyPI",
"key": "upstream:pkg:pypi/black@26.10.1",
"name": "black",
"strategy": "distro",
"subject_version": "26.10.1"
},
{
"ecosystem": "Ubuntu",
"key": "Ubuntu/black",
"name": "black",
"strategy": "distro"
}
]
},
"details": "Versions of the package black before 24.3.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the lines_with_leading_tabs_expanded function in the strings.py file. An attacker could exploit this vulnerability by crafting a malicious input that causes a denial of service.\r\rExploiting this vulnerability is possible when running Black on untrusted input, or if you habitually put thousands of leading tab characters in your docstrings.",
"id": "BREW-black-CVE-2024-21503",
"modified": "2026-10-12T09:27:20Z",
"published": "2026-08-13T16:38:09Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/psf/black/releases/tag/24.3.0"
},
{
"type": "WEB",
"url": "https://security.snyk.io/vuln/SNYK-PYTHON-BLACK-6256273"
},
{
"type": "ADVISORY",
"url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21503.json"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-21503"
},
{
"type": "FIX",
"url": "https://github.com/psf/black/commit/f00093672628d212b8965a8993cee8bedf5fe9b8"
}
],
"schema_version": "1.7.3",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P",
"type": "CVSS_V3"
}
],
"upstream": [
"CVE-2024-21503",
"GHSA-fj7x-q9j7-g6q6",
"PYSEC-2024-48"
]
}
BREW-DARKER-CVE-2024-21503 (GHSA-FJ7X-Q9J7-G6Q6)
Vulnerability from osv_homebrew – Published: 2026-08-13 16:42 – Updated: 2026-09-10 19:04 – Source websiteVersions of the package black before 24.3.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the lines_with_leading_tabs_expanded function in the strings.py file. An attacker could exploit this vulnerability by crafting a malicious input that causes a denial of service.
Exploiting this vulnerability is possible when running Black on untrusted input, or if you habitually put thousands of leading tab characters in your docstrings.
| URL | Type | |||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||
{
"affected": [
{
"ecosystem_specific": {
"fix": "bump",
"range_state": "fixed",
"resource": "black",
"resource_purl": "pkg:pypi/black@26.5.1",
"upstream_fixed_in": "24.3.0"
},
"package": {
"ecosystem": "Homebrew",
"name": "darker",
"purl": "pkg:brew/darker"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "3.0.0_2"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"database_specific": {
"confidence": "high",
"source": "matched",
"strategy": "registry",
"upstream_evidence": [
{
"ecosystem": "PyPI",
"key": "pkg:pypi/black@26.5.1",
"name": "black",
"resource": "black",
"strategy": "registry",
"subject_version": "26.5.1"
}
]
},
"details": "Versions of the package black before 24.3.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the lines_with_leading_tabs_expanded function in the strings.py file. An attacker could exploit this vulnerability by crafting a malicious input that causes a denial of service.\n\nExploiting this vulnerability is possible when running Black on untrusted input, or if you habitually put thousands of leading tab characters in your docstrings.",
"id": "BREW-darker-CVE-2024-21503",
"modified": "2026-09-10T19:04:13Z",
"published": "2026-08-13T16:42:09Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-21503"
},
{
"type": "WEB",
"url": "https://github.com/psf/black/commit/f00093672628d212b8965a8993cee8bedf5fe9b8"
},
{
"type": "PACKAGE",
"url": "https://github.com/psf/black"
},
{
"type": "WEB",
"url": "https://github.com/psf/black/releases/tag/24.3.0"
},
{
"type": "WEB",
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/black/PYSEC-2024-48.yaml"
},
{
"type": "WEB",
"url": "https://security.snyk.io/vuln/SNYK-PYTHON-BLACK-6256273"
}
],
"schema_version": "1.7.3",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L",
"type": "CVSS_V3"
}
],
"summary": "Black vulnerable to Regular Expression Denial of Service (ReDoS)",
"upstream": [
"GHSA-fj7x-q9j7-g6q6",
"CVE-2024-21503",
"PYSEC-2024-48"
]
}
BREW-PYTHON-LSP-SERVER-C… (GHSA-FJ7X-Q9J7-G6Q6)
Vulnerability from osv_homebrew – Published: 2026-08-13 17:29 – Updated: 2026-09-10 01:01 – Source websiteVersions of the package black before 24.3.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the lines_with_leading_tabs_expanded function in the strings.py file. An attacker could exploit this vulnerability by crafting a malicious input that causes a denial of service.
Exploiting this vulnerability is possible when running Black on untrusted input, or if you habitually put thousands of leading tab characters in your docstrings.
| URL | Type | |||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||
{
"affected": [
{
"ecosystem_specific": {
"fix": "bump",
"range_state": "fixed",
"resource": "black",
"resource_purl": "pkg:pypi/black@26.5.1",
"upstream_fixed_in": "24.3.0"
},
"package": {
"ecosystem": "Homebrew",
"name": "python-lsp-server",
"purl": "pkg:brew/python-lsp-server"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.15.0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"database_specific": {
"confidence": "high",
"source": "matched",
"strategy": "registry",
"upstream_evidence": [
{
"ecosystem": "PyPI",
"key": "pkg:pypi/black@26.5.1",
"name": "black",
"resource": "black",
"strategy": "registry",
"subject_version": "26.5.1"
}
]
},
"details": "Versions of the package black before 24.3.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the lines_with_leading_tabs_expanded function in the strings.py file. An attacker could exploit this vulnerability by crafting a malicious input that causes a denial of service.\n\nExploiting this vulnerability is possible when running Black on untrusted input, or if you habitually put thousands of leading tab characters in your docstrings.",
"id": "BREW-python-lsp-server-CVE-2024-21503",
"modified": "2026-09-10T01:01:31Z",
"published": "2026-08-13T17:29:47Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-21503"
},
{
"type": "WEB",
"url": "https://github.com/psf/black/commit/f00093672628d212b8965a8993cee8bedf5fe9b8"
},
{
"type": "PACKAGE",
"url": "https://github.com/psf/black"
},
{
"type": "WEB",
"url": "https://github.com/psf/black/releases/tag/24.3.0"
},
{
"type": "WEB",
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/black/PYSEC-2024-48.yaml"
},
{
"type": "WEB",
"url": "https://security.snyk.io/vuln/SNYK-PYTHON-BLACK-6256273"
}
],
"schema_version": "1.7.3",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L",
"type": "CVSS_V3"
}
],
"summary": "Black vulnerable to Regular Expression Denial of Service (ReDoS)",
"upstream": [
"GHSA-fj7x-q9j7-g6q6",
"CVE-2024-21503",
"PYSEC-2024-48"
]
}
BREW-SNAKEFMT-CVE-2024-21503 (GHSA-FJ7X-Q9J7-G6Q6)
Vulnerability from osv_homebrew – Published: 2026-08-13 17:34 – Updated: 2026-10-12 18:43 – Source websiteVersions of the package black before 24.3.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the lines_with_leading_tabs_expanded function in the strings.py file. An attacker could exploit this vulnerability by crafting a malicious input that causes a denial of service.
Exploiting this vulnerability is possible when running Black on untrusted input, or if you habitually put thousands of leading tab characters in your docstrings.
| URL | Type | |||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||
{
"affected": [
{
"ecosystem_specific": {
"fix": "bump",
"range_state": "fixed",
"resource": "black",
"resource_purl": "pkg:pypi/black@26.10.1",
"upstream_fixed_in": "24.3.0"
},
"package": {
"ecosystem": "Homebrew",
"name": "snakefmt",
"purl": "pkg:brew/snakefmt"
},
"ranges": [
{
"events": [
{
"introduced": "0.10.0"
},
{
"fixed": "0.10.0_1"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"database_specific": {
"confidence": "high",
"source": "matched",
"strategy": "registry",
"upstream_evidence": [
{
"ecosystem": "PyPI",
"key": "pkg:pypi/black@26.10.1",
"name": "black",
"resource": "black",
"strategy": "registry",
"subject_version": "26.10.1"
}
]
},
"details": "Versions of the package black before 24.3.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the lines_with_leading_tabs_expanded function in the strings.py file. An attacker could exploit this vulnerability by crafting a malicious input that causes a denial of service.\n\nExploiting this vulnerability is possible when running Black on untrusted input, or if you habitually put thousands of leading tab characters in your docstrings.",
"id": "BREW-snakefmt-CVE-2024-21503",
"modified": "2026-10-12T18:43:11Z",
"published": "2026-08-13T17:34:41Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-21503"
},
{
"type": "WEB",
"url": "https://github.com/psf/black/commit/f00093672628d212b8965a8993cee8bedf5fe9b8"
},
{
"type": "PACKAGE",
"url": "https://github.com/psf/black"
},
{
"type": "WEB",
"url": "https://github.com/psf/black/releases/tag/24.3.0"
},
{
"type": "WEB",
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/black/PYSEC-2024-48.yaml"
},
{
"type": "WEB",
"url": "https://security.snyk.io/vuln/SNYK-PYTHON-BLACK-6256273"
}
],
"schema_version": "1.7.3",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L",
"type": "CVSS_V3"
}
],
"summary": "Black vulnerable to Regular Expression Denial of Service (ReDoS)",
"upstream": [
"GHSA-fj7x-q9j7-g6q6",
"CVE-2024-21503",
"PYSEC-2024-48"
]
}
CVE-2024-21503 (GCVE-0-2024-21503)
Vulnerability from cvelistv5 – Published: 2024-03-19 05:00 – Updated: 2024-08-01 22:20| Vendor | Product | Version | |
|---|---|---|---|
| n/a | black |
Affected:
0 , < 24.3.0
(semver)
|
|
| python_software_foundation | black |
Affected:
0 , < 24.3.0
(custom)
cpe:2.3:a:python_software_foundation:black:*:*:*:*:*:*:*:* |
{
"containers": {
"adp": [
{
"affected": [
{
"cpes": [
"cpe:2.3:a:python_software_foundation:black:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unknown",
"product": "black",
"vendor": "python_software_foundation",
"versions": [
{
"lessThan": "24.3.0",
"status": "affected",
"version": "0",
"versionType": "custom"
}
]
}
],
"metrics": [
{
"other": {
"content": {
"id": "CVE-2024-21503",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2024-03-19T13:35:33.402362Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-75",
"description": "CWE-75 Failure to Sanitize Special Elements into a Different Plane (Special Element Injection)",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2024-06-20T21:14:49.619Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
},
{
"providerMetadata": {
"dateUpdated": "2024-08-01T22:20:40.916Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"tags": [
"x_transferred"
],
"url": "https://security.snyk.io/vuln/SNYK-PYTHON-BLACK-6256273"
},
{
"tags": [
"x_transferred"
],
"url": "https://github.com/psf/black/releases/tag/24.3.0"
},
{
"tags": [
"x_transferred"
],
"url": "https://github.com/psf/black/commit/f00093672628d212b8965a8993cee8bedf5fe9b8"
}
],
"title": "CVE Program Container"
}
],
"cna": {
"affected": [
{
"product": "black",
"vendor": "n/a",
"versions": [
{
"lessThan": "24.3.0",
"status": "affected",
"version": "0",
"versionType": "semver"
}
]
}
],
"credits": [
{
"lang": "en",
"value": "Sajeeb Lohani"
}
],
"descriptions": [
{
"lang": "en",
"value": "Versions of the package black before 24.3.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the lines_with_leading_tabs_expanded function in the strings.py file. An attacker could exploit this vulnerability by crafting a malicious input that causes a denial of service.\r\rExploiting this vulnerability is possible when running Black on untrusted input, or if you habitually put thousands of leading tab characters in your docstrings."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "LOW",
"baseScore": 5.3,
"baseSeverity": "MEDIUM",
"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:L/E:P",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-1333",
"description": "Regular Expression Denial of Service (ReDoS)",
"lang": "en"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2024-03-19T05:00:01.474Z",
"orgId": "bae035ff-b466-4ff4-94d0-fc9efd9e1730",
"shortName": "snyk"
},
"references": [
{
"url": "https://security.snyk.io/vuln/SNYK-PYTHON-BLACK-6256273"
},
{
"url": "https://github.com/psf/black/releases/tag/24.3.0"
},
{
"url": "https://github.com/psf/black/commit/f00093672628d212b8965a8993cee8bedf5fe9b8"
}
]
}
},
"cveMetadata": {
"assignerOrgId": "bae035ff-b466-4ff4-94d0-fc9efd9e1730",
"assignerShortName": "snyk",
"cveId": "CVE-2024-21503",
"datePublished": "2024-03-19T05:00:01.474Z",
"dateReserved": "2023-12-22T12:33:20.119Z",
"dateUpdated": "2024-08-01T22:20:40.916Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.1"
}
PYSEC-2024-48
Vulnerability from pysec - Published: 2024-03-19 05:15 - Updated: 2024-03-19 11:18Versions of the package black before 24.3.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the lines_with_leading_tabs_expanded function in the strings.py file. An attacker could exploit this vulnerability by crafting a malicious input that causes a denial of service.
Exploiting this vulnerability is possible when running Black on untrusted input, or if you habitually put thousands of leading tab characters in your docstrings.
| Name | purl | black | pkg:pypi/black |
|---|
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "black",
"purl": "pkg:pypi/black"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "f00093672628d212b8965a8993cee8bedf5fe9b8"
}
],
"repo": "https://github.com/psf/black",
"type": "GIT"
},
{
"events": [
{
"introduced": "0"
},
{
"fixed": "24.3.0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"18.3a0",
"18.3a1",
"18.3a2",
"18.3a3",
"18.3a4",
"18.4a0",
"18.4a1",
"18.4a2",
"18.4a3",
"18.4a4",
"18.5b0",
"18.5b1",
"18.6b0",
"18.6b1",
"18.6b2",
"18.6b3",
"18.6b4",
"18.9b0",
"19.10b0",
"19.3b0",
"20.8b0",
"20.8b1",
"21.10b0",
"21.11b0",
"21.11b1",
"21.12b0",
"21.4b0",
"21.4b1",
"21.4b2",
"21.5b0",
"21.5b1",
"21.5b2",
"21.6b0",
"21.7b0",
"21.8b0",
"21.9b0",
"22.1.0",
"22.10.0",
"22.12.0",
"22.3.0",
"22.6.0",
"22.8.0",
"23.1.0",
"23.10.0",
"23.10.1",
"23.11.0",
"23.12.0",
"23.12.1",
"23.1a1",
"23.3.0",
"23.7.0",
"23.9.0",
"23.9.1",
"24.1.0",
"24.1.1",
"24.1a1",
"24.2.0"
]
}
],
"aliases": [
"CVE-2024-21503",
"GHSA-fj7x-q9j7-g6q6"
],
"details": "Versions of the package black before 24.3.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the lines_with_leading_tabs_expanded function in the strings.py file. An attacker could exploit this vulnerability by crafting a malicious input that causes a denial of service.\r\rExploiting this vulnerability is possible when running Black on untrusted input, or if you habitually put thousands of leading tab characters in your docstrings.",
"id": "PYSEC-2024-48",
"modified": "2024-03-19T11:18:50.379002+00:00",
"published": "2024-03-19T05:15:00+00:00",
"references": [
{
"type": "WEB",
"url": "https://security.snyk.io/vuln/SNYK-PYTHON-BLACK-6256273"
},
{
"type": "WEB",
"url": "https://github.com/psf/black/releases/tag/24.3.0"
},
{
"type": "FIX",
"url": "https://github.com/psf/black/commit/f00093672628d212b8965a8993cee8bedf5fe9b8"
},
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-fj7x-q9j7-g6q6"
}
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.