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".
What to do
Fixed builds are available from Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | systemd | Fixed | 237-3ubuntu10.19 | UBUNTU-CVE-2019-3842 |
| Ubuntu 16.04 | systemd | Fixed | 229-4ubuntu21.21 | UBUNTU-CVE-2019-3842 |
| Ubuntu 14.04 | systemd | Fixed | 204-5ubuntu20.31 | UBUNTU-CVE-2019-3842 |
| Debian 14 | systemd | Fixed | 241-3 | DEBIAN-CVE-2019-3842 |
| Debian 13 | systemd | Fixed | 241-3 | DEBIAN-CVE-2019-3842 |
| Debian 12 | systemd | Fixed | 241-3 | DEBIAN-CVE-2019-3842 |
| Red Hat Enterprise Linux 8 | systemd | Fixed | 0:239-45.el8 | RHSA-2021:1611 |
| Red Hat Enterprise Linux 8 | systemd-container | Fixed | 0:239-45.el8 | RHSA-2021:1611 |
| Red Hat Enterprise Linux 8 | systemd-devel | Fixed | 0:239-45.el8 | RHSA-2021:1611 |
| Red Hat Enterprise Linux 8 | systemd-journal-remote | Fixed | 0:239-45.el8 | RHSA-2021:1611 |
| Red Hat Enterprise Linux 8 | systemd-libs | Fixed | 0:239-45.el8 | RHSA-2021:1611 |
| Red Hat Enterprise Linux 8 | systemd-pam | Fixed | 0:239-45.el8 | RHSA-2021:1611 |
| Red Hat Enterprise Linux 8 | systemd-tests | Fixed | 0:239-45.el8 | RHSA-2021:1611 |
| Red Hat Enterprise Linux 8 | systemd-udev | Fixed | 0:239-45.el8 | RHSA-2021:1611 |
| Red Hat Enterprise Linux 7 | libgudev1 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libgudev1-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | systemd | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | systemd-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | systemd-journal-gateway | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | systemd-libs | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | systemd-networkd | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | systemd-python | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | systemd-resolved | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | systemd-sysv | Will not fix Will not fix | ||
| Rocky Linux 8 | systemd | Fixed | 0:239-45.el8 | RLSA-2021:1611 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- The systemd Project systemd: affected: v242-rc4
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00062.html (vendor-advisory)
References
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-3842
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/STR36RJE4ZZIORMDXRERVBHMPRNRTHAC/
- https://www.exploit-db.com/exploits/46743/
- http://packetstormsecurity.com/files/152610/systemd-Seat-Verification-Active-Session-Spoofing.html
- https://lists.debian.org/debian-lts-announce/2019/04/msg00022.html
- http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00062.html
- https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3E
- https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3E
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.