Every CVE Search/ Get API key

CVE-2019-3842

In systemd before v242-rc4, it was discovered that pam_systemd does not properly sanitize the...

4.5 MediumPublic exploitFix available

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

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
High
Privileges needed
Low
User interaction
None

What an attacker can affect

Confidentiality
Low
Integrity
Low
Availability
Low

Exploit likelihood

1.21%Down 5.0 points since Apr 14, 2021
90%50%10%1%

What each source reports

CVE List Score used 4.5

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

Record
CVE-2019-3842
CVSS 3.0
4.5 MediumCVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
Weakness
CWE-285
Updated
2026-11-02
EUVDEUVD-2019-13462 4.5

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

Record
EUVD-2019-13462
CVSS 3.0
4.5 MediumCVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
Updated
2026-11-02
GitHub AdvisoriesGHSA-c23j-qp89-q76c 7.0

In systemd before v242-rc4, it was discovered that pam_systemd does not properly sanitize the...

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

Record
GHSA-c23j-qp89-q76c
CVSS 3.1
7.0 HighCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-863
Updated
2026-11-02
NVD 7.0

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

Record
CVE-2019-3842
CVSS 3.1
7.0 HighCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 3.0
4.5 MediumCVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
CVSS 2.0
4.4 MediumAV:L/AC:M/Au:N/C:P/I:P/A:P
Weakness
CWE-285, CWE-863
Updated
2026-11-02
OSV 7.0

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

Record
CVE-2019-3842
CVSS 3.1
7.0 HighCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2019-3842 7.0

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

Record
DEBIAN-CVE-2019-3842
CVSS 3.1
7.0 HighCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 9 moreShow less
OSVRHSA-2021:1611 6.7

Red Hat Security Advisory: systemd security, bug fix, and enhancement update

Record
RHSA-2021:1611
CVSS 3.1
6.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVRHSA-2021:3900 6.7

Red Hat Security Advisory: systemd security update

Record
RHSA-2021:3900
CVSS 3.1
6.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVRLSA-2021:1611 6.7

Moderate: systemd security, bug fix, and enhancement update

The systemd packages contain systemd, a system and service manager for Linux, compatible with the SysV and LSB init scripts. It provides aggressive parallelism capabilities, uses socket and D-Bus activation for starting services, offers on-demand starting of daemons, and keeps track of processes using Linux cgroups. In addition, it supports snapshotting and restoring of the system state, maintains mount and automount points, and implements an elaborate transactional dependency-based service control logic. It can also work as a drop-in replacement for sysvinit.

Security Fix(es):

  • systemd: Spoofing of XDG_SEAT allows for actions to be checked against "allow_active" instead of "allow_any" (CVE-2019-3842)

  • systemd: Mishandles numerical usernames beginning with decimal digits or 0x followed by hexadecimal digits (CVE-2020-13776)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Additional Changes:

For detailed information on changes in this release, see the Rocky Linux 8.4 Release Notes linked from the References section.

Record
RLSA-2021:1611
CVSS 3.1
6.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2019-3842 7.0

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

Record
UBUNTU-CVE-2019-3842
CVSS 3.1
7.0 HighCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 3.0
4.5 MediumCVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
CVSS 3.0
7.0 HighCVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVopenSUSE-SU-2024:11420-1 No score

libsystemd0-249.4-2.2 on GA media

These are all security issues fixed in the libsystemd0-249.4-2.2 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:11420-1
Updated
2026-11-02
OSVSUSE-SU-2019:1265-1 No score

Security update for systemd

This update for systemd fixes the following issues:

