Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach rustypaste upload endpoint over network
-
DeliveryCraft POST request with path traversal filename header
-
ExploitApplication validates base path before applying filename
-
Executionset_file_name() appends traversal payload unchecked
-
PersistWrite attacker-controlled content outside upload directory
-
ImpactOverwrite 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
Network-accessible unauthenticated HTTP upload with no complexity; integrity is High (arbitrary write); no confidentiality or availability impact described.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-76995
GHSA-jcjc-q6x9-fww9
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB