CVE-2019-3842

HIGH

systemd < 242-rc4 - Improper Authorization via XDG_SEAT Environment Variable

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2019-3842. PoCs published by Google Security Research.

AI-analyzed exploit summary This exploit leverages environment variable manipulation in pam_systemd to bypass polkit authentication policies by spoofing a local console session. It demonstrates privilege escalation by tricking systemd-logind into treating an SSH session as a local active session.

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

Exploits (1)

exploitdb WORKING POC VERIFIED
by Google Security Research · textdoslinux
https://www.exploit-db.com/exploits/46743

This exploit leverages environment variable manipulation in pam_systemd to bypass polkit authentication policies by spoofing a local console session. It demonstrates privilege escalation by tricking systemd-logind into treating an SSH session as a local active session.

Classification
Working Poc 95%
Attack Type
Auth Bypass
Complexity
Moderate
Reliability
Reliable
Target: polkit with systemd-logind (pam_systemd)
Auth required
Prerequisites: SSH access to the target machine · Valid user credentials for 'su' · No active sessions on the target machine · Target machine must be displaying a login prompt on tty1
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (8)

Core 8
Core References
Issue Tracking, Third Party Advisory x_refsource_confirm
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-3842
Exploit, Third Party Advisory, VDB Entry exploit x_refsource_exploit-db
https://www.exploit-db.com/exploits/46743/
Third Party Advisory mailing-list x_refsource_mlist
https://lists.debian.org/debian-lts-announce/2019/04/msg00022.html
Third Party Advisory vendor-advisory x_refsource_suse
http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00062.html

Scores

CVSS v3 7.0
EPSS 0.0122
EPSS Percentile 64.7%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-285 CWE-863
Status published
Products (5)
debian/debian_linux 8.0
fedoraproject/fedora 30
redhat/enterprise_linux 7.0
systemd_project/systemd 242 rc1 (3 CPE variants)
systemd_project/systemd < 241
Published Apr 09, 2019
Tracked Since Feb 18, 2026