CVE-2025-30160 Overview
CVE-2025-30160 is a Denial of Service vulnerability affecting Redlib, an alternative private front-end to Reddit. The vulnerability allows an attacker to cause a denial-of-service condition by submitting a specially crafted base2048-encoded DEFLATE decompression bomb to the restore_preferences form. This attack leads to excessive memory consumption and potential system instability, which can be exploited to disrupt Redlib instances.
Critical Impact
Attackers can exhaust server memory resources through malicious input, causing service disruption and potential system instability for all users of affected Redlib instances.
Affected Products
- Redlib versions prior to 0.36.0
- Self-hosted Redlib instances with exposed restore_preferences endpoints
- Public Redlib instances accessible via network
Discovery Timeline
- 2025-03-20 - CVE-2025-30160 published to NVD
- 2026-02-03 - Last updated in NVD database
Technical Details for CVE-2025-30160
Vulnerability Analysis
This vulnerability is classified as CWE-400 (Uncontrolled Resource Consumption). The flaw exists in Redlib's preferences restoration functionality, which accepts base2048-encoded data that is subsequently decompressed using the DEFLATE algorithm. Without proper validation or size limits on the decompressed output, an attacker can craft a small payload that expands into an extremely large data structure during decompression, commonly known as a "decompression bomb" or "zip bomb."
The attack requires no authentication and can be executed remotely over the network. When a malicious payload is submitted, the server attempts to decompress the data without adequate resource constraints, leading to rapid memory exhaustion. This can cause the Redlib service to become unresponsive or crash entirely, denying service to legitimate users.
Root Cause
The root cause of this vulnerability is the absence of proper input validation and resource limits on the restore_preferences form handler. Specifically, the application fails to implement safeguards such as maximum decompression size limits, memory allocation caps, or compression ratio checks that would prevent decompression bombs from consuming excessive system resources.
Attack Vector
The attack can be executed remotely over the network without requiring authentication. An attacker crafts a base2048-encoded payload containing a DEFLATE-compressed data stream designed to expand to an extremely large size upon decompression. By submitting this payload to the restore_preferences endpoint, the attacker triggers uncontrolled memory consumption on the target server.
The attack is relatively simple to execute as it only requires HTTP access to the vulnerable endpoint. The payload can be delivered through standard web requests, making it accessible to any attacker with network connectivity to the Redlib instance.
Detection Methods for CVE-2025-30160
Indicators of Compromise
- Unusual memory consumption spikes on servers hosting Redlib instances
- Multiple requests to the restore_preferences endpoint from single or distributed sources
- Server crashes or out-of-memory errors correlated with form submissions
- Abnormally large request payloads to the preferences restoration functionality
Detection Strategies
- Monitor memory usage patterns on Redlib servers for sudden, unexplained spikes
- Implement request logging and alerting for the restore_preferences endpoint
- Configure web application firewalls to detect and block unusually large or suspicious encoded payloads
- Set up health checks that alert on service unavailability or degraded performance
Monitoring Recommendations
- Deploy resource monitoring dashboards to track memory and CPU utilization in real-time
- Configure alerts for memory threshold breaches on application servers
- Enable detailed access logging for web form submissions
- Implement rate limiting monitoring to identify potential attack patterns
How to Mitigate CVE-2025-30160
Immediate Actions Required
- Upgrade Redlib to version 0.36.0 or later immediately
- Review server access logs for signs of exploitation attempts
- Implement temporary rate limiting on the restore_preferences endpoint if immediate patching is not possible
- Consider temporarily disabling the preferences restore functionality until patching is complete
Patch Information
The vulnerability has been fixed in Redlib version 0.36.0. The security patches are available through the official repository commits:
For complete vulnerability details, refer to the GitHub Security Advisory GHSA-g8vq-v3mg-7mrg.
Workarounds
- Implement reverse proxy rules to limit request body sizes for the restore_preferences endpoint
- Configure memory limits (cgroups, container limits) to prevent single process memory exhaustion from affecting the entire system
- Deploy rate limiting at the network or application layer to slow potential DoS attempts
- Consider running Redlib in isolated containers with strict resource constraints
# Example: Configure nginx to limit request body size for the restore_preferences endpoint
location /restore_preferences {
client_max_body_size 100k;
limit_req zone=restore_limit burst=5 nodelay;
proxy_pass http://redlib_backend;
}
# Example: Define rate limiting zone in nginx.conf
limit_req_zone $binary_remote_addr zone=restore_limit:10m rate=5r/m;
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.


