Race Condition Affecting coreutils package, versions <8.30-r0


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.35% (29th 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-ALPINE322-COREUTILS-10276328
  • published31 May 2025
  • disclosed4 Jan 2018

Introduced: 4 Jan 2018

CVE-2017-18018  (opens in a new tab)
CWE-362  (opens in a new tab)

How to fix?

Upgrade Alpine:3.22 coreutils to version 8.30-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream coreutils package and not the coreutils package as distributed by Alpine. See How to fix? for Alpine:3.22 relevant fixed versions and status.

In GNU Coreutils through 8.29, chown-core.c in chown and chgrp does not prevent replacement of a plain file with a symlink during use of the POSIX "-R -L" options, which allows local users to modify the ownership of arbitrary files by leveraging a race condition.