Unsafe Dependency Resolution Affecting theshit package, versions <0.1.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-THESHIT-14742499
  • published31 Dec 2025
  • disclosed30 Dec 2025
  • creditAsfhtgkDavid

Introduced: 30 Dec 2025

NewCVE-2025-69257  (opens in a new tab)
CWE-829  (opens in a new tab)

How to fix?

Upgrade theshit to version 0.1.1 or higher.

Overview

Affected versions of this package are vulnerable to Unsafe Dependency Resolution via the loading process for custom Python rules and configuration files from user-writable locations without validating ownership or permissions when executed with elevated privileges. An attacker can execute arbitrary code with root privileges by placing a malicious file in the expected configuration directory. This is only exploitable if the application is run with elevated privileges, such as via sudo, especially in environments where passwordless sudo is permitted.

**

Workaround**

This vulnerability can be mitigated by ensuring 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.

References

CVSS Base Scores

version 4.0
version 3.1