cve.bz

CVE-2019-3842 Incorrect Authorization

7.0 highExploitEPSS 1.2%

High (7.0). EPSS 1.2% estimated probability of exploitation activity in the next 30 days.

On this page
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".

Severity

CVSS 3.1

7.0 high
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
1.2% (unchanged from 1.2% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 69th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-06-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-863 Incorrect Authorization
CWE-285 Improper Authorization
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2019-3842 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2019-3842?via=ask-ai-copy and https://cve.bz/cve/CVE-2019-3842?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2019-3842 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
systemd_project:systemdthrough 241
systemd_project:systemd242:rc1
systemd_project:systemd242:rc2
systemd_project:systemd242:rc3
redhat:enterprise_linux7.0
fedoraproject:fedora30
debian:debian_linux8.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8systemd215-17+deb8u12DLA-1762-1
Debian9systemd232-25+deb9u11DSA-4428-1
Debian12, 13, 14systemd241-3DEBIAN-CVE-2019-3842
Ubuntu14.04:LTSsystemd204-5ubuntu20.31UBUNTU-CVE-2019-3842 USN-3938-1
Ubuntu16.04:LTSsystemd229-4ubuntu21.21UBUNTU-CVE-2019-3842 USN-3938-1
Ubuntu18.04:LTSsystemd237-3ubuntu10.19UBUNTU-CVE-2019-3842 USN-3938-1
Red Hatenterprise_linux:8::baseossystemd, systemd-pam, systemd-libs and 13 more0:239-45.el8RHSA-2021:1611
Red Hatrhel_eus:8.2::baseossystemd, systemd-pam, systemd-libs and 13 more0:239-31.el8_2.7RHSA-2021:3900
SUSEEnterprise Storage 4, Linux Enterprise Desktop 12 SP3, Linux Enterprise Desktop 12 SP4 and 10 moresystemd228-150.66.4SUSE-SU-2019:1265-1
SUSELinux Enterprise Module for Basesystem 15systemd234-24.30.1SUSE-SU-2019:1364-1
SUSELinux Enterprise Module for Basesystem 15 SP1systemd234-24.30.1SUSE-SU-2019:1364-2
openSUSETumbleweedsystemd249.4-2.2openSUSE-SU-2024:11420-1
Rocky Linux8systemd0:239-45.el8RLSA-2021:1611

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

For the attack to be successful, a new session must be created by pam_systemd. This is done only if the calling process is not already part of a session. Red Hat Enterprise Linux, in its default PAM configurations, does not let a session sneak in without systemd knowing about it, since pam_systemd is always called in every PAM config file. Unless a wrong PAM config file is in place, this vulnerability cannot be triggered on Red Hat Enterprise Linux 7 and 8.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8systemd-0:239-45.el8Fixed 2021-05-18RHSA-2021:1611
Red Hat Enterprise Linux 8.2 Extended Update Supportsystemd-0:239-31.el8_2.7Fixed 2021-10-19RHSA-2021:3900
Red Hat Enterprise Linux 7systemdWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2019-3842.

Public exploits

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-285 (16).

References

Check your stackJSON