XPath Injection in Google Android
CVE-2024-34740
In attributeBytesBase64 and attributeBytesHex of BinaryXmlSerializer.java, there is a possible arbitrary XML injection due to an integer overflow. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.
Vulnerability class: Integer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.002, 11.0th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Google Android — versions 12, 14.0, 12L
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- michalbednarski/AbxOverflow (84 stars, last pushed 2025-10-08): Writeup and exploit for CVE-2024-34740, integer overflow in Android's BinaryXmlSerializer to system_server file write and then to system_server code execution from normal installed app
Also mentioned in 1 other repository (CrackerCat/feed). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- android.googlesource.com/platform/frameworks/libs/modules-utils/+/700c28908051c… (Patch, Mailing List)
- android.googlesource.com/platform/frameworks/base/+/e8b6505647be558ed3a167a1e13… (Patch, Mailing List)
- source.android.com/security/bulletin/2024-08-01 (Patch, Vendor Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.