CVE-2018-19046
keepalived 2.0.8 didn't check for existing plain files when writing data to a temporary file upon a call to PrintData or PrintStats. If a local attacker had previously created a file with the expected name (e.g., /tmp/keepalived.data or /tmp/keepalived.stats), with read access for the attacker and write access for the keepalived process, then this potentially leaked sensitive information.
What to do
Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | keepalived | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | keepalived | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | keepalived | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | keepalived | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | keepalived | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | keepalived | Fix pending | UBUNTU-CVE-2018-19046 | |
| Ubuntu 16.04 | keepalived | Not affected vulnerable_code_not_present | ||
| Debian 14 | keepalived | Fixed | 1:2.0.10-1 | DEBIAN-CVE-2018-19046 |
| Debian 13 | keepalived | Fixed | 1:2.0.10-1 | DEBIAN-CVE-2018-19046 |
| Debian 12 | keepalived | Fixed | 1:2.0.10-1 | DEBIAN-CVE-2018-19046 |
| Red Hat Enterprise Linux 8 | keepalived | Not affected | ||
| Red Hat Enterprise Linux 7 | keepalived | Not affected | ||
| Red Hat Enterprise Linux 6 | keepalived | Not affected | ||
| Alpine Linux 3.24 | keepalived | Fixed | 2.0.11-r0 | ALPINE-CVE-2018-19046 |
| Alpine Linux 3.23 | keepalived | Fixed | 2.0.11-r0 | ALPINE-CVE-2018-19046 |
| Alpine Linux 3.22 | keepalived | Fixed | 2.0.11-r0 | ALPINE-CVE-2018-19046 |
| Alpine Linux 3.21 | keepalived | Fixed | 2.0.11-r0 | ALPINE-CVE-2018-19046 |
| Alpine Linux 3.20 | keepalived | Fixed | 2.0.11-r0 | ALPINE-CVE-2018-19046 |
| Alpine Linux 3.19 | keepalived | Fixed | 2.0.11-r0 | ALPINE-CVE-2018-19046 |
| Alpine Linux 3.18 | keepalived | Fixed | 2.0.11-r0 | ALPINE-CVE-2018-19046 |
| Alpine Linux 3.17 | keepalived | Fixed | 2.0.11-r0 | ALPINE-CVE-2018-19046 |
| Alpine Linux 3.16 | keepalived | Fixed | 2.0.11-r0 | ALPINE-CVE-2018-19046 |
| Alpine Linux 3.15 | keepalived | Fixed | 2.0.11-r0 | ALPINE-CVE-2018-19046 |
| Alpine Linux 3.14 | keepalived | Fixed | 2.0.11-r0 | ALPINE-CVE-2018-19046 |
| Alpine Linux 3.13 | keepalived | Fixed | 2.0.11-r0 | ALPINE-CVE-2018-19046 |
| Alpine Linux 3.12 | keepalived | Fixed | 2.0.11-r0 | ALPINE-CVE-2018-19046 |
| Alpine Linux 3.11 | keepalived | Fixed | 2.0.11-r0 | ALPINE-CVE-2018-19046 |
| Alpine Linux 3.10 | keepalived | Fixed | 2.0.11-r0 | ALPINE-CVE-2018-19046 |
| Alpine Linux 3.9 | keepalived | Fixed | 2.0.11-r0 | ALPINE-CVE-2018-19046 |
| Alpine Linux 3.8 | keepalived | Fixed | 2.0.11-r0 | ALPINE-CVE-2018-19046 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://security.gentoo.org/glsa/201903-01 (vendor-advisory)
References
- https://security.gentoo.org/glsa/201903-01
- https://bugzilla.suse.com/show_bug.cgi?id=1015141
- https://github.com/acassen/keepalived/issues/1048
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.