Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-69257

MEDIUM 6.7EPSS 3%

theshit vulnerable to unsafe loading of user-owned Python rules when running as root.

Also known as GHSA-95qg-89c2-w5hj, RUSTSEC-2025-0139

Mitigation

  • Upgrade theshit to 0.1.1 or later.

Who should check

  • Projects that depend on crates.io package theshit (< 0.1.1)
  • Anyone running AsfhtgkDavid theshit < 0.1.1

Vulnerability facts

Affected
theshit < 0.1.1
Fixed in
0.1.1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
6.7 (v3.1, CNA)CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: High
  • Privileges required: Low
  • User interaction: Required
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.16% chance of exploitation in 30 days (percentile 3, 2026-11-26)
CWE
CWE-269, CWE-284, CWE-829
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
crates.io theshit< 0.1.10.1.1osv
AsfhtgkDavid theshit< 0.1.1—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-69257. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-69257.md
Affected: theshit < 0.1.1
Fixed in: 0.1.1

Steps:
1. Search this machine and project for theshit (crates.io), AsfhtgkDavid theshit: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-69257 being exploited?

There is no confirmed exploitation: CVE-2025-69257 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.16% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-69257?

Medium: CVSS 6.7 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2025-69257?

theshit < 0.1.1.

Is there a fix for CVE-2025-69257?

Yes. Fixed in 0.1.1. Upgrade theshit to 0.1.1 or later.

How do I check if I'm affected by CVE-2025-69257?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors