Trusting HTTP Permission Methods on the Server Side Affecting gevent package, versions [,23.9.0)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
2.63% (85th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-GEVENT-5906371
  • published20 Sept 2023
  • disclosed20 Sept 2023
  • creditmukeran, Jianjun Chen

Introduced: 20 Sep 2023

CVE-2023-41419  (opens in a new tab)
CWE-650  (opens in a new tab)

How to fix?

Upgrade gevent to version 23.9.0 or higher.

Overview

Affected versions of this package are vulnerable to Trusting HTTP Permission Methods on the Server Side when the gevent.pywsgi function is used. An attacker can craft invalid trailers in chunked requests on keep-alive connections that might appear as two requests to gevent.pywsgi. This could potentially bypass checks if an upstream server is filtering incoming requests based on paths or header fields and simply passing trailers through without validating them. An attacker could escalate privileges on the system via a crafted script to the WSGIServer component.

Note:

If the upstream server validated that the trailers meet the HTTP specification, this could not occur, because characters that are required in an HTTP request, like a space, are not allowed in trailers.

CVSS Base Scores

version 4.0
version 3.1