BreachSpiderVerified, not vibes

CVE-2019-3842 in Debian Linux and 3 more products

High 7.0 Public exploit reported

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

Affects 4 products from 4 vendors. Facts below cite their sources.

CVSS 3.17.0
EPSS1.2%
EPSS percentile68th
FixSee advisory

Requires local access, high complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Debian Debian Linux 8.0
Fedoraproject Fedora 30
Redhat Enterprise Linux 7.0
Systemd Project Systemd 242 ≤ 241

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitReported · reference

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

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2019-3842
BreachSpider IDBS-2019-GLOBAL-158366-H
CVSS vectorCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Published2019-04-09
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-285: CWE-285

CWE-863: Incorrect Authorization

Software performs an authorization check incorrectly, allowing access beyond intended privileges.

Related attack patterns (CAPEC)

CAPEC-5 Blue Boxing via CWE-285

CAPEC-13 Subverting Environment Variable Values via CWE-285

CAPEC-45 Buffer Overflow via Symbolic Links via CWE-285

CAPEC-51 Poison Web Service Registry via CWE-285

CAPEC-59 Session Credential Falsification through Prediction via CWE-285

Show all 17

CAPEC-60 Reusing Session IDs (aka Session Replay) via CWE-285

CAPEC-76 Manipulating Web Input to File System Calls via CWE-285

CAPEC-127 Directory Indexing via CWE-285

CAPEC-402 Bypassing ATA Password Security via CWE-285

CAPEC-647 Collect Data from Registries via CWE-285

CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs via CWE-285

CAPEC-17 Using Malicious Files via CWE-285

CAPEC-39 Manipulating Opaque Client-based Data Tokens via CWE-285

CAPEC-77 Manipulating User-Controlled Variables via CWE-285

CAPEC-87 Forceful Browsing via CWE-285

CAPEC-104 Cross Zone Scripting via CWE-285

CAPEC-668 Key Negotiation of Bluetooth Attack (KNOB) via CWE-285

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

CVE-2019-3842 affects systemd versions before v242-rc4 due to improper sanitization of the XDG_SEAT environment variable, potentially allowing unauthorized command execution based on polkit policies.

An attacker can exploit this vulnerability by setting a malicious XDG_SEAT environment variable, which could lead to commands being executed with elevated privileges under certain configurations.

Questions

What is CVE-2019-3842?

CVE-2019-3842 affects systemd versions before v242-rc4 due to improper sanitization of the XDG_SEAT environment variable, potentially allowing unauthorized command execution based on polkit policies.

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

CVE-2019-3842 has CVSS 7.0 (High). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 1.2%.

Is CVE-2019-3842 actively exploited?

Public exploit available for CVE-2019-3842. Exploitation risk elevated.

How do I remediate CVE-2019-3842?

Priority: HIGH. Advisory: https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-3842

What systems are affected by CVE-2019-3842?

CVE-2019-3842 affects Debian Debian Linux; Fedoraproject Fedora; Redhat Enterprise Linux; Systemd Project Systemd.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Debian","product":"Debian Linux","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.