Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. theshit
  4. ›
  5. CVE-2025-69257

CVE-2025-69257: theshit vulnerable to unsafe loading of user-owned Python rules when running as root

December 30, 2025 (updated January 5, 2026)

Vulnerability Type: Local Privilege Escalation (LPE) / Arbitrary Code Execution.

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.

Who is impacted: 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.

References

  • github.com/AsfhtgkDavid/theshit
  • github.com/AsfhtgkDavid/theshit/commit/8e0b565e7876a83b0e1cfbacb8af39dadfdcc500
  • github.com/AsfhtgkDavid/theshit/security/advisories/GHSA-95qg-89c2-w5hj
  • github.com/advisories/GHSA-95qg-89c2-w5hj
  • nvd.nist.gov/vuln/detail/CVE-2025-69257
  • rustsec.org/advisories/RUSTSEC-2025-0139.html

Code Behaviors & Features

Detect and mitigate CVE-2025-69257 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.1.1

Fixed versions

  • 0.1.1

Solution

Upgrade to version 0.1.1 or above.

Impact 6.7 MEDIUM

CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-269: Improper Privilege Management

Source file

cargo/theshit/CVE-2025-69257.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 04 Feb 2026 00:35:42 +0000.