Skip to content
OpenAdvisories
Medium · 4.5 Public exploit CVE-2019-3842 EUVD-2019-13462GHSA-c23j-qp89-q76c

In systemd before v242-rc4, it was discovered that pam_systemd does not properly sanitize the environment before using the XDG_SEAT variabl…

Published Apr 9, 2019 · Updated Jun 9, 2025 · Assigned by redhat

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

Affected products

VendorProductAffectedFixed
The systemd Project systemd v242-rc4 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 systemd 241-3 —
Debian 13 systemd 241-3 —
Debian 12 systemd 241-3 —
Debian 9 systemd 232-25+deb9u11 DSA-4428-1
Debian 8 systemd 215-17+deb8u12 DLA-1762-1
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS systemd 237-3ubuntu10.19 USN-3938-1
Ubuntu 16.04 LTS systemd 229-4ubuntu21.21 USN-3938-1
Ubuntu 14.04 LTS systemd 204-5ubuntu20.31 USN-3938-1
ReleasePackageFixed inAdvisory
RHEL 8 systemd +7 239-45.el8 RHSA-2021:1611
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 8.2 EUS systemd +7 239-31.el8_2.7 RHSA-2021:3900

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 systemd 239-45.el8 RLSA-2021:1611
ReleasePackageFixed inAdvisory
SLES 15 SP1 systemd 234-24.30.1 SUSE-SU-2019:1364-2
SLES 15 systemd 234-24.30.1 SUSE-SU-2019:1364-1
SLES 12 SP4 systemd 228-150.66.4 SUSE-SU-2019:1265-1
SLES 12 SP3 systemd 228-150.66.4 SUSE-SU-2019:1265-1
SLES 12 SP2 systemd 228-150.66.4 SUSE-SU-2019:1265-1
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP4 systemd 228-150.66.4 SUSE-SU-2019:1265-1
SLES for SAP 12 SP3 systemd 228-150.66.4 SUSE-SU-2019:1265-1
SLES for SAP 12 SP2 systemd 228-150.66.4 SUSE-SU-2019:1265-1
SUSE OpenStack Cloud 7 systemd 228-150.66.4 SUSE-SU-2019:1265-1
SUSE Enterprise Storage 4 systemd 228-150.66.4 SUSE-SU-2019:1265-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed systemd 249.4-2.2 openSUSE-SU-2024:11420-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 systemd +9 219-78.amzn2.0.20 ALAS2-2022-1854

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 systemd +7 239-45.0.1.el8 ELSA-2021-1611

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 13

References