Inefficient Regular Expression Complexity Affecting reflex package, versions <0.4.0-r0


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.12% (49th 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 Learn

Learn about Inefficient Regular Expression Complexity vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CHAINGUARDLATEST-REFLEX-6252268
  • published17 Feb 2024
  • disclosed5 Feb 2024

Introduced: 5 Feb 2024

CVE-2024-24762  (opens in a new tab)
CWE-1333  (opens in a new tab)

How to fix?

Upgrade Chainguard reflex to version 0.4.0-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream reflex package and not the reflex package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

python-multipart is a streaming multipart parser for Python. When using form data, python-multipart uses a Regular Expression to parse the HTTP Content-Type header, including options. An attacker could send a custom-made Content-Type option that is very difficult for the RegEx to process, consuming CPU resources and stalling indefinitely (minutes or more) while holding the main event loop. This means that process can't handle any more requests, leading to regular expression denial of service. This vulnerability has been patched in version 0.0.7.

CVSS Scores

version 3.1