CVE-2019-3842

published 9 Apr 2019 · updated 9 Jun 2025

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".

5.5MediumCVSS 4.5EPSS 1%2 public exploits

2 public exploits exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. No fixed version is recorded.

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".

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
The systemd Project=v242-rc4

Exploit evidence

2 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2019-3842 severity on Zeptric[![CVE-2019-3842](https://zeptric.io/badge/cve/CVE-2019-3842.svg)](https://zeptric.io/cve/CVE-2019-3842)