CVE-2018-19044 Path traversal in n/a

Medium 4.7 Published Updated

Local attackers can overwrite arbitrary files via symlink attacks in Keepalived if protected symlinks are disabled, requiring a patch.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2018-19044?

CVE-2018-19044 is a medium-severity path traversal vulnerability in n/a, published on 8 Nov 2018. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-59

Which versions are affected by CVE-2018-19044?

It affects 1 product.

Linux distribution packages (4)
keepalived Red Hat:enterprise_linux:7::serverAll versions0:1.3.5-16.el7
keepalived-debuginfo Red Hat:enterprise_linux:7::serverAll versions0:1.3.5-16.el7
keepalived Red Hat:enterprise_linux:7::workstationAll versions0:1.3.5-16.el7
keepalived-debuginfo Red Hat:enterprise_linux:7::workstationAll versions0:1.3.5-16.el7

Products include Keepalived Keepalived.

How do I fix CVE-2018-19044?

Apply the vendor's patch.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2018-19044 being exploited?

There is no known exploitation of CVE-2018-19044 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2018-19044, GHSA-2357-m5j6-6jv3, RHSA-2019:2285, UBUNTU-CVE-2018-19044.

Is CVE-2018-19044 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free