Bug 2211689 - CVE-2023-30798 python-starlette: excessive memory usage [fedora-37]
Summary: CVE-2023-30798 python-starlette: excessive memory usage [fedora-37]
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: python-starlette
Version: 37
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Ben Beasley
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: CVE-2023-30798
TreeView+ depends on / blocked
 
Reported: 2023-06-01 13:55 UTC by Marian Rehak
Modified: 2023-06-06 14:24 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-06-06 14:24:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Marian Rehak 2023-06-01 13:55:27 UTC
More information about this security flaw is available in the following bug:

http://bugzilla.redhat.com/show_bug.cgi?id=2211688

Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

Comment 1 Marian Rehak 2023-06-01 13:55:30 UTC
Use the following template to for the 'fedpkg update' request to submit an
update for this issue as it contains the top-level parent bug(s) as well as
this tracking bug.  This will ensure that all associated bugs get updated
when new packages are pushed to stable.

=====

# bugfix, security, enhancement, newpackage (required)
type=security

# low, medium, high, urgent (required)
severity=medium

# testing, stable
request=testing

# Bug numbers: 1234,9876
bugs=2211688,2211689

# Description of your update
notes=Security fix for [PUT CVEs HERE]

# Enable request automation based on the stable/unstable karma thresholds
autokarma=True
stable_karma=3
unstable_karma=-3

# Automatically close bugs when this marked as stable
close_bugs=True

# Suggest that users restart after update
suggest_reboot=False

======

Additionally, you may opt to use the bodhi web interface to submit updates:

https://bodhi.fedoraproject.org/updates/new

Comment 2 Ben Beasley 2023-06-02 00:58:59 UTC
Updating Starlette will not be possible. It regularly breaks API in minor versions, and FastAPI (which does the same) is tightly coupled to its implementation details. Furthermore, both have rather strict requirements on the versions of their dependencies.

Backporting the commit that adds limits to mitigate this CVE might be possible. I will have to investigate.

https://github.com/encode/starlette/commit/8c74c2c8dba7030154f8af18e016136bea1938fa

Comment 3 Ben Beasley 2023-06-06 14:24:29 UTC
The fix touches code that was refactored in https://github.com/encode/starlette/commit/c568b55dff8be94b9c917e186e512ab53d7310e1. I think the level of effort and the risk of introducing new regressions are therefore both too high to consider backporting the mitigation.

Users who might be affected by CVE-2023-30798 should consider upgrading to Fedora 38, which has a version of Starlette that does contain the mitigation.


Note You need to log in before you can comment on or make changes to this bug.