Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2024-34740: Android Framework BinaryXmlSerializer XML Injection

Published Aug 15, 2024 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.8High · v3.1
EPSS0.21%11th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendor
Google
IdentifiersCVE-2024-34740CWE-190 · Integer Overflow or Wraparound

CVE-2024-34740 is a high-severity Android Framework elevation-of-privilege vulnerability in the attributeBytesBase64 and attributeBytesHex methods of BinaryXmlSerializer.java. An integer-overflow condition can permit arbitrary XML injection during binary XML serialization, enabling a local attacker to affect XML content processed in a privileged context.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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 can result in local elevation of privilege. The issue does not require user interaction or additional execution privileges.

Mitigation

If you can’t patch tonight, do this now.

Prioritize installation of vendor-provided Android security updates. Android platform mitigations and Google Play Protect may reduce exploitation likelihood on supported devices, but do not replace patching.

Remediation

Patch, then assume compromise.

Apply the Android security update with security patch level 2024-08-01 or later. Applying the 2024-08-05 patch level or any later supported Android security update also remediates the vulnerability.

Public exploits

Exploits

1 exploit validated by Mallory's analysis.

View more in app →
AbxOverflowThis repository is a comprehensive proof-of-concept (PoC) exploit for CVE-2024-34740, a vulnerability in Android's handling of binary XML (ABX) files used by system_server to store persistent state. The exploit is implemented as an Android application (AbxOverflow) and a secondary APK (droppedapk) that is installed with system privileges. The main exploit logic is in Java, with supporting shell scripts for file manipulation and session management. The exploit works in multiple stages: 1. It crafts a malicious binary XML payload to exploit an integer overflow in BinaryXmlSerializer.attributeBytesBase64(), corrupting /data/system/install_sessions.xml. 2. It then patches /data/system/packages.xml to register a new APK (droppedapk) as trusted for the privileged sharedUserId android.uid.system, even if the signature does not match. 3. The system_server process is crashed and restarted to force it to reload the modified state files. 4. Upon reboot, the dropped APK is launched with system_server privileges, allowing arbitrary code execution in this highly privileged context. The repository includes: - Full Android app source code for the exploit and the dropped APK. - Scripts for moving APKs, peeking and wiping install sessions. - Example XML files for reference. - A detailed README explaining the vulnerability, exploitation steps, and references to upstream patches and advisories. Key fingerprintable endpoints include the system state files /data/system/install_sessions.xml and /data/system/packages.xml, as well as the dropped APK's installation directory. The exploit is local and requires significant privileges (root or userdebug/eng build) to execute, but demonstrates a critical flaw in Android's package management system prior to the August 2024 patch.michalbednarski · Disclosed Oct 8, 2025 · java · xml · localPoC
Exposure surface

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.

VendorProductType
GoogleAndroidoperating_system
FAQ

Frequently asked questions

Is CVE-2024-34740 exploited in the wild?
As of Sep 26, 2026, Mallory has no reports of CVE-2024-34740 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2024-34740?
Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2024-34740, the earliest disclosed Oct 8, 2025.
Is there a patch for CVE-2024-34740?
Apply the Android security update with security patch level 2024-08-01 or later. Applying the 2024-08-05 patch level or any later supported Android security update also remediates the vulnerability.
What products are affected by CVE-2024-34740?
Google Android.
How severe is CVE-2024-34740?
CVE-2024-34740 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.21% (11th percentile) as of Sep 26, 2026.
Activity feed

Recent activity

3 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.

View more in app →

No news coverage yet. Advisories and community discussion only.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.