CVE-2017-7358
High · 7.3CVSS
7.3
EPSS
2.7%
Published
Apr 5, 2017
CISA due date
—
Cloudanix analysis
A bug in login software lets someone already on the computer take over the entire system by tricking a helper script into handing over control of key files.
- Exploitation
- Local Privilege
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Application
- Class
- Path Traversal
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
A directory traversal vulnerability in debian/guest-account.sh permits local attackers to control arbitrary directory paths, causing the script to change ownership of those paths and enabling root privilege escalation when a guest session ends.
Why it matters to the business
Local attackers can obtain full root access on affected systems, leading to complete machine compromise, data theft, or persistence; the issue has been public for years with known exploits available.
How an attack unfolds
An attacker with local access creates or triggers a guest session, supplies a crafted path containing traversal sequences to the vulnerable script, and upon logout the script performs chown operations on attacker-chosen directories, allowing the attacker to write to or execute from privileged locations.
How to fix it
Upgrade LightDM beyond version 1.22.0 to a patched release; audit and harden path handling in any guest account scripts; consider disabling guest accounts if unused.
How to confirm the fix worked
Confirm LightDM version exceeds 1.22.0, review guest-account.sh for sanitized path usage, and test that guest logout no longer permits ownership changes outside intended directories.
Typical attack path
- Obtain local non-root access on the target system
- Initiate a guest session or invoke the guest-account script
- Supply malicious directory path using traversal sequences
- Trigger logout to execute ownership change on target paths
- Access or modify now-owned sensitive files to escalate to root
How to detect it
Inspect authentication and session logs for guest account activity, correlate with file system audit logs showing unexpected chown operations on system directories during logout events.
What your security team should do
- Apply patched LightDM packages immediately given public exploit availability
- Disable guest accounts unless explicitly required
- Monitor systems for unexpected directory ownership changes tied to guest sessions
- Review local access controls and logging around session management
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:16.04:LTS | lightdm | 0 | 1.18.3-0ubuntu1.1 |
Related vulnerabilities
- CVE-2026-81163 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')… CWE-22
- CVE-2026-112049 Vita3K before build 4187 contains a path traversal (zip slip) vulnerability in… CWE-22
- CVE-2026-112005 WhoDB 0.104.0 before 0.135.0 contains a path traversal vulnerability that allows remote… CWE-22
- CVE-2026-61702 OpenPrinting CUPS is an open source printing system for Linux and other Unix-like… CWE-22
- CVE-2026-104871 The Angular SSR is a server-rise rendering tool for Angular applications. CWE-22
- CVE-2026-102991 Mako is a template library written in Python. CWE-22
- CVE-2026-101894 The decompress package for Node.js extracts archives. CWE-22
- CVE-2026-100689 GitPython before 3.1.62 does not validate the `path` field read from an untrusted… CWE-22