CVE-2026-42049: CWE-94: Improper Control of Generation of Code ('Code Injection') in skylot jadx
jadx versions prior to 1.5.6 improperly handle the android:versionName value from AndroidManifest when exporting a decompiled APK as an Android Gradle project. This lack of sanitization allows malicious APKs to inject Groovy code into the generated build.gradle template, potentially executing attacker-controlled code on the victim's machine. The issue is fixed in version 1.5.6.
AI Analysis
Technical Summary
CVE-2026-42049 is a code injection vulnerability (CWE-94) in the jadx Dex to Java decompiler. Before version 1.5.6, jadx inserts the android:versionName from an AndroidManifest into the generated app/build.gradle Groovy template without proper sanitization. A malicious APK can exploit this by breaking out of the string context, causing execution of arbitrary Groovy code when the exported Gradle project is opened or built. This vulnerability is resolved in version 1.5.6.
Potential Impact
An attacker can craft a malicious APK that, when decompiled and exported as a Gradle project using vulnerable versions of jadx, causes execution of arbitrary Groovy code on the victim's machine. This can lead to code execution with the privileges of the user running jadx, potentially compromising the system.
Mitigation Recommendations
Upgrade jadx to version 1.5.6 or later, where this vulnerability is fixed. There is no indication of alternative mitigations or temporary workarounds. Users should avoid opening or building Gradle projects exported from untrusted APKs using vulnerable jadx versions.
CVE-2026-42049: CWE-94: Improper Control of Generation of Code ('Code Injection') in skylot jadx
Description
jadx versions prior to 1.5.6 improperly handle the android:versionName value from AndroidManifest when exporting a decompiled APK as an Android Gradle project. This lack of sanitization allows malicious APKs to inject Groovy code into the generated build.gradle template, potentially executing attacker-controlled code on the victim's machine. The issue is fixed in version 1.5.6.
CVSS v4.0
Score 8.4high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-42049 is a code injection vulnerability (CWE-94) in the jadx Dex to Java decompiler. Before version 1.5.6, jadx inserts the android:versionName from an AndroidManifest into the generated app/build.gradle Groovy template without proper sanitization. A malicious APK can exploit this by breaking out of the string context, causing execution of arbitrary Groovy code when the exported Gradle project is opened or built. This vulnerability is resolved in version 1.5.6.
Potential Impact
An attacker can craft a malicious APK that, when decompiled and exported as a Gradle project using vulnerable versions of jadx, causes execution of arbitrary Groovy code on the victim's machine. This can lead to code execution with the privileges of the user running jadx, potentially compromising the system.
Mitigation Recommendations
Upgrade jadx to version 1.5.6 or later, where this vulnerability is fixed. There is no indication of alternative mitigations or temporary workarounds. Users should avoid opening or building Gradle projects exported from untrusted APKs using vulnerable jadx versions.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-23T16:05:01.709Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a56b22968715ace4347ce21
Added to database: 07/14/2026, 22:03:21 UTC
Last enriched: 07/21/2026, 22:44:02 UTC
Last updated: 08/25/2026, 10:52:09 UTC
Views: 76
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.