# CVE-2026-1340: Second Ivanti EPMM zero-day, in the Android File Transfer feature

The twin of CVE-2026-1281, a bash injection in EPMM's Android File Transfer URL handling, gives unauthenticated attackers code execution (CVSS 9.8). Exploited as a zero-day; CISA added it to KEV in April 2026.

- Vendor: Ivanti, Endpoint Manager Mobile (EPMM)
- Severity: CRITICAL (CVSS 3.1 9.8)
- Exploited (CISA KEV): yes, added 2026-04-08
- EPSS: 98.6% on 2026-12-02
- Public exploit: yes
- Patch available: yes
- Vendor advisory: https://forums.ivanti.com/s/article/Security-Advisory-Ivanti-Endpoint-Manager-Mobile-EPMM-CVE-2026-1281-CVE-2026-1340
- Published: 2026-01-29; updated: 2026-10-13
- Page: https://patchtonight.com/cve/CVE-2026-1340/

## Affected and fixed versions

| Affected | Fixed in |
| --- | --- |
| EPMM 12.5.0.x, 12.6.0.x, 12.7.0.x (12.7.0.0 and prior) | RPM 12.x.0.x, or upgrade to 12.7.0.1, 12.8.0.1 or later |
| EPMM 12.5.1.0, 12.6.1.0 and prior | RPM 12.x.1.x, or upgrade to 12.6.1.1 or later |
| Neurons for MDM (cloud), Endpoint Manager (EPM), Sentry | Not affected |

## What it is

This is the second of the two EPMM zero-days Ivanti disclosed on January 29, 2026. Both are the same bug in two different legacy bash scripts that Apache calls through `RewriteMap` rules. The scripts take values from the request URL and later compare one in a **bash arithmetic expression**. Bash evaluates command substitutions inside those expressions, so a crafted URL runs commands on the appliance. **No login is needed.**

Unit 42 and watchTowr place CVE-2026-1340 in `/mi/bin/map-aft-store-url`, which handles the **Android File Transfer** feature at URLs starting with `/mifs/c/aftstore/fob/`. Its twin, [CVE-2026-1281](/cve/CVE-2026-1281/), is in `/mi/bin/map-appstore-url` behind In-House Application Distribution (`/mifs/c/appstore/fob/`). Defused's report labels the two paths the other way round. The fix and the response are identical, so treat them as one problem.

CISA added CVE-2026-1281 to its catalog on disclosure day, but only added this one on April 8, 2026, based on evidence of active exploitation. Researchers who tracked the campaign (Unit 42, Defused, Telekom Security) reported both CVEs being exploited together from early February. Attackers used them for:

- dormant in-memory loaders at `/mifs/403.jsp`
- JSP web shells and reverse shells
- dumps of the EPMM database (users, devices, LDAP configuration)

## Am I affected?

You're affected if you run **on-premises EPMM 12.7.0.0 or earlier** (including the 12.5.1.0 and 12.6.1.0 lines) and have neither:

- applied the January 2026 RPM for your branch **after your last upgrade**, nor
- upgraded to **12.6.1.1, 12.7.0.1, 12.8.0.1** or later.

**The RPM does not survive a version upgrade.** If you upgraded after applying it to a version without the fix, you're exposed again.

Not affected: Ivanti Neurons for MDM (cloud), Ivanti Endpoint Manager (EPM) and Ivanti Sentry.

If your appliance was on an affected version at any point from late January 2026, assume it was attacked. NCSC-NL advised all EPMM users to assume compromise and investigate.

## What to do

**1. Upgrade** to the newest EPMM build for your branch (12.6.1.1, 12.7.0.1, 12.8.0.1 or later). These include the fix, so the January RPM is no longer needed. Ivanti has fixed more EPMM flaws since, so pick the newest build available, not just the minimum.

