Symlink Attack Affecting keepalived package, versions [0,2.0.9)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (6th 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-UNMANAGED-KEEPALIVED-2370617
  • published26 Jan 2022
  • disclosed8 Nov 2018
  • creditUnknown

Introduced: 8 Nov 2018

CVE-2018-19044  (opens in a new tab)
CWE-59  (opens in a new tab)

How to fix?

Upgrade keepalived to version 2.0.9 or higher.

Overview

Affected versions of this package are vulnerable to Symlink Attack keepalived 2.0.8 didn't check for pathnames with symlinks when writing data to a temporary file upon a call to PrintData or PrintStats. This allowed local users to overwrite arbitrary files if fs.protected_symlinks is set to 0, as demonstrated by a symlink from /tmp/keepalived.data or /tmp/keepalived.stats to /etc/passwd.

CVSS Scores

version 3.1