trash is vulnerable to Denial of Service (DoS)
25
CVE Score
Low
Denial of Service (DoS)
The FreeDesktop trash implementation in src/freedesktop.rs uses assert!(virtually_exists(...)) in metadata() and restore_all() to check that the file referenced by a .trashinfo entry still exists in trash/files. When an orphaned or malformed .trashinfo entry points to a missing target, the assertion fails and the library panics instead of returning an error, aborting the calling process. An attacker who can place or influence trash entries can crash any application that reads metadata for or restores trash items, such as a file manager. The fix replaces the assertions with ensure_virtually_exists(), which returns an Error::FileSystem NotFound error so callers can handle the missing file gracefully.
Upgrade the trash library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your application runs on a FreeDesktop (Linux) environment and calls the trash metadata or restore APIs on trash contents you do not fully control.
2.0.0 - 5.2.5
Fixed in 5.2.6trash is vulnerable to Denial of Service (DoS) in versions 2.0.0 - 5.2.5.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.