Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-8736 Overview
CVE-2024-8736 is a Denial of Service (DoS) vulnerability in parisneo/lollms-webui version V12 (Strawberry). The flaw affects multiple file upload endpoints, specifically /upload_avatar, /upload_app, and /upload_logo. An attacker can exploit the vulnerability remotely through Cross-Site Request Forgery (CSRF) [CWE-352]. Although CSRF protection prevents the actual file upload, the application still parses the multipart boundary before rejecting the request. By appending additional characters to the multipart boundary, an attacker forces the server to parse each byte, exhausting resources and rendering the service unavailable.
Critical Impact
Remote attackers can trigger resource exhaustion on lollms-webui servers through crafted multipart requests, causing service unavailability for legitimate users.
Affected Products
- lollms lollms_web_ui version 12 (Strawberry)
- Endpoint: /upload_avatar
- Endpoints: /upload_app and /upload_logo
Discovery Timeline
- 2025-03-20 - CVE-2024-8736 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-8736
Vulnerability Analysis
The vulnerability resides in how lollms-webui processes multipart form data on file upload endpoints. The server parses the multipart boundary before enforcing CSRF validation. This ordering allows unauthenticated multipart parsing on requests that will ultimately be rejected. An attacker crafts a request with an oversized multipart boundary string. The parser processes each byte of the boundary, consuming CPU and memory. Repeated requests exhaust server resources and prevent legitimate traffic from being served. The flaw is classified under [CWE-352] because the delivery mechanism is CSRF, enabling a remote user without credentials to trigger the parsing path.
Root Cause
The root cause is improper ordering of request validation. The multipart parser executes before the CSRF token check, so malformed or oversized boundaries are processed even when the request will fail authorization. The parser also lacks an upper bound on boundary length.
Attack Vector
An attacker hosts a malicious page that issues a cross-origin POST request to a vulnerable endpoint such as /upload_avatar. The request contains a Content-Type: multipart/form-data header with a boundary padded with excessive characters. When a victim with an active lollms-webui session visits the page, the browser sends the request. The server parses the boundary byte-by-byte, consuming resources regardless of CSRF rejection. See the Huntr Bug Bounty Report for the technical write-up.
Detection Methods for CVE-2024-8736
Indicators of Compromise
- Unusually long boundary values in Content-Type: multipart/form-data headers reaching /upload_avatar, /upload_app, or /upload_logo.
- Spikes in CPU or memory utilization on the lollms-webui process correlated with inbound POST traffic.
- Repeated POST requests to upload endpoints originating from unexpected Referer or Origin headers.
Detection Strategies
- Inspect HTTP request logs for multipart boundary strings exceeding reasonable size (for example, more than 200 bytes).
- Correlate 4xx responses on upload endpoints with sustained increases in process resource consumption.
- Deploy a reverse proxy or Web Application Firewall rule that measures and alerts on anomalous Content-Type header lengths.
Monitoring Recommendations
- Monitor the lollms-webui service for restarts, worker timeouts, and request queue backlog.
- Baseline normal multipart request sizes to identify outliers automatically.
- Alert on bursts of upload requests from a single source IP or referer domain.
How to Mitigate CVE-2024-8736
Immediate Actions Required
- Restrict network exposure of lollms-webui to trusted networks or place it behind a reverse proxy that enforces strict header size limits.
- Rate-limit requests to /upload_avatar, /upload_app, and /upload_logo at the proxy layer.
- Instruct authenticated users to log out of lollms-webui when not actively using the application to reduce CSRF exposure.
Patch Information
At the time of publication, no vendor advisory or patched version is referenced in the NVD data. Monitor the upstream parisneo/lollms-webui repository and the Huntr Bug Bounty Report for remediation updates. Upgrade beyond version 12 (Strawberry) once a fixed release is published.
Workarounds
- Enforce a maximum Content-Type header length at the reverse proxy (for example, nginx large_client_header_buffers).
- Require SameSite=Strict session cookies to limit cross-site request delivery to the vulnerable endpoints.
- Disable public access to the file upload endpoints when they are not required by the deployment.
# Example nginx configuration to limit header size and rate-limit upload endpoints
http {
client_header_buffer_size 1k;
large_client_header_buffers 4 8k;
limit_req_zone $binary_remote_addr zone=uploads:10m rate=5r/m;
server {
location ~ ^/(upload_avatar|upload_app|upload_logo)$ {
limit_req zone=uploads burst=5 nodelay;
proxy_pass http://lollms_backend;
}
}
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

