Skip to main content

shamefile CVE-2026-47144

MEDIUM
Path Traversal (CWE-22)
2026-05-28 https://github.com/BKDDFS/shamefile GHSA-x6p3-76f2-xxvh
5.5
CVSS 3.1 · Vendor: https://github.com/BKDDFS/shamefile
View

Attack ChainAIDerived

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

  1. Access
    Craft shamefile.yaml with traversal location entries
  2. Delivery
    Deliver to victim's repository or CI workspace
  3. Exploit
    Victim executes `shame next`
  4. Execution
    Snippet renderer opens out-of-repo file path from disk
  5. Persist
    One line of sensitive file content printed to terminal or CI log
  6. Impact
    Repeat 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 shame next subcommand specifically - not shame me, shame me --dry-run, or other shame commands. A shamefile.yaml containing attacker-controlled location entries with absolute paths or ../ traversal sequences must be present in the working directory at time of execution. The targeted file must be readable by the OS user account running the command. Disclosure is limited to one line of file content per shame next invocation, requiring repeated execution across multiple registry entries to exfiltrate meaningful data. CVSS AV:L/UI:R confirms the attack is bounded to local execution with required victim interaction - remote unauthenticated exploitation against default network-exposed services is not possible. The attacker must first deliver the malicious shamefile.yaml via a mechanism such as a crafted pull request, shared repository, or compromised upstream dependency.

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 shamefile.yaml in the victim's working directory. The required user interaction (UI:R) - the victim must actively execute shame next - further constrains opportunistic exploitation. The one-line-per-invocation disclosure mechanism makes bulk data exfiltration slow and noisy. No EPSS score was provided and no KEV listing exists, consistent with no confirmed active exploitation. Despite PR:N (no privileges required for the attacker role), the practical threat model centers on supply chain or social engineering scenarios: malicious PRs, shared CI configs, or compromised upstream repositories. The risk is most acute in automated CI pipelines that run shame next without human review of shamefile.yaml provenance.

Exploit ScenarioDerived

An attacker submits a pull request to an open-source project, embedding a shamefile.yaml with a location field set to an absolute path such as /home/developer/.ssh/id_rsa:1 or a traversal path like ../../.aws/credentials:1. When a maintainer or CI system checks out the branch and runs shame next to review pending suppressions, the snippet renderer opens the targeted file and prints one line of its contents directly to the terminal or CI log. By chaining multiple registry entries and triggering repeated shame next invocations, the attacker can progressively extract contents of any file readable by the user. No public proof-of-concept exploit has been identified at time of analysis, but the fix commit documents the precise vulnerable code path.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

cargo shamefile fix: 0.1.7
npm shamefile fix: 0.1.7
pypi shamefile fix: 0.1.7

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

Vendor (https://github.com/BKDDFS/shamefile) PRIMARY 5.5 MEDIUM
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

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

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

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Threat Intel
1
1 source
Data Quality
4 sources
Confidence: Medium

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
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.

Affected Products (CPE)CVE.org

pkg:pip/shamefile
pkg:npm/shamefile
pkg:rust/shamefile

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