CVE-2026-42049: CWE-94: Improper Control of Generation of Code ('Code Injection') in skylot jadx
jadx, a Dex to Java decompiler, prior to version 1.5.6, improperly sanitizes the android:versionName value from an AndroidManifest when exporting a decompiled APK as an Android Gradle project. This allows a malicious APK to inject Groovy code into the generated build.gradle file, which can be executed when opening or building the project. The vulnerability is fixed in version 1.5.6.
AI Analysis
Technical Summary
CVE-2026-42049 is a code injection vulnerability (CWE-94) in the jadx decompiler before version 1.5.6. The issue arises because jadx inserts the android:versionName from the AndroidManifest into the generated app/build.gradle Groovy template without proper sanitization. A maliciously crafted APK can break out of the string context in the Gradle template, causing attacker-controlled Groovy code to execute on the victim's machine when the exported Gradle project is opened or built. This vulnerability has a CVSS 4.0 score of 8.4, indicating high severity. The vulnerability is resolved in jadx version 1.5.6.
Potential Impact
An attacker who provides a malicious APK can cause arbitrary Groovy code execution on the victim's machine during the process of opening or building the exported Gradle project generated by jadx. This can lead to code execution with the privileges of the user running jadx, potentially compromising the victim system.
Mitigation Recommendations
Upgrade jadx to version 1.5.6 or later, where this vulnerability is fixed. There is no indication of any temporary or alternative mitigations; applying the official fix is recommended.
CVE-2026-42049: CWE-94: Improper Control of Generation of Code ('Code Injection') in skylot jadx
Description
jadx, a Dex to Java decompiler, prior to version 1.5.6, improperly sanitizes the android:versionName value from an AndroidManifest when exporting a decompiled APK as an Android Gradle project. This allows a malicious APK to inject Groovy code into the generated build.gradle file, which can be executed when opening or building the project. The vulnerability 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 decompiler before version 1.5.6. The issue arises because jadx inserts the android:versionName from the AndroidManifest into the generated app/build.gradle Groovy template without proper sanitization. A maliciously crafted APK can break out of the string context in the Gradle template, causing attacker-controlled Groovy code to execute on the victim's machine when the exported Gradle project is opened or built. This vulnerability has a CVSS 4.0 score of 8.4, indicating high severity. The vulnerability is resolved in jadx version 1.5.6.
Potential Impact
An attacker who provides a malicious APK can cause arbitrary Groovy code execution on the victim's machine during the process of opening or building the exported Gradle project generated by jadx. This can lead to code execution with the privileges of the user running jadx, potentially compromising the victim system.
Mitigation Recommendations
Upgrade jadx to version 1.5.6 or later, where this vulnerability is fixed. There is no indication of any temporary or alternative mitigations; applying the official fix is recommended.
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/14/2026, 22:17:31 UTC
Last updated: 07/14/2026, 22:22:39 UTC
Views: 4
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.