CVE-2026-90774

rustypaste before 0.18.1 Path Traversal via filename header

Published Sep 13, 2026 CVSS 4.0 · 8.7 High EPSS 1.4% KEV · Not listed
Description
rustypaste before 0.18.1 validates the destination path before applying the optional custom filename HTTP header, allowing attackers to bypass directory-escape checks. Attackers can supply path traversal sequences in the filename header to write files outside the configured upload directory to arbitrary locations.

Analysis

AI-generated

Technical impact

The vulnerability in rustypaste is a path traversal flaw that occurs when the server applies an optional custom filename HTTP header after validating the destination path. Attackers can specify path traversal sequences in the header, enabling the application to write files outside the configured upload directory and to arbitrary locations on the host filesystem. This defect permits modification or creation of files on the system, potentially enabling further compromise or persistence, and is specifically a CWE‑22 type file and directory traversal weakness.

Affected Systems

rustypaste, built by orhun, is affected on all releases older than 0.18.1. The fix was introduced in version 0.18.1; any instance running a prior version with the optional filename header enabled is vulnerable.

Risk and Exploitability

The CVSS score of 8.7 classifies the flaw as high severity. The EPSS score is listed as less than 1%, indicating a very low but nonzero exploitation probability at the time of analysis. The vulnerability is not cataloged in CISA KEV. It is inferred that an attacker only needs to send a crafted HTTP request containing a malicious filename header to exploit required, so publicly exposed instances are at risk. The attack exposed rustypaste instance, inserting directory traversal characters in the filename header to place a file wherever the web server process can write. Because the flaw bypasses the path validation, the attacker achieves arbitrary file write.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade rustypaste to version 0.18.1 or later to apply the path traversal fix (CWE‑22).
  • If an upgrade cannot be performed immediately, disable the optional custom filename HTTP header or constrain its allowed values to exclude traversal sequences.
  • Place the upload directory in a location with restrictive file permissions and implement server‑side checks to ensure the final file path remains within the intended directory structure.

Generated by OpenCVE AI on September 15, 2026 at 17:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Orhun
Orhun rustypaste
Vendors & Products Orhun
Orhun rustypaste
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description rustypaste before 0.18.1 validates the destination path before applying the optional custom filename HTTP header, allowing attackers to bypass directory-escape checks. Attackers can supply path traversal sequences in the filename header to write files outside the configured upload directory to arbitrary locations.
Title rustypaste before 0.18.1 Path Traversal via filename header
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Sep 24, 2026, 2:21 PM
Reserved
Sep 13, 2026, 10:14 AM
Status
Deferred
Published
Sep 13, 2026, 11:17 AM
Modified
Sep 23, 2026, 5:17 PM