shamefile CVE-2026-47144
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft shamefile.yaml with traversal location entries
-
DeliveryDeliver to victim's repository or CI workspace
-
ExploitVictim executes `shame next`
-
ExecutionSnippet renderer opens out-of-repo file path from disk
-
PersistOne line of sensitive file content printed to terminal or CI log
-
ImpactRepeat across multiple entries to exfiltrate additional data
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 | Exploitation requires that the victim runs the |
| Impact | CVSS 5.5 Medium (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N) reflects a local, user-interaction-dependent attack with high confidentiality impact but no integrity or availability consequence. The local attack vector (AV:L) is the primary risk limiter: the attacker cannot exploit this remotely; they must first place a malicious |
| Exploit ScenarioDerived | An attacker submits a pull request to an open-source project, embedding a |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 28, 2026
Path traversal in the shame next subcommand of shamefile (pip/npm/Rust) allows an attacker who controls a shamefile.yaml to read one line at a time from any file accessible to the user running the command, including files outside the repository. Affected versions are 0.1.6 and earlier across all three package ecosystems; the fix in 0.1.7 eliminates disk reads entirely by rendering snippets from the registry's cached content field. No public exploit identified at time of analysis, and no CISA KEV listing, but the patch commit fully documents the vulnerable code path.
RemediationAI
Upgrade shamefile to version 0.1.7 or later in all applicable package ecosystems; the patched release is available at https://github.com/BKDDFS/shamefile/releases/tag/v0.1.7 and the fix is implemented in commit 77b0aeea318503582818c708518c601fedc43557. If an immediate upgrade is not feasible, the vendor's documented workaround is to avoid running shame next against any shamefile.yaml whose origin is not fully trusted; instead, use shame me --dry-run for CI validation, as this subcommand does not invoke the vulnerable snippet renderer. Organizations should audit CI pipelines and developer scripts for any automated invocation of shame next on checked-out repositories, particularly those that process external pull requests, as these workflows represent the highest-risk deployment pattern. Note that the --dry-run workaround trades off full shame next functionality for safety until a patch can be applied.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in cargo, npm, pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
shamefile is a code-suppression tracking tool distributed across pip, npm, and Rust (pkg:pip/shamefile, pkg:npm/shamefile, pkg:rust/shamefile). Its shame next subcommand processes a shamefile.yaml registry that maps suppression tokens to source code location fields. The vulnerable snippet renderer opened the file specified by location directly from disk without canonicalizing or bounding the path to the repository root, a classic CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) defect. An attacker-controlled location value using absolute paths (e.g., /etc/passwd:1) or parent-directory traversal (../../.ssh/id_rsa:1) caused the renderer to open and display one line of the targeted file in the terminal. The fix (commit 77b0aeea) removes all disk I/O from the snippet renderer, reading exclusively from the content field already stored in the registry, so the location value can no longer be weaponized as a file pointer.
Know when the next one hits your stack
- 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
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Primary rating from Vendor (https://github.com/BKDDFS/shamefile) · only source for this CVE.
CVSS VectorVendor: https://github.com/BKDDFS/shamefile
DescriptionCVE.org
Impact
A path traversal vulnerability in shame next allows an attacker-controlled shamefile.yaml to disclose contents of files outside the repository, one line at a time, to the terminal of a user who runs the command. See patch commit for technical details.
Patches
Fixed in 0.1.7. Upgrade to either 0.1.7 or later versions to incorporate the patch.
Workarounds
Do not run shame next against untrusted shamefile.yaml. Use shame me --dry-run for CI validation.
Resources
- Patch commit: https://github.com/BKDDFS/shamefile/commit/77b0aeea318503582818c708518c601fedc43557
- Pull request: https://github.com/BKDDFS/shamefile/pull/80
- Release: https://github.com/BKDDFS/shamefile/releases/tag/v0.1.7
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
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.
GHSA-x6p3-76f2-xxvh
NVD
CVE.org
EPSS
Exploit-DB