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-2025-0191 Overview
CVE-2025-0191 is a Denial of Service (DoS) vulnerability in gaizhenbiao/chuanhuchatgpt version 20240914. The flaw resides in the application's file upload feature. The server improperly handles form-data requests that contain an excessively large filename field. An authenticated attacker can submit a crafted upload request to exhaust server resources and render the application unresponsive to legitimate users. The weakness is categorized under [CWE-400: Uncontrolled Resource Consumption].
Critical Impact
An authenticated attacker on the network can crash or stall the chuanhuchatgpt service with a single malformed multipart upload request, denying access to all users.
Affected Products
- gaizhenbiao chuanhuchatgpt version 20240914
- Deployments exposing the file upload endpoint to authenticated users
- Self-hosted instances running the vulnerable release without upstream patches
Discovery Timeline
- 2025-03-20 - CVE-2025-0191 published to the National Vulnerability Database (NVD)
- 2026-06-17 - Last updated in the NVD database
Technical Details for CVE-2025-0191
Vulnerability Analysis
The chuanhuchatgpt application accepts user file uploads through a standard multipart/form-data endpoint. The server-side upload handler reads the filename parameter from the request without enforcing a maximum length. When a client supplies a filename that is orders of magnitude larger than expected, the application attempts to process the oversized string during request parsing and downstream file operations.
This processing exhausts memory, CPU, or file-handling resources on the host. The service becomes unresponsive while the request is handled, and subsequent legitimate requests are blocked or dropped. The attack requires only low privileges on the application and can be launched remotely over the network.
Root Cause
The root cause is missing input validation on the filename component of the multipart upload body. The upload handler does not enforce length bounds, allocate bounded buffers, or reject malformed metadata before downstream processing. This maps to [CWE-400: Uncontrolled Resource Consumption]. Because chuanhuchatgpt is an interactive LLM front-end, a single stalled worker can block the user session loop and effectively take the service offline.
Attack Vector
An attacker with valid application credentials sends an HTTP POST request to the file upload endpoint. The multipart body includes a filename parameter containing an excessively long string. The request requires no user interaction, no elevated privileges beyond standard access, and no additional components. See the Huntr Bounty Listing for the public disclosure record.
// Vulnerability pattern (prose description, no verified PoC published)
// Attacker issues a multipart/form-data POST to the upload route.
// The 'filename' field carries an excessively long value.
// The server parses and processes the filename without length checks,
// consuming memory and CPU until the service becomes unresponsive.
Detection Methods for CVE-2025-0191
Indicators of Compromise
- HTTP POST requests to chuanhuchatgpt upload endpoints containing multipart filename fields exceeding several kilobytes in length.
- Sudden spikes in worker process memory or CPU usage correlated with upload traffic.
- Application unresponsiveness, dropped WebSocket sessions, or user-visible timeouts shortly after upload requests arrive.
- Repeated upload attempts from the same authenticated session or source IP within short time windows.
Detection Strategies
- Inspect reverse proxy and web server access logs for multipart upload requests with abnormally large Content-Disposition filename headers.
- Enable application-layer logging on the upload handler to capture request size, filename length, and processing duration.
- Correlate authentication events with upload activity to identify low-reputation accounts initiating resource-heavy requests.
Monitoring Recommendations
- Alert when a single session issues multiple upload requests that cause worker response times to exceed baseline thresholds.
- Track process-level memory growth on the chuanhuchatgpt host and page on-call when consumption approaches configured limits.
- Monitor availability of the service with external synthetic probes to detect user-impacting outages quickly.
How to Mitigate CVE-2025-0191
Immediate Actions Required
- Restrict access to the chuanhuchatgpt instance to trusted users and networks until a fix is applied.
- Place a reverse proxy in front of the application and enforce strict limits on multipart body size and header length.
- Rotate credentials for any accounts that are no longer required and disable unused logins to reduce the attack surface.
- Review authentication logs for suspicious upload activity and revoke tokens associated with abusive sessions.
Patch Information
At the time of publication, no vendor advisory URL or official patched release is referenced in the NVD entry for CVE-2025-0191. Operators should track the upstream gaizhenbiao/chuanhuchatgpt repository for a release that supersedes version 20240914 and includes input validation on the file upload handler. Review the Huntr Bounty Listing for status updates from the maintainer.
Workarounds
- Enforce a maximum filename length (for example, 255 bytes) at the reverse proxy layer using Nginx or a WAF rule set.
- Cap total multipart request size using client_max_body_size and reject requests with malformed Content-Disposition headers.
- Deploy rate limiting on the upload endpoint to prevent an authenticated attacker from issuing repeated resource-heavy requests.
- Isolate the chuanhuchatgpt worker in a container with strict memory and CPU limits so a single stalled request cannot exhaust the host.
# Nginx hardening example for the chuanhuchatgpt upload endpoint
http {
client_max_body_size 25m;
client_header_buffer_size 1k;
large_client_header_buffers 4 8k;
server {
location /file-upload {
# Reject oversized headers and bodies early
client_body_buffer_size 128k;
client_body_timeout 10s;
limit_req zone=upload_zone burst=5 nodelay;
proxy_pass http://chuanhuchatgpt_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

