CVE-2025-69257
Last modified
CVE-2025-69257 is a medium-severity vulnerability rated 6.7/10 on the CVSS scale. 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. EPSS estimates a 0.12% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-69257?
How severe is CVE-2025-69257?
How do I fix CVE-2025-69257?
How Strix Helps
- Uncovering a hidden BOLA in Appsmith's snapshot logicStrix autonomously discovered a BOLA/IDOR vulnerability in Appsmith's snapshot deletion path.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-69250free5gc UDM provides Unified Data Management (UDM) for free5…7.5
- CVE-2025-69251free5gc UDM provides Unified Data Management (UDM) for free5…5.3
- CVE-2025-69252free5gc UDM provides Unified Data Management (UDM) for free5…7.5
- CVE-2025-69253free5GC is an open-source project for 5th generation (5G) mo…5.3
- CVE-2025-69255RustFS is a distributed object storage system built in Rust.…4
- CVE-2025-69256The Serverless Framework is a framework for using AWS Lambda…7.5
- CVE-2025-69258A LoadLibraryEX vulnerability in Trend Micro Apex Central co…9.8
- CVE-2025-69259A message unchecked NULL return value vulnerability in Trend…7.5
- CVE-2025-6926Improper Authentication vulnerability in Wikimedia Foundatio…8.8
- CVE-2025-69260A message out-of-bounds read vulnerability in Trend Micro Ap…7.5
- CVE-2025-69261WasmEdge is a WebAssembly runtime. Prior to version 0.16.0-a…7.5
- CVE-2025-69262pnpm is a package manager. Versions 6.25.0 through 10.26.2 h…7.8
Are you affected by CVE-2025-69257?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