Security issues fixed:

  • CVE-2018-6954: Fixed a vulnerability in the symlink handling of systemd-tmpfiles which allowed a local user to obtain ownership of arbitrary files (bsc#1080919).
  • CVE-2019-3842: Fixed a vulnerability in pam_systemd which allowed a local user to escalate privileges (bsc#1132348).
  • CVE-2019-6454: Fixed a denial of service caused by long dbus messages (bsc#1125352).

Non-security issues fixed:

  • systemd-coredump: generate a stack trace of all core dumps (jsc#SLE-5933)
  • udevd: notify when max number value of children is reached only once per batch of events (bsc#1132400)
  • sd-bus: bump message queue size again (bsc#1132721)
  • core: only watch processes when it's really necessary (bsc#955942 bsc#1128657)
  • rules: load drivers only on 'add' events (bsc#1126056)
  • sysctl: Don't pass null directive argument to '%s' (bsc#1121563)
  • Do not automatically online memory on s390x (bsc#1127557)
Record
SUSE-SU-2019:1265-1
Updated
2026-11-02
OSVSUSE-SU-2019:1364-1 No score

Security update for systemd

This update for systemd fixes the following issues:

Security issues fixed:

  • CVE-2019-3842: Fixed a privilege escalation in pam_systemd which could be exploited by a local user (bsc#1132348).
  • CVE-2019-6454: Fixed a denial of service via crafted D-Bus message (bsc#1125352).
  • CVE-2019-3843, CVE-2019-3844: Fixed a privilege escalation where services with DynamicUser could gain new privileges or create SUID/SGID binaries (bsc#1133506, bsc#1133509).

Non-security issued fixed:

  • logind: fix killing of scopes (bsc#1125604)
  • namespace: make MountFlags=shared work again (bsc#1124122)
  • rules: load drivers only on 'add' events (bsc#1126056)
  • sysctl: Don't pass null directive argument to '%s' (bsc#1121563)
  • systemd-coredump: generate a stack trace of all core dumps and log into the journal (jsc#SLE-5933)
  • udevd: notify when max number value of children is reached only once per batch of events (bsc#1132400)
  • sd-bus: bump message queue size again (bsc#1132721)
  • Do not automatically online memory on s390x (bsc#1127557)
  • Removed sg.conf (bsc#1036463)
Record
SUSE-SU-2019:1364-1
Updated
2026-11-02
OSVSUSE-SU-2019:1364-2 No score

Security update for systemd

This update for systemd fixes the following issues:

Security issues fixed:

  • CVE-2019-3842: Fixed a privilege escalation in pam_systemd which could be exploited by a local user (bsc#1132348).
  • CVE-2019-6454: Fixed a denial of service via crafted D-Bus message (bsc#1125352).
  • CVE-2019-3843, CVE-2019-3844: Fixed a privilege escalation where services with DynamicUser could gain new privileges or create SUID/SGID binaries (bsc#1133506, bsc#1133509).

Non-security issued fixed:

  • logind: fix killing of scopes (bsc#1125604)
  • namespace: make MountFlags=shared work again (bsc#1124122)
  • rules: load drivers only on 'add' events (bsc#1126056)
  • sysctl: Don't pass null directive argument to '%s' (bsc#1121563)
  • systemd-coredump: generate a stack trace of all core dumps and log into the journal (jsc#SLE-5933)
  • udevd: notify when max number value of children is reached only once per batch of events (bsc#1132400)
  • sd-bus: bump message queue size again (bsc#1132721)
  • Do not automatically online memory on s390x (bsc#1127557)
  • Removed sg.conf (bsc#1036463)
Record
SUSE-SU-2019:1364-2
Updated
2026-11-02
OSVUSN-3938-1 No score

systemd vulnerability

Jann Horn discovered that pam_systemd created logind sessions using some parameters from the environment. A local attacker could exploit this in order to spoof the active session and gain additional PolicyKit privileges.

Record
USN-3938-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
systemd
Debian:12
before 241-3
241-3
systemd
Debian:13
before 241-3
241-3
systemd
Debian:14
before 241-3
241-3
systemd
Debian:8
From an advisory covering 2 CVEs
before 215-17+deb8u12, plus listed versions
215-17215-17+deb8u1215-17+deb8u10215-17+deb8u11215-17+deb8u2
Show 7 moreShow less
215-17+deb8u3215-17+deb8u4215-17+deb8u5215-17+deb8u6215-17+deb8u7215-17+deb8u8215-17+deb8u9
215-17+deb8u12
systemd
Debian:9
before 232-25+deb9u11, plus listed versions
232-25232-25+deb9u1232-25+deb9u10232-25+deb9u2232-25+deb9u3
Show 6 moreShow less
232-25+deb9u4232-25+deb9u5232-25+deb9u6232-25+deb9u7232-25+deb9u8232-25+deb9u9
232-25+deb9u11
systemd
Red Hat:enterprise_linux:8::baseos
From an advisory covering 2 CVEs
before 0:239-45.el8
0:239-45.el8
systemd-container
Red Hat:enterprise_linux:8::baseos
From an advisory covering 2 CVEs
before 0:239-45.el8
0:239-45.el8
systemd-container-debuginfo
Red Hat:enterprise_linux:8::baseos
From an advisory covering 2 CVEs
before 0:239-45.el8
0:239-45.el8
systemd-debuginfo
Red Hat:enterprise_linux:8::baseos
From an advisory covering 2 CVEs
before 0:239-45.el8
0:239-45.el8
systemd-debugsource
Red Hat:enterprise_linux:8::baseos
From an advisory covering 2 CVEs
before 0:239-45.el8
0:239-45.el8
Show 47 moreShow less
Affected packages
PackageAffectedFixed
systemd-devel
Red Hat:enterprise_linux:8::baseos
From an advisory covering 2 CVEs
before 0:239-45.el8
0:239-45.el8
systemd-journal-remote
Red Hat:enterprise_linux:8::baseos
From an advisory covering 2 CVEs
before 0:239-45.el8
0:239-45.el8
systemd-journal-remote-debuginfo
Red Hat:enterprise_linux:8::baseos
From an advisory covering 2 CVEs
before 0:239-45.el8
0:239-45.el8
systemd-libs
Red Hat:enterprise_linux:8::baseos
From an advisory covering 2 CVEs
before 0:239-45.el8
0:239-45.el8
systemd-libs-debuginfo
Red Hat:enterprise_linux:8::baseos
From an advisory covering 2 CVEs
before 0:239-45.el8
0:239-45.el8
systemd-pam
Red Hat:enterprise_linux:8::baseos
From an advisory covering 2 CVEs
before 0:239-45.el8
0:239-45.el8
systemd-pam-debuginfo
Red Hat:enterprise_linux:8::baseos
From an advisory covering 2 CVEs
before 0:239-45.el8
0:239-45.el8
systemd-tests
Red Hat:enterprise_linux:8::baseos
From an advisory covering 2 CVEs
before 0:239-45.el8
0:239-45.el8
systemd-tests-debuginfo
Red Hat:enterprise_linux:8::baseos
From an advisory covering 2 CVEs
before 0:239-45.el8
0:239-45.el8
systemd-udev
Red Hat:enterprise_linux:8::baseos
From an advisory covering 2 CVEs
before 0:239-45.el8
0:239-45.el8
systemd-udev-debuginfo
Red Hat:enterprise_linux:8::baseos
From an advisory covering 2 CVEs
before 0:239-45.el8
0:239-45.el8
systemd
Red Hat:rhel_eus:8.2::baseos
From an advisory covering 2 CVEs
before 0:239-31.el8_2.7
0:239-31.el8_2.7
systemd-container
Red Hat:rhel_eus:8.2::baseos
From an advisory covering 2 CVEs
before 0:239-31.el8_2.7
0:239-31.el8_2.7
systemd-container-debuginfo
Red Hat:rhel_eus:8.2::baseos
From an advisory covering 2 CVEs
before 0:239-31.el8_2.7
0:239-31.el8_2.7
systemd-debuginfo
Red Hat:rhel_eus:8.2::baseos
From an advisory covering 2 CVEs
before 0:239-31.el8_2.7
0:239-31.el8_2.7
systemd-debugsource
Red Hat:rhel_eus:8.2::baseos
From an advisory covering 2 CVEs
before 0:239-31.el8_2.7
0:239-31.el8_2.7
systemd-devel
Red Hat:rhel_eus:8.2::baseos
From an advisory covering 2 CVEs
before 0:239-31.el8_2.7
0:239-31.el8_2.7
systemd-journal-remote
Red Hat:rhel_eus:8.2::baseos
From an advisory covering 2 CVEs
before 0:239-31.el8_2.7
0:239-31.el8_2.7
systemd-journal-remote-debuginfo
Red Hat:rhel_eus:8.2::baseos
From an advisory covering 2 CVEs
before 0:239-31.el8_2.7
0:239-31.el8_2.7
systemd-libs
Red Hat:rhel_eus:8.2::baseos
From an advisory covering 2 CVEs
before 0:239-31.el8_2.7
0:239-31.el8_2.7
systemd-libs-debuginfo
Red Hat:rhel_eus:8.2::baseos
From an advisory covering 2 CVEs
before 0:239-31.el8_2.7
0:239-31.el8_2.7
systemd-pam
Red Hat:rhel_eus:8.2::baseos
From an advisory covering 2 CVEs
before 0:239-31.el8_2.7
0:239-31.el8_2.7
systemd-pam-debuginfo
Red Hat:rhel_eus:8.2::baseos
From an advisory covering 2 CVEs
before 0:239-31.el8_2.7
0:239-31.el8_2.7
systemd-tests
Red Hat:rhel_eus:8.2::baseos
From an advisory covering 2 CVEs
before 0:239-31.el8_2.7
0:239-31.el8_2.7
systemd-tests-debuginfo
Red Hat:rhel_eus:8.2::baseos
From an advisory covering 2 CVEs
before 0:239-31.el8_2.7
0:239-31.el8_2.7
systemd-udev
Red Hat:rhel_eus:8.2::baseos
From an advisory covering 2 CVEs
before 0:239-31.el8_2.7
0:239-31.el8_2.7
systemd-udev-debuginfo
Red Hat:rhel_eus:8.2::baseos
From an advisory covering 2 CVEs
before 0:239-31.el8_2.7
0:239-31.el8_2.7
systemd
Rocky Linux:8
From an advisory covering 2 CVEs
before 0:239-45.el8
0:239-45.el8
systemd
SUSE:OpenStack Cloud 7
From an advisory covering 3 CVEs
before 228-150.66.4
228-150.66.4
systemd
SUSE:Linux Enterprise Desktop 12 SP3
From an advisory covering 3 CVEs
before 228-150.66.4
228-150.66.4
systemd
SUSE:Linux Enterprise Desktop 12 SP4
From an advisory covering 3 CVEs
before 228-150.66.4
228-150.66.4
systemd
SUSE:Linux Enterprise Server for SAP Applications 12 SP2
From an advisory covering 3 CVEs
before 228-150.66.4
228-150.66.4
systemd
SUSE:Linux Enterprise Software Development Kit 12 SP3
From an advisory covering 3 CVEs
before 228-150.66.4
228-150.66.4
systemd
SUSE:Linux Enterprise Software Development Kit 12 SP4
From an advisory covering 3 CVEs
before 228-150.66.4
228-150.66.4
systemd
SUSE:Linux Enterprise Server 12 SP2-LTSS
From an advisory covering 3 CVEs
before 228-150.66.4
228-150.66.4
systemd
SUSE:Linux Enterprise Server 12 SP2-BCL
From an advisory covering 3 CVEs
before 228-150.66.4
228-150.66.4
systemd
SUSE:Linux Enterprise Server 12 SP3
From an advisory covering 3 CVEs
before 228-150.66.4
228-150.66.4
systemd
SUSE:Linux Enterprise Server for SAP Applications 12 SP3
From an advisory covering 3 CVEs
before 228-150.66.4
228-150.66.4
systemd
SUSE:Linux Enterprise Server 12 SP4
From an advisory covering 3 CVEs
before 228-150.66.4
228-150.66.4
systemd
SUSE:Linux Enterprise Server for SAP Applications 12 SP4
From an advisory covering 3 CVEs
before 228-150.66.4
228-150.66.4
systemd
SUSE:Enterprise Storage 4
From an advisory covering 3 CVEs
before 228-150.66.4
228-150.66.4
systemd
SUSE:Linux Enterprise Module for Basesystem 15
From an advisory covering 4 CVEs
before 234-24.30.1
234-24.30.1
systemd
SUSE:Linux Enterprise Module for Basesystem 15 SP1
From an advisory covering 4 CVEs
before 234-24.30.1
234-24.30.1
systemd
Ubuntu:14.04:LTS
before 204-5ubuntu20.31, plus listed versions
204-0ubuntu18204-0ubuntu19204-5ubuntu3204-5ubuntu5204-5ubuntu6
Show 37 moreShow less
204-5ubuntu7204-5ubuntu8204-5ubuntu9204-5ubuntu10204-5ubuntu11204-5ubuntu13204-5ubuntu14204-5ubuntu15204-5ubuntu16204-5ubuntu17204-5ubuntu18204-5ubuntu19204-5ubuntu20204-5ubuntu20.2204-5ubuntu20.3204-5ubuntu20.4204-5ubuntu20.5204-5ubuntu20.6204-5ubuntu20.7204-5ubuntu20.8204-5ubuntu20.9204-5ubuntu20.10204-5ubuntu20.11204-5ubuntu20.12204-5ubuntu20.13204-5ubuntu20.14204-5ubuntu20.15204-5ubuntu20.18204-5ubuntu20.19204-5ubuntu20.20204-5ubuntu20.21204-5ubuntu20.22204-5ubuntu20.24204-5ubuntu20.25204-5ubuntu20.26204-5ubuntu20.28204-5ubuntu20.29
204-5ubuntu20.31
systemd
Ubuntu:16.04:LTS
before 229-4ubuntu21.21, plus listed versions
225-1ubuntu9227-2ubuntu1227-2ubuntu2228-1ubuntu2228-2ubuntu1
Show 41 moreShow less
228-2ubuntu2228-3ubuntu1228-4ubuntu1228-4ubuntu2228-5ubuntu1228-5ubuntu2228-5ubuntu3228-6ubuntu1229-1ubuntu2229-1ubuntu4229-2ubuntu1229-3ubuntu1229-3ubuntu2229-4ubuntu1229-4ubuntu4229-4ubuntu5229-4ubuntu6229-4ubuntu7229-4ubuntu8229-4ubuntu10229-4ubuntu11229-4ubuntu12229-4ubuntu13229-4ubuntu16229-4ubuntu17229-4ubuntu19229-4ubuntu20229-4ubuntu21229-4ubuntu21.1229-4ubuntu21.2229-4ubuntu21.3229-4ubuntu21.4229-4ubuntu21.5229-4ubuntu21.6229-4ubuntu21.8229-4ubuntu21.9229-4ubuntu21.10229-4ubuntu21.15229-4ubuntu21.16229-4ubuntu21.17229-4ubuntu21.19
229-4ubuntu21.21
systemd
Ubuntu:18.04:LTS
before 237-3ubuntu10.19, plus listed versions
234-2ubuntu12235-2ubuntu3235-3ubuntu2235-3ubuntu3237-3ubuntu3
Show 15 moreShow less
237-3ubuntu4237-3ubuntu6237-3ubuntu7237-3ubuntu8237-3ubuntu10237-3ubuntu10.2237-3ubuntu10.3237-3ubuntu10.4237-3ubuntu10.6237-3ubuntu10.9237-3ubuntu10.11237-3ubuntu10.12237-3ubuntu10.13237-3ubuntu10.15237-3ubuntu10.17
237-3ubuntu10.19
systemd
openSUSE:Tumbleweed
From an advisory covering 19 CVEs
before 249.4-2.2
249.4-2.2

Public exploits

Links only. Every CVE stores no exploit code.

History

History
RecordedChangedSources
affected, facts
first indexedCVE List, EUVD, Exploit-DB, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2019-3842 is a medium vulnerability (CVSS 4.5) in Systemd, published April 8, 2019. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 1.21%, the 68th percentile. Fixed in systemd 241-3.

References

Show 79 moreShow less
MoveEnter Open