CVE-2017-7358

HIGH

LightDM < 1.22.0 - Path Traversal and Privilege Escalation via Guest Account Logout

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 2 public exploits for CVE-2017-7358. PoCs published by G. Geshev, JonPichel.

AI-analyzed exploit summary This exploit leverages a race condition in LightDM's guest account creation script to escalate privileges to root. The attacker races the creation of a temporary directory to replace it with a symbolic link, ultimately hijacking the guest user's home directory and executing arbitrary code as root.

Description

In LightDM through 1.22.0, a directory traversal issue in debian/guest-account.sh allows local attackers to own arbitrary directory path locations and escalate privileges to root when the guest user logs out.

Exploits (2)

exploitdb WORKING POC
by G. Geshev · textlocallinux
https://www.exploit-db.com/exploits/41923

This exploit leverages a race condition in LightDM's guest account creation script to escalate privileges to root. The attacker races the creation of a temporary directory to replace it with a symbolic link, ultimately hijacking the guest user's home directory and executing arbitrary code as root.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Complex
Reliability
Racy
Target: LightDM (Ubuntu 16.10 / 16.04 LTS)
No auth needed
Prerequisites: Local access to the system · LightDM with guest account enabled
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC
by JonPichel · poc
https://github.com/JonPichel/CVE-2017-7358

This PoC exploits CVE-2017-7358, a race condition in the LightDM guest session handling, to achieve local privilege escalation (LPE) by manipulating directory symlinks and user creation timing. The exploit involves monitoring /tmp for guest session directories and replacing them with symlinks to gain root access.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Moderate
Reliability
Racy
Target: LightDM (Ubuntu guest session handling)
No auth needed
Prerequisites: Local access to the target system · LightDM with guest session enabled
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (6)

Core 6
Core References
Third Party Advisory, VDB Entry x_refsource_confirm
https://launchpad.net/bugs/1677924
Third Party Advisory, VDB Entry x_refsource_confirm
https://lists.freedesktop.org/archives/lightdm/2017-April/001059.html
Third Party Advisory, VDB Entry x_refsource_confirm
http://bazaar.launchpad.net/~lightdm-team/lightdm/trunk/revision/2478
Exploit, Third Party Advisory exploit x_refsource_exploit-db
https://www.exploit-db.com/exploits/41923/
Third Party Advisory x_refsource_confirm
https://www.ubuntu.com/usn/usn-3255-1/
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/97486

Scores

CVSS v3 7.3
EPSS 0.0267
EPSS Percentile 83.8%
Attack Vector LOCAL
CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Details

CWE
CWE-22
Status published
Products (3)
canonical/ubuntu_linux 16.04
canonical/ubuntu_linux 16.10
lightdm_project/lightdm < 1.22.0
Published Apr 05, 2017
Tracked Since Feb 18, 2026