CVE-2017-7358: Directory Traversal Privilege Escalation in LightDM guest-account.sh
- Vendors
- Lightdm ProjectCanonical
A directory traversal vulnerability exists in LightDM through version 1.22.0, specifically in the debian/guest-account.sh script. This flaw allows local attackers to manipulate directory paths such that, upon guest user logout, they can gain ownership of arbitrary directories. This can be leveraged to escalate privileges to root.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows a local attacker to take ownership of arbitrary directories, which can be used to escalate privileges to root. This can lead to full system compromise by a local user.
Mitigation
If you can’t patch tonight, do this now.
Restrict local access to the system and disable the guest account feature in LightDM until a patched version is deployed. Monitor for suspicious directory ownership changes as an interim measure.
Remediation
Patch, then assume compromise.
Upgrade LightDM to a version after 1.22.0 where the debian/guest-account.sh script has been patched to properly sanitize and validate directory paths, preventing directory traversal.
Exploits
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2017-7358 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2017-7358 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2017-7358?
- As of Oct 16, 2026, Mallory has not confirmed a public exploit for CVE-2017-7358. 1 candidate exploit record is not yet analyzed.
- Is there a patch for CVE-2017-7358?
- Upgrade LightDM to a version after 1.22.0 where the debian/guest-account.sh script has been patched to properly sanitize and validate directory paths, preventing directory traversal.
- What products are affected by CVE-2017-7358?
- Lightdm Project Lightdm and Canonical Ubuntu Linux.
- How severe is CVE-2017-7358?
- CVE-2017-7358 has a CVSS v3 score of 7.3 (High) and an EPSS score of 2.7% (86th percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.