CVE-2019-3842 Security feature bypass in systemd
Attackers can bypass polkit authorization checks by manipulating the XDG_SEAT environment variable in specific systemd configurations.
- 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-2019-3842?
CVE-2019-3842 is a medium-severity vulnerability in Debian Debian Linux, published on 9 Apr 2019. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In systemd before v242-rc4, it was discovered that pam_systemd does not properly sanitize the environment before using the XDG_SEAT variable. It is possible for an attacker, in some particular configurations, to set a XDG_SEAT environment variable which allows for commands to be checked against polkit policies using the "allow_active" element rather than "allow_any".
Which versions are affected by CVE-2019-3842?
It affects 4 products.
Products include Debian Debian Linux, Fedoraproject Fedora, Redhat Enterprise Linux, Systemd Project Systemd.
How do I fix CVE-2019-3842?
Upgrade to a fixed version.
Is CVE-2019-3842 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2019-3842 exists.
Public exploit code: 1 Exploit-DB entry.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as DEBIAN-CVE-2019-3842, DSA-4428-1, GHSA-c23j-qp89-q76c, UBUNTU-CVE-2019-3842, USN-3938-1.