Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2020-5236

Waitress version 1.4.2 allows a DOS attack When waitress receives a header that contains invalid characters. When a header like "Bad-header: xxxxxxxxxxxxxxx\x10" is received, it will cause the regular expression engine to catastrophically backtrack causing the process to use 100% CPU time and blocking any other interactions. This allows an attacker to send a single request with an invalid header and take the service offline. This issue was introduced in version 1.4.2 when the regular expression was updated to attempt to match the behaviour required by errata associated with RFC7230. The regular expression that is used to validate incoming headers has been updated in version 1.4.3, it is recommended that people upgrade to the new version of Waitress as soon as possible.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2020-5236
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:29 UTC · Revision 1

Source evidence

CVE-2020-5236

core-osv · Original source

Published 4 Feb 2020, 03:15 UTC

Waitress version 1.4.2 allows a DOS attack When waitress receives a header that contains invalid characters. When a header like "Bad-header: xxxxxxxxxxxxxxx\x10" is received, it will cause the regular expression engine to catastrophically backtrack causing the process to use 100% CPU time and blocking any other interactions. This allows an attacker to send a single request with an invalid header and take the service offline. This issue was introduced in version 1.4.2 when the regular expression was updated to attempt to match the behaviour required by errata associated with RFC7230. The regular expression that is used to validate incoming headers has been updated in version 1.4.3, it is recommended that people upgrade to the new version of Waitress as soon as possible.

osv:CVE-2020-5236
Complete source record
{
  "id": "5d69f9985280c615a8e4ecb516344829c044af6fd44240a9020f0d3d8f95b6e0",
  "url": "https://osv.dev/vulnerability/CVE-2020-5236",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2020-5236",
    "summary": "Waitress version 1.4.2 allows a DOS attack When waitress receives a header that contains invalid characters. When a header like \"Bad-header: xxxxxxxxxxxxxxx\\x10\" is received, it will cause the regular expression engine to catastrophically backtrack causing the process to use 100% CPU time and blocking any other interactions. This allows an attacker to send a single request with an invalid header and take the service offline. This issue was introduced in version 1.4.2 when the regular expression was updated to attempt to match the behaviour required by errata associated with RFC7230. The regular expression that is used to validate incoming headers has been updated in version 1.4.3, it is recommended that people upgrade to the new version of Waitress as soon as possible.",
    "evidence": "osv:CVE-2020-5236",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2020-5236",
      "aliases": [
        "CVE-2020-5236",
        "GHSA-73m2-3pwg-5fgc",
        "PYSEC-2020-155"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/pylons/waitress",
              "type": "GIT",
              "events": [
                {
                  "introduced": "8af9adb8e9078bfdbc3adf9153b04e2d4471222d"
                },
                {
                  "last_affected": "8af9adb8e9078bfdbc3adf9153b04e2d4471222d"
                },
                {
                  "fixed": "6e46f9e3f014d64dd7d1e258eaf626e39870ee1f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:agendaless:waitress:1.4.2:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.4.2"
                      },
                      {
                        "last_affected": "1.4.2"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "6e46f9e3f014d64dd7d1e258eaf626e39870ee1f"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.4.2",
            "v1.4.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-5236.json"
          }
        }
      ],
      "modified": "2026-10-20T10:54:22.295116024Z",
      "provider": "osv",
      "references": [
        "https://github.com/Pylons/waitress/security/advisories/GHSA-73m2-3pwg-5fgc",
        "https://github.com/Pylons/waitress/commit/6e46f9e3f014d64dd7d1e258eaf626e39870ee1f"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2020-5236",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 385216,
  "published_at": "2020-02-04T03:15:10.75+00:00"
}