Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2017-13156: Janus

Published Dec 6, 2017 · Updated 9 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days2 mentions · peak 1 in a dayToday
CVSS7.8High · v3
EPSS20.1%98th percentile
CISA KEVNoNot listed
In the wildReported3 exploitation records in Mallory
Vendor
Google
IdentifiersCVE-2017-13156CWE-347

Janus is an APK signature-verification bypass and privilege-escalation vulnerability in Android's application verification and runtime handling. A specially constructed file can be interpreted as both a valid APK archive and a DEX executable. APK Signature Scheme v1 verifies archive entries but does not authenticate additional bytes outside those entries, allowing an attacker to prepend malicious DEX code without invalidating the original application's signature. Android accepts the package as an authentic application or update, while the runtime executes the injected code. Listed affected releases are Android 5.1.1, 6.0, 6.0.1, 7.0, 7.1.1, 7.1.2, and 8.0. Applications verified using APK Signature Scheme v2 on Android 7.0 or later are protected against this modification.

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.

Injected code executes within the affected application's security context, inheriting its permissions and access to private application data. Compromising messaging, browser, or banking applications can expose messages, saved credentials, and other sensitive information. Replacing an eligible privileged application can provide system-level execution; broader device compromise depends on the target application's privileges and any additional vulnerabilities chained with Janus. Exploitation has also supported advertising fraud, application infection, and concealment of malicious payloads from some analysis tools. Janus alone does not universally provide root access or silent installation.

Mitigation

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

Restrict application installation and updates to trusted, managed distribution channels and avoid unsolicited or untrusted APK updates. Where operationally feasible, disable installation from unknown sources and enforce application-installation policies. Use APK Signature Scheme v2 on Android 7.0 or later to protect package integrity. Do not rely solely on an unchanged v1 signature or scanner results as evidence that an APK is unmodified.

Remediation

Patch, then assume compromise.

Install the vendor-provided Android firmware or security update containing the CVE-2017-13156 fix, released in the December 2017 Android security update. Replace devices that cannot receive a corrected firmware with supported devices. Developers should use APK Signature Scheme v2 or later for supported Android versions; v2 protection requires Android 7.0 or later and does not protect older devices that only verify v1 signatures. If applications have already been compromised, remove them and reinstall legitimate versions from a trusted distribution source after patching.

Public exploits

Exploits

5 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.

