UBUNTU-CVE-2025-54121

Source
https://ubuntu.com/security/CVE-2025-54121
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-54121.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2025-54121
Upstream
Published
2025-07-21T20:15:00Z
Modified
2025-07-24T05:06:53Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

Starlette is a lightweight ASGI (Asynchronous Server Gateway Interface) framework/toolkit, designed for building async web services in Python. In versions 0.47.1 and below, when parsing a multi-part form with large files (greater than the default max spool size) starlette will block the main thread to roll the file over to disk. This blocks the event thread which means the application can't accept new connections. The UploadFile code has a minor bug where instead of just checking for self.inmemory, the logic should also check if the additional bytes will cause a rollover. The vulnerability is fixed in version 0.47.2.

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

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

Ubuntu:25.04 / starlette

Package

Name
starlette
Purl
pkg:deb/ubuntu/starlette@0.46.1-2?arch=source&distro=plucky

Affected ranges

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

Affected versions

0.*

0.38.5-0ubuntu1
0.41.3-2
0.46.1-2