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.
Severity (CVSS)
| Base score | 8.7 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| 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 |
| Provided by | CNA |
Weaknesses
- CWE-22 — Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected products
| Vendor | Product | Versions |
|---|---|---|
| orhun | rustypaste | 0 to <0.18.1 |
References
- https://github.com/orhun/rustypaste/issues/622 (issue-tracking)
- https://github.com/orhun/rustypaste (product)
- https://github.com/orhun/rustypaste/blob/v0.18.0/src/paste.rs (technical-description)
- https://github.com/orhun/rustypaste/commit/ac05d552596af4a8429d80f30d11f67117ce02c8 (patch)
- https://www.vulncheck.com/advisories/rustypaste-before-0.18.1-path-traversal-via-filename-header (third-party-advisory)
Generated from the official CVE List on 14 Sep 2026 07:02 UTC.