Security Resilience

CVE-2025-66524

RCE in Apache Nifi 1.20.0 – 2.7.0

Published
19 December 2025
Modified
08 January 2026
Patch / advisory
CVSS Score v4 7.5
Click a component to see what it means
Raw vectorCVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:Y/R:U/V:C/RE:L/U:Green
EPSS Score 0.0064 52th percentile
Risk Priority 27 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2025-66524 is a high-severity Deserialization of Untrusted Data (CWE-502) vulnerability in Apache Nifi. Its CVSS base score is 7.5 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Privilege Escalation (T1068); ranked in the top 48% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SI-10 (Information Input Validation) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2025-66524 is a high-severity vulnerability (CVSS 8.8) affecting Apache NiFi versions 1.20.0 through 2.6.0, specifically in the GetAsanaObject Processor from the nifi-asana-processors-nar bundle. This processor integrates with a configurable Distributed Map Cache Client Service to store and retrieve state information, but it employs unfiltered Java object serialization and deserialization (CWE-502). This lack of filtering exposes systems to risks from malicious payloads in the cached state data.

Exploitation requires an attacker to have low privileges (PR:L) and direct access to the configured cache server on an Apache NiFi instance running the GetAsanaObject Processor. The attack is feasible over the network (AV:N) with low complexity (AC:L) and no user interaction (UI:N), potentially leading to high impacts on confidentiality, integrity, and availability (C:H/I:H/A:H). A crafted state object stored in the cache can trigger dangerous deserialization gadgets when processed by the NiFi instance.

Apache advisories recommend upgrading to NiFi 2.7.0, which mitigates the issue by replacing Java object serialization with JSON serialization. Alternatively, removing the GetAsanaObject Processor from the nifi-asana-processors-nar bundle prevents exploitation entirely. Details are available in the Apache mailing list announcement and oss-security posting.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

Apache NiFi 1.20.0 through 2.6.0 include the GetAsanaObject Processor, which requires integration with a configurable Distribute Map Cache Client Service for storing and retrieving state information. The GetAsanaObject Processor used generic Java Object serialization and deserialization without filtering. Unfiltered Java…

more

object deserialization does not provide protection against crafted state information stored in the cache server configured for GetAsanaObject. Exploitation requires an Apache NiFi system running with the GetAsanaObject Processor, and direct access to the configured cache server. Upgrading to Apache NiFi 2.7.0 is the recommended mitigation, which replaces Java Object serialization with JSON serialization. Removing the GetAsanaObject Processor located in the nifi-asana-processors-nar bundle also prevents exploitation.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1068 Exploitation for Privilege Escalation Privilege Escalation
Adversaries may exploit software vulnerabilities in an attempt to elevate privileges.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1203 Exploitation for Client Execution Execution
Adversaries may exploit software vulnerabilities in client applications to execute code.
T1210 Exploitation of Remote Services Lateral Movement
Adversaries may exploit remote services to gain unauthorized access to internal systems once inside of a network.
T1499.004 Application or System Exploitation Impact
Adversaries may exploit software vulnerabilities that can cause an application or system to crash and deny availability to users.
T1499 Endpoint Denial of Service Impact
Adversaries may perform Endpoint Denial of Service (DoS) attacks to degrade or block the availability of services to users.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2023-34212Same product: Apache Nifi
CVE-2023-36542Same product: Apache Nifi
CVE-2023-34468Same product: Apache Nifi
CVE-2023-22832Same product: Apache Nifi
CVE-2023-40037Same product: Apache Nifi
CVE-2026-68981Same product: Apache Nifi
CVE-2023-49145Same product: Apache Nifi
CVE-2024-37389Same product: Apache Nifi
CVE-2024-45477Same product: Apache Nifi
CVE-2024-54676Same vendor: Apache

Affected Assets

apache
nifi
2.7.0 · 1.20.0 — 2.7.0

Mitigating Controls

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Developer testing and evaluation can uncover deserialization flaws before deployment.

Input validation directly stops deserialization of untrusted data by ensuring inputs are valid before processing.

Engineering principles such as safe deserialization and input sanitization structurally prevent the weakness from being introduced.

Integrity verification tools can detect malformed or tampered serialized data after the fact.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing includes validation of deserialization routines and the use of untrusted data, reducing the likelihood that unsafe object reconstruction will be deployed.

prevents

Training technical teams on secure deserialization practices reduces a minority of CWE-502 instances, but developers remain fallible and the owner explicitly identified A.8.29 (security testing) as the strongest control for this weakness, with A.8.28 (secure coding) graded only `partial` on the same pair.

prevents

Requiring vetted libraries, regular updates and SAST before release reduces the likelihood that deserialization logic will accept and act on attacker-controlled serialized objects.

finds

Regular scanning of third-party libraries and timely patching reduce the likelihood that unsafe deserialization vulnerabilities remain active.

References