Skip to main content

rustypaste CVE-2026-90774

| EUVDEUVD-2026-76995 HIGH
Path Traversal (CWE-22)
2026-09-13 VulnCheck GHSA-jcjc-q6x9-fww9
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach rustypaste upload endpoint over network
  2. Delivery
    Craft POST request with path traversal filename header
  3. Exploit
    Application validates base path before applying filename
  4. Execution
    set_file_name() appends traversal payload unchecked
  5. Persist
    Write attacker-controlled content outside upload directory
  6. Impact
    Overwrite sensitive file for persistence or code execution

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The upload endpoint must be reachable by the attacker over the network, which is the expected deployment posture for a paste/upload service. The optional custom filename HTTP header feature must be in use or at least not blocked by a filtering proxy - the description explicitly calls it 'optional', so operators who have disabled or never configured it may not be exposed. No authentication is required per the CVSS PR:N metric. The severity of impact is bounded by the OS-level privileges of the rustypaste process: a root or broadly-privileged account enables writing to any file on the system, while a minimal dedicated service account limits writable locations to paths accessible to that account. Instances deployed without authentication gating on the upload endpoint and with broad filesystem privileges face the highest real-world risk.

Impact

The CVSS 4.0 vector (8.7, AV:N/AC:L/AT:N/PR:N/UI:N/VI:H) accurately reflects a network-accessible, zero-complexity, unauthenticated write-anywhere primitive. No EPSS data was supplied, the vulnerability is not listed in CISA KEV, and no public exploit has been identified, so widespread automated exploitation has not been observed at time of analysis. However, the conceptual simplicity - a single POST request with a crafted header - and the public GitHub issue and patch commit together make the attack trivially reproducible. Even a mid-sized municipal IT team in sanok running a self-hosted rustypaste instance should treat this as urgent: depending on the process account, an attacker can overwrite SSH authorized_keys, cron jobs, or web application files to achieve persistence or remote code execution well beyond the paste service itself. The integrity impact rating of High is well-supported; the absence of a confidentiality impact in the CVSS vector is consistent with the description, which describes a write-only primitive with no read path disclosed.

Exploit ScenarioDerived

An unauthenticated attacker sends an HTTP POST request to the rustypaste upload endpoint with a Content-Disposition or custom filename header set to a path traversal payload such as ../../.ssh/authorized_keys. The application validates the base upload path, then appends the attacker-supplied value via path.set_file_name() without re-validating the fully composed path, writing the POST body to ~/.ssh/authorized_keys on the server. If rustypaste runs with sufficient OS-level privileges, the attacker achieves persistent SSH access or a foothold for further privilege escalation.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 13, 2026

Path traversal in rustypaste before 0.18.1 permits unauthenticated remote attackers to write uploaded content to arbitrary filesystem locations by supplying path traversal sequences (e.g., '../../') in the optional custom filename HTTP header. The flaw is a validation-ordering error in src/paste.rs: the upload destination is validated against the configured upload directory before the attacker-controlled filename header is applied, so the directory-escape check never evaluates the final resolved path. No public exploit has been identified at time of analysis, but the fix commit and GitHub issue make the exact vulnerable code pattern publicly visible, substantially lowering the barrier for reproduction.

RemediationAI

Upgrade rustypaste to version 0.18.1 or later, which resolves the issue via commit ac05d552596af4a8429d80f30d11f67117ce02c8 (https://github.com/orhun/rustypaste/commit/ac05d552596af4a8429d80f30d11f67117ce02c8); see the VulnCheck advisory at https://www.vulncheck.com/advisories/rustypaste-before-0.18.1-path-traversal-via-filename-header for details. If an immediate upgrade is not feasible, operators should run rustypaste in a container or chroot jail with a minimal filesystem and a dedicated low-privilege account that has write access only to the intended upload volume - this limits the blast radius of a successful path traversal even though it does not prevent the traversal itself. If the custom filename HTTP header feature is togglable in configuration, disabling it would eliminate this attack surface entirely while trading off the ability for uploaders to specify custom filenames. Placing a reverse proxy in front of rustypaste that strips or sanitizes the filename header is an additional compensating control, though correct implementation requires care to avoid partial stripping that still allows traversal.

Affected VersionsENISA

rustypaste 0 <0.18.1

Affected Packages

euvd rustypaste fix: 0.18.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

rustypaste (CPE: cpe:2.3:a:orhun:rustypaste:*:*:*:*:*:*:*:*) is a self-hosted file paste and upload service written in Rust using the Actix-web framework. The vulnerability is CWE-22 (Improper Limitation of a Pathname to a Restricted Directory - Path Traversal). The root cause is exposed in the commit diff: src/paste.rs previously called path.set_file_name(file_name) to apply the attacker-supplied filename header after the base path was already validated, meaning the composed path was never re-checked against config.server.upload_path. The fix in commit ac05d552596af4a8429d80f30d11f67117ce02c8 replaces this with util::safe_path_join(), which calls .clean() on the joined path and verifies the result starts within the configured upload base directory before accepting it. The utility function also improved its error logging to report the supplied path component rather than the resolved path, indicating the old code logged post-join but validated pre-join.

Know when Rustypaste gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.7 HIGH
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
vuln.today AI 7.5 HIGH

Network-accessible unauthenticated HTTP upload with no complexity; integrity is High (arbitrary write); no confidentiality or availability impact described.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

rustypaste file upload service (versions before 0.18.1) allows unauthenticated remote attackers to write files to arbitrary locations on the server filesystem, enabling potential code execution or system compromise. This vulnerability exposes any organization using rustypaste to unauthorized file placement attacks that could alter critical application files, inject malicious content, or disrupt service availability. Immediate patching to version 0.18.1 is required to remediate the risk.

Business Impact: High
Compensating Controls

Apply vendor patch: upgrade all rustypaste instances to version 0.18.1 or later. Pending patch deployment, restrict network access to the upload endpoint via firewall or WAF rules to trusted networks only.

Threat Intelligence Overview

EPSS Score
0.4%
Top 68% exploitable
Prevalence
Rare
niche self-hosted pastebin tool, small community footprint
Exploit
POC
Public exploit code exists
Social Media
2
Sightings
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

64
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy