UBUNTU-CVE-2024-47874

Source
https://ubuntu.com/security/CVE-2024-47874
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-47874.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2024-47874
Related
Published
2024-10-15T16:15:00Z
Modified
2025-01-13T10:26:23Z
Summary
[none]
Details

Starlette is an Asynchronous Server Gateway Interface (ASGI) framework/toolkit. Prior to version 0.40.0, Starlette 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. This Denial of service (DoS) vulnerability affects all applications built with Starlette (or FastAPI) accepting form requests. Verison 0.40.0 fixes this issue.

References

Affected packages

Ubuntu:22.04:LTS / starlette

Package

Name
starlette
Purl
pkg:deb/ubuntu/starlette@0.18.0-1?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.14.1-1
0.16.0-1
0.18.0-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.10 / starlette

Package

Name
starlette
Purl
pkg:deb/ubuntu/starlette@0.38.5-0ubuntu1?arch=source&distro=oracular

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.31.1-1
0.38.2-1
0.38.5-0ubuntu1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.04:LTS / starlette

Package

Name
starlette
Purl
pkg:deb/ubuntu/starlette@0.31.1-1?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.30.0-1
0.31.1-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}