Skip to main content
Public proof of conceptFix available

CVE-2019-3842

A public proof of concept exists; no exploitation attested.

  • Published2019-04-09
  • WeaknessCWE-285 · CWE-863

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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

Timeline

dates in UTC
  1. 2019-04-23Exploit-DB entryExploit-DB

Versions per branch

NVD
Systemd project systemd
BranchAffectedFixed in
241.x≤ 241no fix published
242.x= 242no fix published
Debian debian linux
BranchAffectedFixed in
8.0= 8.0no fix published
Fedoraproject fedora
BranchAffectedFixed in
30.x= 30no fix published

1 more product in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As redhat, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • The systemd Project systemd
    Affected
    • = v242-rc4no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2021-06-29

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • py3-systemdChainguardall versions · fixed in 0and 2 other packages
  • systemdUbuntu:18.04:LTSall versions · fixed in 237-3ubuntu10.19
  • systemdUbuntu:16.04:LTSall versions · fixed in 229-4ubuntu21.21
  • systemdUbuntu:14.04:LTSall versions · fixed in 204-5ubuntu20.31
  • systemdSUSE:OpenStack Cloud 7all versions · fixed in 228-150.66.4
  • systemdSUSE:Linux Enterprise Software Development Kit 12 SP4all versions · fixed in 228-150.66.4
  • systemdSUSE:Linux Enterprise Software Development Kit 12 SP3all versions · fixed in 228-150.66.4
  • systemdSUSE:Linux Enterprise Server for SAP Applications 12 SP4all versions · fixed in 228-150.66.4

20 more package ranges on OSV.dev

Vendor advisories

  • CVE-2019-3842 Red Hat Product Security154 products fixed · 11 known affected

    systemd: Spoofing of XDG_SEAT allows for actions to be checked against "allow_active" instead of "allow_any"

    libgudev1 as a component of Red Hat Enterprise Linux 7 · libgudev1-devel as a component of Red Hat Enterprise Linux 7 · systemd as a component of Red Hat Enterprise Linux 7 · +8 more

  • RHSA-2021:3900 Red Hat Product Security77 products fixed

    Red Hat Security Advisory: systemd security update

  • RHSA-2021:1611 Red Hat Product Security77 products fixed

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

Full record on NVD

Fix

  1. Vendor fix Red Hat Product Security RHSA-2021:3900 · 77 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  2. No fix planned, says the vendor Red Hat Product Security CVE-2019-3842 · 11 productsWill not fix

Detection

read 2026-11-19 10:48 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
EDB-46743
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionnone2025-06-09
  • NVDCVSS 3.17read 2026-10-23
  • CNACVSS 3.04.5known since 2026-10-23
  • NVDCVSS 2.04.4read 2026-10-23
  • CNAweakness (CWE)CWE-285known since 2026-10-23
  • NVDweakness (CWE)CWE-863read 2026-10-23
  • FIRST EPSSEPSS score1.2 %2026-11-18
  • Exploit-DBdetectionread 2026-11-19
  • OSVaffected packages—
  • GitHub Advisoriesadvisory—

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Published
2019-04-09
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-c23j-qp89-q76c

Frequently asked questions

What is CVE-2019-3842?

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

Is CVE-2019-3842 actively exploited?

Active exploitation of CVE-2019-3842 has not been confirmed. Its EPSS score was 1.2% on 2026-11-18, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2019-3842?

CVE-2019-3842 has a CVSS v3 base score of 7 (HIGH severity), with vector string CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H.

Running systemd? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record