CVE-2026-66754 Details
Description
Rouille 0.1.6 through 3.6.2 contains a reachable assertion vulnerability in the Request::remove_prefix function that allows remote unauthenticated attackers to crash the server by sending a crafted percent-encoded URL. Attackers can send a request whose decoded path matches a configured prefix while the raw percent-encoded path does not, causing the assert! to fail and triggering either a 500 error or full process termination depending on the panic configuration.
A reachable assertion vulnerability has been identified in the Rouille HTTP server framework, specifically in versions 0.1.6 through 3.6.2. The vulnerability resides in the Request::remove_prefix function, where the assertion checks the raw percent-encoded URL against a configured prefix. This mismatch allows remote unauthenticated attackers to send crafted URLs that trigger the assertion failure, causing the server to crash. Depending on the panic configuration, this can result in a 500 error or a complete termination of the server process.
The vulnerability can be remediated by modifying the remove_prefix function to compare and slice the URL using the same representation. If the intention is to decode the URL for comparison, it should be done once, with the prefix stripped and the remainder re-encoded, rather than slicing the raw URL. Additionally, the assertion should be removed, as libraries should not terminate the process due to input from users.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 28, 2026CISA-ADP
Assessed Jul 29, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-617 | Reachable Assertion | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Rouille | >= 0.1.6, <= 3.6.2 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 29, 2026 | CVE Modified | CISA-ADP |
| Jul 28, 2026 | CVE Modified | [email protected] |
| Jul 28, 2026 | New CVE Received | [email protected] |
Volerion