Remote code execution via unchecked XML buffer writes
Published Nov 19, 2024 · Updated Nov 3, 2025
Out-of-bounds write in Android Runtime libxml2 in Android 7.0 through 8.1 allows remote attackers to execute code via a crafted XML file. xmlSnprintfElementContent in valid.c recursively writes an element-content definition into a fixed buffer but uses stale length checks and can append data after the remaining space is exhausted. Exploitation requires user interaction and reaches code execution in the unprivileged application context that processes the malicious XML.
Summary
What happened
Out-of-bounds write in Android Runtime libxml2 in Android 7.0 through 8.1 allows remote attackers to execute code via a crafted XML file. xmlSnprintfElementContent in valid.c recursively writes an element-content definition into a fixed buffer but uses stale length checks and can append data after the remaining space is exhausted. Exploitation requires user interaction and reaches code execution in the unprivileged application context that processes the malicious XML.
The record
- CVE
- CVE-2018-9466
- Published
- Nov 19, 2024
- Updated
- Nov 3, 2025
- Vendor
- Google Cloud
- Product
- Android
- Classifications
- CWE-787, T1203
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Nov 19, 2024CVE publishedPublication date reported by the CVE source.
- Nov 3, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=7
- Affected versionversion=7.0
- Affected versionversion=8
- Affected versionversion=8.1
- Affected versionversion=nyc-mr1-dev
- Affected versionversion=nyc-mr2-dev
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
- Android CTS CVE-2018-9466 proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo