Intel

AIKIDO-2026-510590

coreutils is vulnerable to Improper Preservation of Permissions

GHSA-6c4j-6pgg-xgg8Published Sep 18, 2026
September 18, 2026

33

CVE Score

Low

Improper Preservation of Permissions

Are you affected? Scan for Free

TL;DR

When mv falls back to a cross-device copy (after rename(2) returns EXDEV), it best-effort preserves source ownership and then applies the full source mode, including setuid/setgid bits (0o6000). If ownership cannot be preserved — for example when an unprivileged user moves a root-owned setuid/setgid file across a filesystem boundary — the destination remains owned by the mover but still carries those bits. GNU mv and fixed uutils cp strip setuid/setgid in that case. The fix tracks whether ownership was actually preserved and masks 0o6000 from the applied mode when it was not.

How do I fix this?

Upgrade the coreutils library to the patch version.

Who does this affect?

You are affected if you are using a version within the vulnerable range and you run mv to move a setuid or setgid file across a filesystem boundary when the mover cannot preserve the source ownership.

Package

Versions

0.0.1 - 0.9.0

Fixed in 0.10.0

Background info

coreutils is vulnerable to Improper Preservation of Permissions in versions 0.0.1 - 0.9.0.

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea