CVE-2025-69257 in Python products
theshit is a command-line utility that automatically detects and fixes common mistakes in shell commands. Prior to version 0.1.1, the application loads custom Python rules and configuration files from user-writable locations (e.g., `~/.config/theshit/`) without validating ownership or permissions when executed with ...
Affects 0 products from 1 vendor. Facts below cite their sources.
Requires local access, high complexity, low privileges required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Python | — | — |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
theshit is a command-line utility that automatically detects and fixes common mistakes in shell commands. Prior to version 0.1.1, the application loads custom Python rules and configuration files from user-writable locations (e.g., `~/.config/theshit/`) without validating ownership or permissions when executed with elevated privileges. If the tool is invoked with `sudo` or otherwise runs with an effective UID of root, it continues to trust configuration files originating from the unprivileged user's environment. This allows a local attacker to inject arbitrary Python code via a malicious rule or configuration file, which is then executed with root privileges. Any system where this tool is executed with elevated privileges is affected. In environments where the tool is permitted to run via `sudo` without a password (`NOPASSWD`), a local unprivileged user can escalate privileges to root without additional interaction. The issue has been fixed in version 0.1.1. The patch introduces strict ownership and permission checks for all configuration files and custom rules. The application now enforces that rules are only loaded if they are owned by the effective user executing the tool. When executed with elevated privileges (`EUID=0`), the application refuses to load any files that are not owned by root or that are writable by non-root users. When executed as a non-root user, it similarly refuses to load rules owned by other users. This prevents both vertical and horizontal privilege escalation via execution of untrusted code. If upgrading is not possible, users should avoid executing the application with `sudo` or as the root user. As a temporary mitigation, ensure that directories containing custom rules and configuration files are owned by root and are not writable by non-root users. Administrators may also audit existing custom rules before running the tool with elevated privileges.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-69257 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-032550-M |
| CVSS vector | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H |
| Published | 2025-12-30 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-269: Improper Privilege Management
Software does not properly assign, modify, track, or check privileges, allowing unauthorized elevation of access.
CWE-284: Improper Access Control
Software does not restrict or incorrectly restricts access to a resource.
CWE-829: CWE-829
Related attack patterns (CAPEC)
CAPEC-58 Restful Privilege Elevation via CWE-269
CAPEC-201 Serialized Data External Linking via CWE-829
CAPEC-228 DTD Injection via CWE-829
CAPEC-252 PHP Local File Inclusion via CWE-829
CAPEC-263 Force Use of Corrupted Files via CWE-829
Show all 33
CAPEC-478 Modification of Windows Service Configuration via CWE-284
CAPEC-479 Malicious Root Certificate via CWE-284
CAPEC-538 Open-Source Library Manipulation via CWE-829
CAPEC-546 Incomplete Data Deletion in a Multi-Tenant Environment via CWE-284
CAPEC-550 Install New Service via CWE-284
CAPEC-551 Modify Existing Service via CWE-284
CAPEC-552 Install Rootkit via CWE-284
CAPEC-556 Replace File Extension Handlers via CWE-284
CAPEC-558 Replace Trusted Executable via CWE-284
CAPEC-562 Modify Shared File via CWE-284
CAPEC-563 Add Malicious File to Shared Webroot via CWE-284
CAPEC-564 Run Software at Logon via CWE-284
CAPEC-640 Inclusion of Code in Existing Process via CWE-829
CAPEC-660 Root/Jailbreak Detection Evasion via Hooking via CWE-829
CAPEC-695 Repo Jacking via CWE-829
CAPEC-698 Install Malicious Extension via CWE-829
CAPEC-19 Embedding Scripts within Scripts via CWE-284
CAPEC-251 Local Code Inclusion via CWE-829
CAPEC-253 Remote Code Inclusion via CWE-829
CAPEC-502 Intent Spoof via CWE-284
CAPEC-503 WebView Exposure via CWE-284
CAPEC-536 Data Injected During Configuration via CWE-284
CAPEC-578 Disable Security Software via CWE-284
CAPEC-122 Privilege Abuse via CWE-269
CAPEC-175 Code Inclusion via CWE-829
CAPEC-233 Privilege Escalation via CWE-269
CAPEC-441 Malicious Logic Insertion via CWE-284
CAPEC-549 Local Execution of Code via CWE-829
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2025-69257 affects theshit, a command-line utility, by loading custom Python rules and configuration files from user-writable locations without validating ownership or permissions when executed with elevated privileges, potentially allowing privilege escalation.
An attacker could place a malicious Python script in the user-writable configuration directory (e.g., ~/.config/theshit/) and execute theshit with elevated privileges (e.g., using sudo). The application would then load and execute the malicious script, potentially granting the attacker elevated privileges.
Questions
What is CVE-2025-69257?
CVE-2025-69257 affects theshit, a command-line utility, by loading custom Python rules and configuration files from user-writable locations without validating ownership or permissions when executed with elevated privileges, potentially allowing privilege escalation.
What is the CVSS score for CVE-2025-69257?
CVE-2025-69257 has CVSS 6.7 (Medium). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H. EPSS: 0.2%.
Is CVE-2025-69257 actively exploited?
No confirmed active exploitation of CVE-2025-69257 as of 2026-09-25.
How do I remediate CVE-2025-69257?
Priority: HIGH.
What systems are affected by CVE-2025-69257?
CVE-2025-69257 affects Python.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Python","product":"EDS-518A","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.