Symlink Vulnerability in Chrony Package: CVE-2020-14367

chrony Updated 02 Oct 2025

Summary

24/08/2020
N/A
Yes i
Medium
6.0

ALPINE-CVE-2020-14367: A flaw was found in chrony versions before 3.5.1 when creating the PID file under the /var/run/chrony folder. Affects chrony versions < 3.5.1-r0. Fixed in 3.5.1-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Chrony is a versatile Network Time Protocol (NTP) client and server designed to keep the system clock accurate. It is particularly useful in environments where the system may not have continuous network access. The package is known for its efficiency and ability to synchronize time quickly, making it a popular choice for many Linux distributions, including Alpine. However, a critical vulnerability has been identified in Chrony versions prior to 3.5.1, which could lead to severe security risks.

Vulnerability Detail

A flaw was found in Chrony versions before 3.5.1 when creating the PID file under the /var/run/chrony folder. The file is created during chronyd startup while still running as the root user. When opened for writing, chronyd does not check for an existing symbolic link with the same file name. This oversight allows an attacker with privileged access to create a symlink with the default PID file name pointing to any destination file in the system, leading to potential data loss and denial of service due to path traversal.

How To Fix

Minimum fixed version

3.5.1-r0

This is the first release that contains the fix.

sudo apk add --upgrade chrony

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can restrict access to the /var/run/chrony directory to prevent unauthorized users from creating symbolic links. This can be done by changing the permissions of the directory using the command: 'chmod 700 /var/run/chrony'. However, this does not fully mitigate the risk and should only be used until the package is updated.

Conclusion

The vulnerability CVE-2020-14367 in the Chrony package poses significant risks due to improper handling of PID files. It is crucial for users to update to the patched version to mitigate these risks. Regular monitoring and vulnerability management practices, such as using tools like Vulert, can help maintain the security of your systems.

See every vulnerability recorded for chrony →

Share this vulnerability

FAQ

CVE-2020-14367 is a vulnerability in the Chrony package that allows an attacker to exploit symlink creation, potentially leading to data loss and denial of service.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

The vulnerability can lead to data loss and denial of service, as attackers can manipulate the PID file to point to arbitrary files.

Yes, the patch is available in Chrony version 3.5.1-r0 and later. Updating to this version will resolve the issue.

The CVSS score of CVE-2020-14367 is 6.0, indicating a medium severity level.

Related vulnerabilities

Recent vulnerabilities recorded for chrony.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

3.5.1-r0

This is the first release that contains the fix.

sudo apk add --upgrade chrony

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback