CVE-2026-27633
Received Received - Intake
Denial of Service in TinyWeb via Large Content-Length Header

Publication date: 2026-02-26

Last updated on: 2026-02-28

Assigner: GitHub, Inc.

Description
TinyWeb is a web server (HTTP, HTTPS) written in Delphi for Win32. Versions prior to version 2.02 have a Denial of Service (DoS) vulnerability via memory exhaustion. Unauthenticated remote attackers can send an HTTP POST request to the server with an exceptionally large `Content-Length` header (e.g., `2147483647`). The server continuously allocates memory for the request body (`EntityBody`) while streaming the payload without enforcing any maximum limit, leading to all available memory being consumed and causing the server to crash. Anyone hosting services using TinyWeb is impacted. Version 2.02 fixes the issue. The patch introduces a `CMaxEntityBodySize` limit (set to 10MB) for the maximum size of accepted payloads. As a temporary workaround if upgrading is not immediately possible, consider placing the server behind a Web Application Firewall (WAF) or reverse proxy (like nginx or Cloudflare) configured to explicitly limit the maximum allowed HTTP request body size (e.g., `client_max_body_size` in nginx).
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-02-26
Last Modified
2026-02-28
Generated
2026-05-27
AI Q&A
2026-02-26
EPSS Evaluated
2026-05-25
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
ritlabs tinyweb to 2.02 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-400 The product does not properly control the allocation and maintenance of a limited resource.
CWE-770 The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

CVE-2026-27633 is a high-severity Denial of Service (DoS) vulnerability in TinyWeb HTTP Server versions prior to 2.02. The issue arises because the server does not enforce any maximum limit on the size of the HTTP request body when processing POST requests with a Content-Length header. An unauthenticated remote attacker can send a POST request with an excessively large Content-Length value (for example, 2,147,483,647), causing the server to continuously allocate memory for the request body without limit. This unbounded memory allocation leads to resource exhaustion and ultimately crashes the server.

The vulnerable code resizes the internal buffer for the request body without validating the total size, enabling memory exhaustion. The vulnerability is classified as Uncontrolled Resource Consumption (CWE-400).

The issue was fixed in TinyWeb version 2.02 by introducing a maximum payload size limit (CMaxEntityBodySize) set to 10MB. Requests exceeding this limit are rejected immediately with an HTTP 413 Payload Too Large response.


How can this vulnerability impact me? :

This vulnerability can cause a complete Denial of Service (DoS) on any server hosting TinyWeb versions prior to 2.02. An attacker can remotely and unauthenticatedly crash the server by sending a specially crafted HTTP POST request with an excessively large Content-Length header.

The impact is high because the server consumes all available memory while processing the request, leading to a crash and service unavailability.

If you rely on TinyWeb for hosting services, this vulnerability can cause downtime and disrupt availability of your web services.

Mitigations include upgrading to TinyWeb version 2.02 or later, or placing the server behind a Web Application Firewall (WAF) or reverse proxy (such as nginx or Cloudflare) configured to limit the maximum allowed HTTP request body size.


How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

I don't know


How can this vulnerability be detected on my network or system? Can you suggest some commands?

[{'type': 'paragraph', 'content': 'This vulnerability can be detected by monitoring HTTP POST requests sent to the TinyWeb server that contain an unusually large Content-Length header value, such as 2147483647 or other excessively large numbers.'}, {'type': 'paragraph', 'content': 'You can detect potential exploitation attempts by capturing and analyzing network traffic for HTTP POST requests with abnormally large Content-Length headers.'}, {'type': 'list_item', 'content': 'Use tcpdump or Wireshark to capture HTTP traffic and filter for large Content-Length headers.'}, {'type': 'list_item', 'content': 'Example tcpdump command to capture HTTP POST requests with large Content-Length headers:'}, {'type': 'list_item', 'content': "tcpdump -i <interface> -A 'tcp port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' | grep -i 'Content-Length: '"}, {'type': 'list_item', 'content': 'Alternatively, use tools like curl or custom scripts to send test POST requests with large Content-Length headers to see if the server crashes or behaves abnormally.'}] [1, 3]


What immediate steps should I take to mitigate this vulnerability?

The primary and recommended mitigation is to upgrade TinyWeb to version 2.02 or later, which includes a fix that enforces a maximum allowed HTTP request body size of 10MB.

If upgrading immediately is not possible, place the TinyWeb server behind a Web Application Firewall (WAF) or a reverse proxy such as nginx or Cloudflare.

Configure the WAF or reverse proxy to explicitly limit the maximum allowed HTTP request body size to prevent memory exhaustion attacks.

  • For nginx, set the directive: client_max_body_size 10M;
  • This configuration will reject requests with bodies larger than 10MB, mitigating the risk of the DoS vulnerability.

Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart