coreutils is vulnerable to Incorrect Permission Assignment
50
CVE Score
Medium
Incorrect Permission Assignment
install's fd-based copy path, reached by install -D, opens the destination with O_CREAT|O_WRONLY|O_TRUNC and a default mode of 0666, unlike the path-based copy which opens with O_EXCL and mode 0600. A request such as install -m 600 secret.key /etc/... therefore briefly creates the file group/world readable under the process umask before the trailing chmod narrows it, so another local user can read the content during that window. The same fd path also unlinks the target before recreating it, opening a hard-link planting race. The fix routes the fd-based copy through the same private, exclusive creation already used by the path-based copy.
Upgrade the coreutils library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you run install -D (or another form that uses the fd-based copy path) to place a file with a restrictive mode on a host with other local users.
0.0.1 - 0.11.0
Fixed in 0.12.0coreutils is vulnerable to Incorrect Permission Assignment in versions 0.0.1 - 0.11.0.
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.