CVE-2017-13209: Privilege Escalation via Insecure PID Check in Android ServiceManager
- Vendor
CVE-2017-13209 is a local privilege escalation vulnerability in Android 8.0 and 8.1, specifically in the ServiceManager::add function of the hardware service manager. The vulnerability arises from an insecure permissions check that relies solely on the PID of the caller. This flaw allows a local application or service to register or replace a Hardware Abstraction Layer (HAL) service with its own, potentially malicious, implementation. As a result, an attacker can execute code as a privileged process without requiring additional execution privileges or user interaction.
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 gain elevated privileges by replacing a HAL service, leading to arbitrary code execution as a privileged process. This can compromise the integrity and security of the device, potentially allowing further attacks or persistence mechanisms.
Mitigation
If you can’t patch tonight, do this now.
Restrict the ability of untrusted applications to interact with the hardware service manager. Employ SELinux policies to limit access to privileged interfaces. Monitor for abnormal service registrations or replacements as an indicator of compromise until a patch can be applied.
Remediation
Patch, then assume compromise.
Upgrade to a patched version of Android (post-8.1) where the permissions check in ServiceManager::add has been corrected to properly authenticate and authorize service registration requests. Apply security updates provided by the device manufacturer or Google.
Exploits
1 exploit validated by Mallory's analysis. 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-13209 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2017-13209 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2017-13209?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2017-13209, the earliest disclosed Jul 17, 2026.
- Is there a patch for CVE-2017-13209?
- Upgrade to a patched version of Android (post-8.1) where the permissions check in ServiceManager::add has been corrected to properly authenticate and authorize service registration requests. Apply security updates provided by the device manufacturer or Google.
- What products are affected by CVE-2017-13209?
- Google Android.
- How severe is CVE-2017-13209?
- CVE-2017-13209 has a CVSS v3 score of 7.8 (High) and an EPSS score of 0.75% (56th percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.