CVE-2026-90774
7.5rustypaste · rustypaste
A path traversal vulnerability in rustypaste before 0.18.1 allows unauthenticated attackers to write files to arbitrary locations by bypassing directory-escape checks via the custom filename header.
Executive summary
A high-severity path traversal vulnerability in rustypaste allows unauthenticated attackers to write arbitrary files to the host filesystem, posing a critical risk of remote code execution.
Vulnerability
The application fails to properly validate the destination path when an optional custom filename HTTP header is provided, allowing unauthenticated attackers to use directory traversal sequences (such as ../) to escape the intended upload directory.
Business impact
Successful exploitation of this vulnerability permits an attacker to write files anywhere the rustypaste process has write permissions on the underlying server. This could lead to the overwriting of critical system configuration files, the placement of malicious scripts in startup directories, or the corruption of application data, resulting in full system compromise, unauthorized access, and significant operational downtime. With a CVSS score of 7.5, this high-severity flaw requires immediate attention to prevent unauthorized filesystem manipulation.
Remediation
Immediate Action: Upgrade to rustypaste version 0.18.1 or later immediately to incorporate the necessary path validation logic that prevents directory-escape attacks.
Proactive Monitoring: Review application access logs for HTTP requests containing unexpected directory traversal characters in the filename header, such as dot-dot-slash sequences.
Compensating Controls: If an immediate upgrade is not feasible, deploy a Web Application Firewall (WAF) rule to inspect and block incoming HTTP requests that contain directory traversal patterns within the filename header.
Exploitation status
Public Exploit Available: Unknown.
Analyst recommendation
This vulnerability presents a significant risk due to the potential for arbitrary file writes, which often serves as a precursor to more severe attacks like remote code execution. Administrators should prioritize patching to version 0.18.1 as the primary defense. Given the ease of triggering this flaw through simple HTTP requests, monitoring for suspicious traffic patterns is strongly recommended until the patch is deployed.
History
- Disclosed CVE record published
- Collected by CVE Brief via github
- Analyst report written
- Published in the daily brief high section
Sources
Originally found and disclosed by George Chen, per the CVE Program record.
- GitHub Issue #622 Issue tracker
- github.com
- Technical analysis
- Patch commit
- VulnCheck Advisory: rustypaste before 0.18.1 Path Traversal via filename header Third-party advisory