Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 836841 (CVE-2022-24801) - <dev-python/twisted-22.4.0: possible http request smuggling
Summary: <dev-python/twisted-22.4.0: possible http request smuggling
Status: RESOLVED FIXED
Alias: CVE-2022-24801
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Security
URL: https://github.com/twisted/twisted/se...
Whiteboard: B4 [noglsa]
Keywords:
Depends on: 837845
Blocks:
  Show dependency tree
 
Reported: 2022-04-05 14:20 UTC by John Helmert III
Modified: 2022-05-17 14:41 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-04-05 14:20:55 UTC
CVE-2022-24801 (https://github.com/twisted/twisted/commit/592217e951363d60e9cd99c5bbfd23d4615043ac):

Twisted is an event-based framework for internet applications, supporting Python 3.6+. Prior to version 22.4.0rc1, the Twisted Web HTTP 1.1 server, located in the `twisted.web.http` module, parsed several HTTP request constructs more leniently than permitted by RFC 7230. This non-conformant parsing can lead to desync if requests pass through multiple HTTP parsers, potentially resulting in HTTP request smuggling. Users who may be affected use Twisted Web's HTTP 1.1 server and/or proxy and also pass requests through a different HTTP server and/or proxy. The Twisted Web client is not affected. The HTTP 2.0 server uses a different parser, so it is not affected. The issue has been addressed in Twisted 22.4.0rc1. Two workarounds are available: Ensure any vulnerabilities in upstream proxies have been addressed, such as by upgrading them; or filter malformed requests by other means, such as configuration of an upstream proxy.

Fixed in an rc but that's probably not a good stable candidate even if it was in-tree.
Comment 1 Larry the Git Cow gentoo-dev 2022-05-17 11:11:01 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d24ce8ba451e7cf0875fdbcb7901ae16d0c6fff7

commit d24ce8ba451e7cf0875fdbcb7901ae16d0c6fff7
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2022-05-17 10:40:03 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2022-05-17 10:40:06 +0000

    dev-python/twisted: Remove old
    
    Bug: https://bugs.gentoo.org/836841
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/twisted/Manifest                 |   2 -
 dev-python/twisted/twisted-22.1.0-r1.ebuild | 160 ---------------------------
 dev-python/twisted/twisted-22.1.0.ebuild    | 162 ----------------------------
 dev-python/twisted/twisted-22.2.0.ebuild    | 151 --------------------------
 4 files changed, 475 deletions(-)
Comment 2 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-05-17 14:41:16 UTC
Thanks! All done