nono is vulnerable to Race Condition (TOCTOU)
42
Medium Risk
The Linux Landlock sandbox determined a path's file type from a stat() call on the path string and then applied access rules to that path in a separate step. Because the check and the use are not bound to the same inode, a local process can replace a file with a directory between the two steps and be granted unintended recursive directory permissions. This lets code running under the sandbox widen its own filesystem access and weaken the isolation the sandbox is meant to enforce. The fix opens each path once with O_PATH to derive the file type and rights from a stable descriptor and rejects non-socket nodes for unix-socket capabilities.
You are affected if you are using a version that falls within the vulnerable range and you run the Linux Landlock sandbox with file capabilities whose backing paths can be altered by a locally running, sandboxed process that races the sandbox setup.
nono is vulnerable to Race Condition (TOCTOU) in versions 0.1.0 - 0.73.0.
Upgrade the nono library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant