CVE-2018-19788 Integer overflow in n/a

High 8.8 Published Updated

A user with a UID greater than INT_MAX can execute arbitrary systemctl commands, leading to privilege escalation on Linux systems using PolicyKit.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-19788?

CVE-2018-19788 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 3 Dec 2018. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A flaw was found in PolicyKit (aka polkit) 0.115 that allows a user with a uid greater than INT_MAX to successfully execute any systemctl command.

Weakness: CWE-20

Which versions are affected by CVE-2018-19788?

It affects 3 products.

Linux distribution packages (40)
polkit Red Hat:enterprise_linux:7::clientAll versions0:0.112-22.el7
polkit-debuginfo Red Hat:enterprise_linux:7::clientAll versions0:0.112-22.el7
polkit-devel Red Hat:enterprise_linux:7::clientAll versions0:0.112-22.el7
polkit-docs Red Hat:enterprise_linux:7::clientAll versions0:0.112-22.el7
polkit Red Hat:enterprise_linux:7::computenodeAll versions0:0.112-22.el7
polkit-debuginfo Red Hat:enterprise_linux:7::computenodeAll versions0:0.112-22.el7
polkit-devel Red Hat:enterprise_linux:7::computenodeAll versions0:0.112-22.el7
polkit-docs Red Hat:enterprise_linux:7::computenodeAll versions0:0.112-22.el7
polkit Red Hat:enterprise_linux:7::serverAll versions0:0.112-22.el7
polkit-debuginfo Red Hat:enterprise_linux:7::serverAll versions0:0.112-22.el7
polkit-devel Red Hat:enterprise_linux:7::serverAll versions0:0.112-22.el7
polkit-docs Red Hat:enterprise_linux:7::serverAll versions0:0.112-22.el7
polkit Red Hat:enterprise_linux:7::workstationAll versions0:0.112-22.el7
polkit-debuginfo Red Hat:enterprise_linux:7::workstationAll versions0:0.112-22.el7
polkit-devel Red Hat:enterprise_linux:7::workstationAll versions0:0.112-22.el7
polkit-docs Red Hat:enterprise_linux:7::workstationAll versions0:0.112-22.el7
polkit Red Hat:rhel_eus:7.6::computenodeAll versions0:0.112-18.el7_6.2
polkit-debuginfo Red Hat:rhel_eus:7.6::computenodeAll versions0:0.112-18.el7_6.2
polkit-devel Red Hat:rhel_eus:7.6::computenodeAll versions0:0.112-18.el7_6.2
polkit-docs Red Hat:rhel_eus:7.6::computenodeAll versions0:0.112-18.el7_6.2
polkit Red Hat:rhel_eus:7.6::serverAll versions0:0.112-18.el7_6.2
polkit-debuginfo Red Hat:rhel_eus:7.6::serverAll versions0:0.112-18.el7_6.2
polkit-devel Red Hat:rhel_eus:7.6::serverAll versions0:0.112-18.el7_6.2
polkit-docs Red Hat:rhel_eus:7.6::serverAll versions0:0.112-18.el7_6.2
polkit SUSE:Enterprise Storage 4All versions0.113-5.15.1
polkit SUSE:Linux Enterprise Desktop 12 SP3All versions0.113-5.15.1
polkit SUSE:Linux Enterprise Desktop 12 SP4All versions0.113-5.15.1
polkit SUSE:Linux Enterprise Module for Basesystem 15All versions0.114-3.6.1
polkit SUSE:Linux Enterprise Server 12 SP1-LTSSAll versions0.113-5.15.1
polkit SUSE:Linux Enterprise Server 12 SP2-BCLAll versions0.113-5.15.1
polkit SUSE:Linux Enterprise Server 12 SP2-LTSSAll versions0.113-5.15.1
polkit SUSE:Linux Enterprise Server 12 SP3All versions0.113-5.15.1
polkit SUSE:Linux Enterprise Server 12 SP4All versions0.113-5.15.1
polkit SUSE:Linux Enterprise Server 12-LTSSAll versions0.113-5.15.1
polkit SUSE:Linux Enterprise Server for SAP Applications 12 SP1All versions0.113-5.15.1
polkit SUSE:Linux Enterprise Server for SAP Applications 12 SP2All versions0.113-5.15.1
polkit SUSE:Linux Enterprise Server for SAP Applications 12 SP3All versions0.113-5.15.1
polkit SUSE:Linux Enterprise Server for SAP Applications 12 SP4All versions0.113-5.15.1
polkit SUSE:Linux Enterprise Software Development Kit 12 SP3All versions0.113-5.15.1
polkit SUSE:Linux Enterprise Software Development Kit 12 SP4All versions0.113-5.15.1

Products include Canonical Ubuntu Linux, Debian Debian Linux, Polkit Project Polkit.

How do I fix CVE-2018-19788?

Apply the vendor's patch.

Is CVE-2018-19788 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-19788 exists.

Public exploit code: 4 proofs of concept on GitHub.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2018-19788, DEBIAN-CVE-2018-19788, DSA-4350-1, GHSA-4569-2jp2-r7vf, RHSA-2019:2046, RHSA-2019:3232 and 6 more.

Is CVE-2018-19788 in your software?

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

Check your SBOMs for free