View more in app →
janus.rbThis repository contains a single Metasploit module (modules/exploits/android/local/janus.rb) that exploits the Android Janus vulnerability (CVE-2017-13156). The exploit targets Android devices running versions 5.1.1 to 8.0.0 that have not received the December 2017 security patch and are using APKs signed with the v1 signature scheme. The module works by injecting a payload (such as android/meterpreter/reverse_tcp) into an existing APK, uploading the backdoored APK to the device, and triggering an update installation. This allows the attacker to gain code execution in the context of the target app while preserving its data and signature. The exploit requires a session on the device (e.g., via meterpreter) and knowledge of the target package name. The code is written in Ruby and is structured as a typical Metasploit local exploit module, with functions for checking vulnerability, infecting APKs, and executing the exploit. No network endpoints are hardcoded; the main fingerprintable artifacts are file paths on the Android device.Disclosed Jul 31, 2017 · Framework: metasploit · ruby · localWeaponizedthreatDemosThis repository demonstrates two Android security threats: (1) abuse of exported broadcast receivers with weak custom permission protection, and (2) clipboard snooping by background apps. The main focus is on the 'Exposed BroadCastReceiver Threat' directory, which contains both a 'victim app' (simulating a device booster utility) and an 'attacker app' (broadcast spammer). The victim app exposes a broadcast receiver (com.victimapp.MySensitiveReceiver) that performs sensitive actions (vibration, toast, app launch) when triggered by a broadcast intent with action 'com.victimapp.CLEANUP'. Although the receiver is protected by a custom permission (com.victimapp.SENSITIVE_PERMISSION), this is set to 'normal' protection level, allowing any app to declare the same permission and send broadcasts. The attacker app exploits this by repeatedly sending crafted intents to the receiver, causing the victim app to execute privileged actions without proper authorization. The exploit is operational and demonstrates a real-world Android security anti-pattern. The repository also contains a clipboard snooper PoC in the 'Clipboard_threat/backgroundApp' directory, which logs clipboard contents to a file in the Downloads directory, but the main exploit of interest is the broadcast receiver abuse.nictjh · Disclosed Aug 1, 2025 · kotlin · javascript · localOperationaljanus-toolkitThis repository is a toolkit for exploiting the Janus vulnerability (CVE-2017-13156) in Android. It contains tools written in Python and Go for injecting arbitrary code or data (such as a DEX file) into APK files without invalidating the APK Signature v1. The main exploit scripts are 'python3/janus.py' and 'golang/main.go', both of which manipulate the APK's ZIP structure to prepend custom data and adjust ZIP directory offsets, optionally correcting DEX checksums to ensure validity. The toolkit also includes helper scripts: 'extract_dex.py' for extracting DEX files from already injected APKs, and 'manifest_dummy.py' for generating dummy Java classes and manifest tags to assist with Android Studio projects. The exploit targets Android versions 5.1.1 through 8.0 (pre-Nougat), where the Janus vulnerability allows attackers to modify APKs without breaking their cryptographic signatures. The attack vector is local, requiring access to APK files for modification. No network endpoints or remote services are involved; all operations are performed on local files. The repository is structured with clear separation between Go and Python implementations, and includes Java templates for dummy class generation.giacomoferretti · Disclosed Aug 25, 2019 · python · go · localPoCCVE-2017-13156-JanusThis repository is a proof-of-concept (POC) for exploiting the Android Janus vulnerability (CVE-2017-13156), which allows attackers to inject a malicious DEX file into a legitimate APK without invalidating its signature. The repository contains an Android app project (JanusApp), various DEX and APK files, and both Python (janus.py) and Java (Janus.jar) tools to perform the injection. The README provides detailed steps for modifying an APK, including decompiling, editing smali code, repackaging, and using the provided tools to create a new APK that bypasses signature checks. The exploit targets Android versions 5.0 to 8.0 and demonstrates the ability to execute arbitrary code in the context of a signed app. The attack vector is local, requiring the attacker to have access to the APK and the ability to install the resulting malicious APK on a vulnerable device. No network endpoints or remote services are involved; all manipulation is performed on local files.tea9 · Disclosed Sep 3, 2020 · java · python · localPoCJanus-Vulnerability-CVE-2017-13156-ExploitThis repository contains a single Python script, 'exploit.py', which is a proof-of-concept tool for injecting a DEX file (such as one extracted from WhatsApp) into a target APK. The script operates locally and requires the user to provide a DEX file, a target APK, and an output filename. The process involves modifying the APK's central directory to account for the new DEX file, updating checksums, and writing the combined file as a new APK. The script is intended for use in scenarios where an attacker can manipulate APK files, potentially to bypass signature or integrity checks and inject arbitrary code. The repository does not target a specific CVE but is relevant to Android APK/Dex manipulation, with a focus on WhatsApp as an example. The structure is simple, with only one Python file and no external dependencies beyond standard Python libraries and the required APK files.l1ackerronin · Disclosed Feb 20, 2024 · python · 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-2017-13156 exploited in the wild?
Yes. As of Nov 13, 2026, Mallory has reports of exploitation in the wild.
Is there a public exploit for CVE-2017-13156?
Yes. Mallory tracks 5 public exploits or proofs of concept for CVE-2017-13156, the earliest disclosed Jul 31, 2017.
Is there a patch for CVE-2017-13156?
Install the vendor-provided Android firmware or security update containing the CVE-2017-13156 fix, released in the December 2017 Android security update. Replace devices that cannot receive a corrected firmware with supported devices.
What products are affected by CVE-2017-13156?
Google Android.
How severe is CVE-2017-13156?
CVE-2017-13156 has a CVSS v3 score of 7.8 (High) and an EPSS score of 20.1% (98th percentile) as of Nov 13, 2026.
Activity feed

Recent activity

9 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+3 more in the timeline. Sign up to see them
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 malware3Malware 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 activity2Community discussion across Reddit, Mastodon, and other social sources.