Skip to content

Commit 979c48b

Browse files
author
github.actions
committed
Latest data: Wed Oct 16 08:05:33 UTC 2024
1 parent 5b3a358 commit 979c48b

22 files changed

+1622
-789
lines changed
Lines changed: 262 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,262 @@
1+
[
2+
{
3+
"package": {
4+
"name": "starlette",
5+
"version": "0.38.6",
6+
"ecosystem": "PyPI"
7+
},
8+
"dependency_groups": [
9+
"dstack-requirements"
10+
],
11+
"vulnerabilities": [
12+
{
13+
"modified": "2024-10-15T20:01:19Z",
14+
"published": "2024-10-15T18:12:57Z",
15+
"schema_version": "1.6.0",
16+
"id": "GHSA-f96h-pmfr-66vw",
17+
"aliases": [
18+
"CVE-2024-47874"
19+
],
20+
"summary": "Starlette Denial of service (DoS) via multipart/form-data",
21+
"details": "### Summary\nStarlette treats `multipart/form-data` parts without a `filename` as text form fields and buffers those in byte strings with no size limit. This allows an attacker to upload arbitrary large form fields and cause Starlette to both slow down significantly due to excessive memory allocations and copy operations, and also consume more and more memory until the server starts swapping and grinds to a halt, or the OS terminates the server process with an OOM error. Uploading multiple such requests in parallel may be enough to render a service practically unusable, even if reasonable request size limits are enforced by a reverse proxy in front of Starlette.\n\n### PoC\n\n```python\nfrom starlette.applications import Starlette\nfrom starlette.routing import Route\n\nasync def poc(request):\n async with request.form():\n pass\n\napp = Starlette(routes=[\n Route('/', poc, methods=[\"POST\"]),\n])\n```\n\n```sh\ncurl http://localhost:8000 -F 'big=</dev/urandom'\n```\n\n### Impact\nThis Denial of service (DoS) vulnerability affects all applications built with Starlette (or FastAPI) accepting form requests.\n",
22+
"affected": [
23+
{
24+
"package": {
25+
"ecosystem": "PyPI",
26+
"name": "starlette",
27+
"purl": "pkg:pypi/starlette"
28+
},
29+
"ranges": [
30+
{
31+
"type": "ECOSYSTEM",
32+
"events": [
33+
{
34+
"introduced": "0"
35+
},
36+
{
37+
"fixed": "0.40.0"
38+
}
39+
]
40+
}
41+
],
42+
"versions": [
43+
"0.1.0",
44+
"0.1.1",
45+
"0.1.10",
46+
"0.1.11",
47+
"0.1.12",
48+
"0.1.13",
49+
"0.1.14",
50+
"0.1.15",
51+
"0.1.16",
52+
"0.1.17",
53+
"0.1.2",
54+
"0.1.3",
55+
"0.1.4",
56+
"0.1.5",
57+
"0.1.6",
58+
"0.1.7",
59+
"0.1.8",
60+
"0.1.9",
61+
"0.10.0",
62+
"0.10.1",
63+
"0.10.2",
64+
"0.10.3",
65+
"0.10.4",
66+
"0.10.5",
67+
"0.10.6",
68+
"0.10.7",
69+
"0.11.0",
70+
"0.11.1",
71+
"0.11.2",
72+
"0.11.3",
73+
"0.11.4",
74+
"0.12.0",
75+
"0.12.0b1",
76+
"0.12.0b2",
77+
"0.12.0b3",
78+
"0.12.1",
79+
"0.12.10",
80+
"0.12.11",
81+
"0.12.12",
82+
"0.12.13",
83+
"0.12.2",
84+
"0.12.3",
85+
"0.12.4",
86+
"0.12.5",
87+
"0.12.6",
88+
"0.12.7",
89+
"0.12.8",
90+
"0.12.9",
91+
"0.13.0",
92+
"0.13.1",
93+
"0.13.2",
94+
"0.13.3",
95+
"0.13.4",
96+
"0.13.5",
97+
"0.13.6",
98+
"0.13.7",
99+
"0.13.8",
100+
"0.14.0",
101+
"0.14.1",
102+
"0.14.2",
103+
"0.15.0",
104+
"0.16.0",
105+
"0.17.0",
106+
"0.17.1",
107+
"0.18.0",
108+
"0.19.0",
109+
"0.19.1",
110+
"0.2.0",
111+
"0.2.1",
112+
"0.2.2",
113+
"0.2.3",
114+
"0.20.0",
115+
"0.20.1",
116+
"0.20.2",
117+
"0.20.3",
118+
"0.20.4",
119+
"0.21.0",
120+
"0.22.0",
121+
"0.23.0",
122+
"0.23.1",
123+
"0.24.0",
124+
"0.25.0",
125+
"0.26.0",
126+
"0.26.0.post1",
127+
"0.26.1",
128+
"0.27.0",
129+
"0.28.0",
130+
"0.29.0",
131+
"0.3.0",
132+
"0.3.1",
133+
"0.3.2",
134+
"0.3.3",
135+
"0.3.4",
136+
"0.3.5",
137+
"0.3.6",
138+
"0.3.7",
139+
"0.30.0",
140+
"0.31.0",
141+
"0.31.1",
142+
"0.32.0",
143+
"0.32.0.post1",
144+
"0.33.0",
145+
"0.34.0",
146+
"0.35.0",
147+
"0.35.1",
148+
"0.36.0",
149+
"0.36.1",
150+
"0.36.2",
151+
"0.36.3",
152+
"0.37.0",
153+
"0.37.1",
154+
"0.37.2",
155+
"0.38.0",
156+
"0.38.1",
157+
"0.38.2",
158+
"0.38.3",
159+
"0.38.4",
160+
"0.38.5",
161+
"0.38.6",
162+
"0.39.0",
163+
"0.39.1",
164+
"0.39.2",
165+
"0.4.0",
166+
"0.4.1",
167+
"0.4.2",
168+
"0.5.0",
169+
"0.5.1",
170+
"0.5.2",
171+
"0.5.3",
172+
"0.5.4",
173+
"0.5.5",
174+
"0.6.0",
175+
"0.6.1",
176+
"0.6.2",
177+
"0.6.3",
178+
"0.7.0",
179+
"0.7.1",
180+
"0.7.2",
181+
"0.7.3",
182+
"0.7.4",
183+
"0.8.0",
184+
"0.8.1",
185+
"0.8.2",
186+
"0.8.3",
187+
"0.8.4",
188+
"0.8.5",
189+
"0.8.6",
190+
"0.8.7",
191+
"0.8.8",
192+
"0.9.0",
193+
"0.9.1",
194+
"0.9.10",
195+
"0.9.11",
196+
"0.9.2",
197+
"0.9.3",
198+
"0.9.4",
199+
"0.9.5",
200+
"0.9.6",
201+
"0.9.7",
202+
"0.9.8",
203+
"0.9.9"
204+
],
205+
"database_specific": {
206+
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/10/GHSA-f96h-pmfr-66vw/GHSA-f96h-pmfr-66vw.json"
207+
}
208+
}
209+
],
210+
"severity": [
211+
{
212+
"type": "CVSS_V3",
213+
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N"
214+
},
215+
{
216+
"type": "CVSS_V4",
217+
"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"
218+
}
219+
],
220+
"references": [
221+
{
222+
"type": "WEB",
223+
"url": "https://github.com/encode/starlette/security/advisories/GHSA-f96h-pmfr-66vw"
224+
},
225+
{
226+
"type": "ADVISORY",
227+
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-47874"
228+
},
229+
{
230+
"type": "WEB",
231+
"url": "https://github.com/encode/starlette/commit/fd038f3070c302bff17ef7d173dbb0b007617733"
232+
},
233+
{
234+
"type": "PACKAGE",
235+
"url": "https://github.com/encode/starlette"
236+
}
237+
],
238+
"database_specific": {
239+
"cwe_ids": [
240+
"CWE-770"
241+
],
242+
"github_reviewed": true,
243+
"github_reviewed_at": "2024-10-15T18:12:57Z",
244+
"nvd_published_at": "2024-10-15T16:15:05Z",
245+
"severity": "HIGH"
246+
}
247+
}
248+
],
249+
"groups": [
250+
{
251+
"ids": [
252+
"GHSA-f96h-pmfr-66vw"
253+
],
254+
"aliases": [
255+
"CVE-2024-47874",
256+
"GHSA-f96h-pmfr-66vw"
257+
],
258+
"max_severity": "8.7"
259+
}
260+
]
261+
}
262+
]

0 commit comments

Comments
 (0)