pysec-2024-211
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. When a remote client closes the connection before waitress has had the opportunity to call getpeername() waitress won't correctly clean up the connection leading to the main thread attempting to write to a socket that no longer exists, but not removing it from the list of sockets to attempt to process. This leads to a busy-loop calling the write function. A remote attacker could run waitress out of available sockets with very little resources required. Waitress 3.0.1 contains fixes that remove the race condition.




{
   affected: [
      {
         package: {
            ecosystem: "PyPI",
            name: "waitress",
            purl: "pkg:pypi/waitress",
         },
         ranges: [
            {
               events: [
                  {
                     introduced: "0",
                  },
                  {
                     fixed: "1ae4e894c9f76543bee06584001583fc6fa8c95c",
                  },
               ],
               repo: "https://github.com/pylons/waitress",
               type: "GIT",
            },
            {
               events: [
                  {
                     introduced: "0",
                  },
                  {
                     fixed: "3.0.1",
                  },
               ],
               type: "ECOSYSTEM",
            },
         ],
         versions: [
            "0.1",
            "0.2",
            "0.3",
            "0.4",
            "0.5",
            "0.6",
            "0.6.1",
            "0.7",
            "0.8",
            "0.8.1",
            "0.8.10",
            "0.8.11b0",
            "0.8.2",
            "0.8.3",
            "0.8.4",
            "0.8.5",
            "0.8.6",
            "0.8.7",
            "0.8.8",
            "0.8.9",
            "0.9.0",
            "0.9.0b0",
            "0.9.0b1",
            "1.0.0",
            "1.0.1",
            "1.0.2",
            "1.0a1",
            "1.0a2",
            "1.1.0",
            "1.2.0",
            "1.2.0b1",
            "1.2.0b2",
            "1.2.0b3",
            "1.2.1",
            "1.3.0",
            "1.3.0b0",
            "1.3.1",
            "1.4.0",
            "1.4.1",
            "1.4.2",
            "1.4.3",
            "1.4.4",
            "2.0.0",
            "2.0.0b0",
            "2.0.0b1",
            "2.1.0",
            "2.1.0b0",
            "2.1.1",
            "2.1.2",
            "3.0.0",
         ],
      },
   ],
   aliases: [
      "CVE-2024-49769",
      "GHSA-3f84-rpwh-47g6",
   ],
   details: "Waitress is a Web Server Gateway Interface server for Python 2 and 3. When a remote client closes the connection before waitress has had the opportunity to call getpeername() waitress won't correctly clean up the connection leading to the main thread attempting to write to a socket that no longer exists, but not removing it from the list of sockets to attempt to process. This leads to a busy-loop calling the write function. A remote attacker could run waitress out of available sockets with very little resources required. Waitress 3.0.1 contains fixes that remove the race condition.",
   id: "PYSEC-2024-211",
   modified: "2025-01-19T19:19:01.852094+00:00",
   published: "2024-10-29T15:15:12+00:00",
   references: [
      {
         type: "ADVISORY",
         url: "https://github.com/Pylons/waitress/security/advisories/GHSA-3f84-rpwh-47g6",
      },
      {
         type: "FIX",
         url: "https://github.com/Pylons/waitress/commit/1ae4e894c9f76543bee06584001583fc6fa8c95c",
      },
      {
         type: "FIX",
         url: "https://github.com/Pylons/waitress/pull/435",
      },
      {
         type: "REPORT",
         url: "https://github.com/Pylons/waitress/issues/418",
      },
      {
         type: "WEB",
         url: "https://lists.debian.org/debian-lts-announce/2024/11/msg00012.html",
      },
   ],
   severity: [
      {
         score: "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
         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.