---
id: "CVE-2026-1340"
kind: "vulnerability"
aliases: ["CVE-2026-1340"]
title: "A code injection in Ivanti Endpoint Manager Mobile allowing attackers to achieve unauthenticated remote code execution"
severity: "critical"
cvss: 9.8
epss: null
exploited: true
status: "open"
category: "vendor"
products: [{"name": "Ivanti Endpoint Manager Mobile (EPMM)", "fixed": [], "affected": "", "ecosystem": "vendor"}, {"name": "ivanti endpoint manager mobile", "fixed": [], "affected": "<= 12.7.0.0", "ecosystem": "vendor"}]
ecosystems: ["vendor"]
tags: ["cloudflare", "epmm", "exploited", "ivanti", "lab-disclosure", "mobile-device-management", "self-hosted", "vendor"]
not_affected_if: ["unknown"]
published_at: "2026-01-29T22:15:53+00:00"
first_seen_at: "2026-10-23T19:11:51+00:00"
updated_at: "2026-10-24T19:12:57+00:00"
sources: [{"source": "kev", "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2026-1340", "first_seen_at": "2026-10-23T19:11:51+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-1340", "first_seen_at": "2026-10-23T23:44:51+00:00"}, {"source": "lab", "url": "https://developers.cloudflare.com/changelog/post/2026-03-12-emergency-waf-release/", "first_seen_at": "2026-10-24T19:12:57+00:00"}]
---

# A code injection in Ivanti Endpoint Manager Mobile allowing attackers to achieve unauthenticated remote code execution

Ivanti Endpoint Manager Mobile (EPMM) has a code injection flaw that lets an unauthenticated remote attacker run code on the server. CISA lists it as actively exploited in the wild.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- vendor:Ivanti Endpoint Manager Mobile (EPMM) affected ? fixed ?
- vendor:ivanti endpoint manager mobile affected <= 12.7.0.0 fixed ?

## Fix

Apply the vendor mitigations per Ivanti's advisory; if none are available, discontinue use of the product per CISA guidance. Exact fixed versions: unknown.

## Mitigated for you by

- Cloudflare (waf-rule, since 2026-03-12): covers HTTP requests proxied through Cloudflare that match the Cloudflare Managed Ruleset rule 'Ivanti EPMM - Code Injection' (rule ID ...796ea2f6), which changed from Log to Block Limits: none stated Still: none stated in the document https://developers.cloudflare.com/changelog/post/2026-03-12-emergency-waf-release/

## Timeline

- 2026-10-23T19:11:51+00:00 kev https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2026-1340
- 2026-10-23T23:44:51+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-1340
- 2026-10-24T19:12:57+00:00 lab https://developers.cloudflare.com/changelog/post/2026-03-12-emergency-waf-release/ — Cloudflare: WAF Release - 2026-03-12 - Emergency · Changelog

## Documents

- [advisory] Cloudflare: WAF Release - 2026-03-12 - Emergency · Changelog https://developers.cloudflare.com/changelog/post/2026-03-12-emergency-waf-release/

## From the sources

WAF Release - 2026-03-12 - Emergency · Changelog

# Changelog

New updates and improvements at Cloudflare.

March 12, 2026

## WAF Release - 2026-03-12 - Emergency

This week's release introduces new detections for vulnerabilities in Ivanti Endpoint Manager Mobile (CVE-2026-1281 and CVE-2026-1340), alongside a new generic detection rule designed to identify and block Cross-Site Scripting (XSS) injection attempts within the `Content-Security-Policy` (CSP) HTTP request header.

Key Findings

- CVE-2026-1281 & CVE-2026-1340: Ivanti Endpoint Manager Mobile processes HTTP requests through Apache RevwriteMap directives that pass user-controlled input to Bash scripts (`/mi/bin/map-appstore-url` and `/mi/bin/map-aft-store-url`). Bash scripts do not sanitize user input and are vulnerable to shell arithmetic expansion thereby allowing attackers to achieve unauthenticated remote code execution.
- Generic XSS in CSP Header: This rule identifies malicious payloads embedded within the request's `Content-Security-Policy` header. It specifically targets scenarios where web frameworks or applications trust and extract values directly from the CSP header in the incoming request without sufficient validation. Attackers can provide crafted header values to inject scripts or malicious directives that are subsequently processed by the server.

Impact

Successful exploitation of Ivanti EPMM vulnerability allows unauthenticated remote code execution and generic XSS in CSP header allows attackers to inject malicious scripts during page rendering. In environments using server-side caching, this poisoned XSS content can subsequently be cached and automatically served to all visitors.

| Ruleset | Rule ID | Legacy Rule ID | Description | Previous Action | New Action | Comments |
| --- | --- | --- | --- | --- | --- | --- |
| Cloudflare Managed Ruleset | ...796ea2f6 | N/A | Ivanti EPMM - Code Injection - CVE:CVE-2026-1281 CVE:CVE-2026-1340 | Log | Block | This is a new detection. |
| Cloudflare Managed Ruleset | ...ee964a8c | N/A | Anomaly:Header:Content-Security-Policy | N/A | Block | This is a new detection. |

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
