CVE-2023-25578: Starlite Denial of Service Vulnerability
HIGHCVE-2023-25578 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Starlite libraries in the PyPI ecosystem. The issue involves denial of service vulnerability when parsing multipart request body. Remediation is available by upgrading affected packages to version 1.51.2.
CVE-2023-25578 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2023-25578
To remediate this vulnerability, upgrade all affected Starlite dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install starlite>=1.51.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show starlite
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2023-25578, inspect your installed packages using pip:
pip show starlite
Analyze the terminal output to locate any version of Starlite in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.51.2), your application is affected.
Note: The pip show starlite command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Starlite, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-25578 Affected Starlite Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
starlite
|
PyPI |
< 1.51.2
|
1.51.2
|
References
Frequently Asked Questions
What is CVE-2023-25578?
Which Starlite versions are affected?
What version fixes CVE-2023-25578?
Is starlite affected?
What is the CVSS score of CVE-2023-25578?
What CWE is associated with CVE-2023-25578?
How can I check PyPI dependencies for CVE-2023-25578?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-p24m-863f-fm6q",
"modified" : "2024-10-28T14:38:20Z",
"published" : "2023-02-15T17:42:42Z",
"aliases" : [ "CVE-2023-25578" ],
"summary" : "Denial of service vulnerability when parsing multipart request body",
"details" : "### Summary\n\nThe request body parsing in `starlite` allows a potentially unauthenticated\n attacker to consume a large amount of CPU time and RAM.\n\n### Details\n\nThe multipart body parser processes an unlimited number of file parts.\nThe multipart body parser processes an unlimited number of field parts.\n\n### Impact\n\nThis is a remote, potentially unauthenticated Denial of Service vulnerability.\n\nThis vulnerability affects applications with a request handler that accepts\n a `Body(media_type=RequestEncodingType.MULTI_PART)`.\n\nThe large amount of CPU time required for processing requests can block all\n available worker processes and significantly delay or slow down the processing\n of legitimate user requests.\nThe large amount of RAM accumulated while processing requests can lead to\n Out-Of-Memory kills.\nComplete DoS is achievable by sending many concurrent multipart requests in a\n loop.\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "starlite"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.51.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/starlite-api/starlite/security/advisories/GHSA-p24m-863f-fm6q"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-25578"
}, {
"type" : "WEB",
"url" : "https://github.com/starlite-api/starlite/commit/9674fe803628f986c03fe60769048cbc55b5bf83"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/starlite/PYSEC-2023-49.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/starlite-api/starlite"
}, {
"type" : "WEB",
"url" : "https://github.com/starlite-api/starlite/releases/tag/v1.51.2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400", "CWE-770" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-02-15T17:42:42Z",
"nvd_published_at" : "2023-02-15T15:15:00Z"
}
}