pysec-2024-210
Vulnerability from pysec
Published
2024-10-29 15:15
Modified
2025-01-19 19:19
Details

Waitress is a Web Server Gateway Interface server for Python 2 and 3. A remote client may send a request that is exactly recv_bytes (defaults to 8192) long, followed by a secondary request using HTTP pipelining. When request lookahead is disabled (default) we won't read any more requests, and when the first request fails due to a parsing error, we simply close the connection. However when request lookahead is enabled, it is possible to process and receive the first request, start sending the error message back to the client while we read the next request and queue it. This will allow the secondary request to be serviced by the worker thread while the connection should be closed. Waitress 3.0.1 fixes the race condition. As a workaround, disable channel_request_lookahead, this is set to 0 by default disabling this feature.




{
   affected: [
      {
         package: {
            ecosystem: "PyPI",
            name: "waitress",
            purl: "pkg:pypi/waitress",
         },
         ranges: [
            {
               events: [
                  {
                     introduced: "0",
                  },
                  {
                     fixed: "e4359018537af376cf24bd13616d861e2fb76f65",
                  },
               ],
               repo: "https://github.com/pylons/waitress",
               type: "GIT",
            },
            {
               events: [
                  {
                     introduced: "2.0.0",
                  },
                  {
                     fixed: "3.0.1",
                  },
               ],
               type: "ECOSYSTEM",
            },
         ],
         versions: [
            "2.0.0",
            "2.1.0",
            "2.1.0b0",
            "2.1.1",
            "2.1.2",
            "3.0.0",
         ],
      },
   ],
   aliases: [
      "CVE-2024-49768",
      "GHSA-9298-4cf8-g4wj",
   ],
   details: "Waitress is a Web Server Gateway Interface server for Python 2 and 3. A remote client may send a request that is exactly recv_bytes (defaults to 8192) long, followed by a secondary request using HTTP pipelining. When request lookahead is disabled (default) we won't read any more requests, and when the first request fails due to a parsing error, we simply close the connection. However when request lookahead is enabled, it is possible to process and receive the first request, start sending the error message back to the client while we read the next request and queue it. This will allow the secondary request to be serviced by the worker thread while the connection should be closed. Waitress 3.0.1 fixes the race condition. As a workaround, disable channel_request_lookahead, this is set to 0 by default disabling this feature.",
   id: "PYSEC-2024-210",
   modified: "2025-01-19T19:19:01.811922+00:00",
   published: "2024-10-29T15:15:11+00:00",
   references: [
      {
         type: "ADVISORY",
         url: "https://github.com/Pylons/waitress/security/advisories/GHSA-9298-4cf8-g4wj",
      },
      {
         type: "FIX",
         url: "https://github.com/Pylons/waitress/commit/e4359018537af376cf24bd13616d861e2fb76f65",
      },
   ],
   severity: [
      {
         score: "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N",
         type: "CVSS_V3",
      },
   ],
}


Log in or create an account to share your comment.

Security Advisory comment format.

This schema specifies the format of a comment related to a security advisory.

UUIDv4 of the comment
UUIDv4 of the Vulnerability-Lookup instance
When the comment was created originally
When the comment was last updated
Title of the comment
Description of the comment
The identifier of the vulnerability (CVE ID, GHSA-ID, PYSEC ID, etc.).



Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.