# CVE-2019-3842: In systemd before v242-rc4, it was discovered that pamsystemd does not properly sanitize the environment before using the XDGSEAT variable.

- Severity: Medium 4.5 (CVSS:3.0, scored by redhat) `CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.21%, higher than 69% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2019-04-09T20:25:01.000Z
- Modified: 2026-06-17T02:35:42.357Z
- Weaknesses: CWE-285, CWE-863
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

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

(As written by CVE List.)

## Affected

- The systemd Project systemd: v242-rc4
- systemd_project systemd: up to 241; 242
- redhat enterprise_linux: 7.0
- fedoraproject fedora: 30
- debian debian_linux: 8.0

## Every score

- redhat: CVSS:3.0 4.5 Medium `CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L`
- NVD: 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`
- NVD: CVSS:2.0 4.4 Medium `AV:L/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://www.exploit-db.com/exploits/46743/> (exploit, third-party-advisory, vdb-entry)
- <http://packetstormsecurity.com/files/152610/systemd-Seat-Verification-Active-Session-Spoofing.html> (exploit, third-party-advisory, vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-3842> (issue-tracking, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/STR36RJE4ZZIORMDXRERVBHMPRNRTHAC/> (vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2019/04/msg00022.html> (mailing-list, third-party-advisory)
- <http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00062.html> (third-party-advisory, vendor-advisory)
- <https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3E> (mailing-list)
- <https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3E> (mailing-list)

## Sources

- CVE List: [CVE-2019-3842](https://www.cve.org/CVERecord?id=CVE-2019-3842), CVE Terms of Use, modified 2025-06-09
- NVD: [CVE-2019-3842](https://nvd.nist.gov/vuln/detail/CVE-2019-3842), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-3842 · Whole record: https://cve.day/CVE-2019-3842.json · Rebuilt by cve.day 2026-11-25T22:57:44.382Z