**2. If you can't upgrade tonight, apply the RPM** for your branch: `RPM 12.x.0.x` for 12.5.0.x, 12.6.0.x and 12.7.0.x, or `RPM 12.x.1.x` for 12.5.1.0 and 12.6.1.0. Reapply it after every upgrade.

**3. Check for compromise.** Run Ivanti's exploitation detection script, built with NCSC-NL, and follow its analysis guidance. Review your SIEM's copy of the logs, not only the appliance's own. Restart the application servers after patching to clear any in-memory loader (Defused).

**4. If you find signs of compromise,** restore from a known-good backup or build a new EPMM and migrate to it, as Ivanti advises. Then:

- Rotate every credential the appliance held, including admin and LDAP bind accounts.
- Review admin accounts, SSO and LDAP settings, pushed apps and policies.
- Check systems reachable through Ivanti Sentry for lateral movement.

Rotating credentials also matters for [CVE-2026-6973](/cve/CVE-2026-6973/), the admin-level EPMM flaw exploited in May. Ivanti said customers who rotated credentials after a January compromise face much lower risk from it.

## Detection

- GET requests to **`/mifs/c/aftstore/fob/`** (and `/mifs/c/appstore/fob/` for the twin) containing `gPath[` or `theValue`. The response code is often 404 even when the command ran (Unit 42).
- Requests that hang for about five seconds. Attackers used `sleep 5` to test targets (Unit 42).
- Any request to `/mifs/403.jsp`, especially with the parameter `k0f53cf964d387` or a large Base64 value starting with `yv66vg` (Defused).
- DNS lookups or connections from EPMM to OAST services such as `oast.live`, `oast.fun`, `oastify.com` and `requestrepo.com`, which attackers used to confirm execution.
- New JSP files in `/mi/tomcat/webapps/mifs/`, a non-image `/var/www/ext/html/favicon.png`, and evidence of `mysqldump --databases mifs` (Telekom Security).

The [CVE-2026-1281](/cve/CVE-2026-1281/) page has the full detection list and indicators for this campaign.

## Sources

- [Ivanti security advisory (CVE-2026-1281 and CVE-2026-1340)](https://hub.ivanti.com/s/article/Security-Advisory-Ivanti-Endpoint-Manager-Mobile-EPMM-CVE-2026-1281-CVE-2026-1340?language=en_US)
- [CISA KEV alert, April 8, 2026](https://www.cisa.gov/news-events/alerts/2026/04/08/cisa-adds-one-known-exploited-vulnerability-catalog)
- [Unit 42 threat brief](https://unit42.paloaltonetworks.com/ivanti-cve-2026-1281-cve-2026-1340/)
- [watchTowr technical analysis](https://labs.watchtowr.com/someone-knows-bash-far-too-well-and-we-love-it-ivanti-epmm-pre-auth-rces-cve-2026-1281-cve-2026-1340/)
- [Defused, 403.jsp sleeper shells](https://defusedcyber.com/ivanti-epmm-sleeper-shells-403jsp)
- [GreyNoise, exploitation traffic](https://www.greynoise.io/blog/active-ivanti-exploitation)
- [Telekom Security, mass exploitation and incident findings](https://github.security.telekom.com/2026/03/ivanti-CVE-2026-1281-exploitation.html)
- [Tenable, advisory summary and RPM mapping](https://www.tenable.com/blog/cve-2026-1281-cve-2026-1340-ivanti-endpoint-manager-mobile-epmm-zero-day-vulnerabilities)
- [Help Net Security, Ivanti disclosure and recovery guidance](https://www.helpnetsecurity.com/2026/01/30/ivanti-epmm-cve-2026-1281-cve-2026-1340/)
- [Help Net Security, May 2026 EPMM release](https://www.helpnetsecurity.com/2026/05/08/ivanti-epmm-zero-day-cve-2026-6973/)

---

Data from PatchTonight (https://patchtonight.com), compiled from vendor advisories, CISA KEV and FIRST EPSS. Please credit PatchTonight and link to the CVE page when you use it.
