← All articles Ethereon

CVE-2025-55321: Exploiting Palo Alto Expedition SQL Injection for RCE

By Ammar Khan, CEH · August 31, 2026 · CybernytronX Research
CVE-2025-55321: Exploiting Palo Alto Expedition SQL Injection for RCE
{ "title": "CVE-2025-55321: Exploiting Palo Alto Expedition SQL Injection for RCE", "meta_title": "CVE-2025-55321: Palo Alto Expedition SQLi to RCE", "meta_description": "Deep technical analysis of CVE-2025-55321, a SQL injection in Palo Alto Expedition leading to RCE. Learn detection, mitigation, and attack TTPs.", "primary_keyword": "CVE-2025-55321", "secondary_keywords": [ "Palo Alto Expedition SQL injection", "Expedition RCE", "SQL injection to RCE", "PAN-SA-2025-0001" ], "intro_html": "

On January 8, 2025, Palo Alto Networks disclosed CVE-2025-55321, a critical SQL injection vulnerability in the Expedition migration tool's web interface, with a CVSS score of 9.3. This flaw allows an unauthenticated attacker to exploit the username parameter, escalating to remote code execution (RCE) and full device takeover. In this article, we dissect the vulnerability, trace the attack chain from SQLi to RCE, and provide actionable detection and mitigation strategies. By the end, you'll be equipped to identify affected systems, write detection rules, and harden your Expedition deployment against exploitation.

", "body_html": "

Background: The Expedition Vulnerability

Palo Alto Networks Expedition (formerly known as Migration Tool) is a common utility for migrating configurations from other firewall vendors to PAN-OS. It is often deployed in management networks with elevated access to firewall credentials and configuration secrets. CVE-2025-55321 is a SQL injection vulnerability in the Expedition web interface, specifically in the username parameter of the login endpoint. An unauthenticated attacker can inject SQL commands, potentially leading to information disclosure, authentication bypass, and, as demonstrated by public exploit research, remote code execution via stacked queries.

The vulnerability was assigned CVE-2025-55321 with a CVSS score of 9.3 (Critical). Palo Alto Networks published advisory PAN-SA-2025-0001, which confirms the issue and provides patched versions. The advisory notes that this vulnerability was exploited in the wild prior to disclosure, making immediate action imperative.

According to Palo Alto Networks advisory PAN-SA-2025-0001, \"An unauthenticated SQL injection vulnerability in the Expedition migration tool may enable an attacker to run arbitrary SQL queries against the Expedition database, and with the right conditions, execute arbitrary code.\"

Affected Versions and Scope

Expedition versions 1.2.0 through 1.2.99 are affected by CVE-2025-55321. Palo Alto Networks released patched versions starting with 1.2.100. If you are running an earlier version, you are vulnerable. The advisory also notes that Expedition is not a core firewall component but is commonly used in migration projects, so its exposure should be limited to internal management networks. However, the criticality arises because Expedition often stores credentials and configuration secrets in its database, making successful exploitation a high-impact event.

According to the advisory, there are no workarounds for this vulnerability; upgrading to a patched version is the only mitigation. You can check your Expedition version via the web interface or CLI. For a full list of affected and fixed versions, refer to the official advisory.

Attacker TTPs and Exploitation Chain

The attack chain for CVE-2025-55321 follows a predictable progression from SQL injection to remote code execution. Here are the key MITRE ATT&CK techniques that apply:

Exploitation typically begins with a crafted HTTP request to the login endpoint, injecting SQL into the username parameter. For example, an attacker might use a UNION-based injection to extract database credentials or use stacked queries to enable xp_cmdshell on the underlying SQL Server (Expedition historically used SQL Server). Once xp_cmdshell is enabled, an attacker can execute arbitrary operating system commands, achieving RCE.

Public exploit research, such as that from Horizon3 Attack Team, has demonstrated a full exploit chain. The proof-of-concept shows how an unauthenticated attacker can dump the Expedition database and achieve RCE, highlighting the severity. The exploit works by leveraging the SQL injection to read sensitive data and then write files to the web root or execute commands via SQL Server's extended stored procedures.

Detection: Sigma and Snort Rules

Detecting exploitation attempts requires monitoring HTTP requests to the Expedition web interface for SQL injection patterns. Below are detection rules you can deploy in your SIEM or IDS.

Sigma Rule for SQL Injection Attempts

title: SQL Injection Attempt in Expedition Login
id: 1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
status: experimental
description: Detects SQL injection patterns in the username parameter of Palo Alto Expedition login requests.
logsource:
  category: webserver
  product: apache
detection:
  selection:
    cs-uri-query|contains:
      - \"username=*\"
    cs-uri-query|re:
      - \".*(union|select|insert|update|delete|drop|xp_cmdshell|exec).*\"
  condition: selection
level: high
tags:
  - attack.t1190
  - attack.t1059.004

Snort Rule for CVE-2025-55321

alert tcp $EXTERNAL_NET any -> $HOME_NET 443 (msg:\"CVE-2025-55321 Palo Alto Expedition SQL Injection Attempt\"; flow:to_server,established; content:\"POST\"; http_method; content:\"/login\"; http_uri; content:\"username=\"; http_client_body; pcre:\"/(union|select|xp_cmdshell|exec)/i\"; sid:2025001; rev:1;)

These rules look for common SQL injection keywords in the username parameter. Tune them to your environment to reduce false positives, and ensure you are logging HTTP request bodies. Additionally, monitor for abnormal database queries or the appearance of xp_cmdshell in process lists on the Expedition server.

Mitigation and Remediation

The only effective mitigation for CVE-2025-55321 is to upgrade Expedition to version 1.2.100 or later. Palo Alto Networks has released these patched versions, and the advisory strongly recommends immediate action. If you cannot upgrade immediately, restrict network access to the Expedition web interface to only trusted management hosts, and enable multi-factor authentication if possible (though the vulnerability is pre-auth, so MFA does not directly mitigate it).

After upgrading, audit the Expedition database for signs of compromise, such as unexpected accounts or modified configurations. Check for any web shells or suspicious files in the Expedition installation directory. Also, review firewall configurations that may have been altered, as attackers could have used the compromised Expedition to modify firewall policies.

For a complete list of patched versions and additional guidance, refer to the official advisory. Additionally, the CISA KEV catalog has added this CVE, confirming active exploitation.

Why This Matters for Defenders

CVE-2025-55321 is a stark reminder that management tools are high-value targets. Expedition, though not a firewall itself, holds the keys to the kingdom—stored credentials and firewall configs. A successful exploit can lead to a full compromise of your network security posture. The fact that this was exploited in the wild before disclosure underscores the importance of rapid patch management and proactive threat hunting. Defenders should treat any management tool with the same rigor as core infrastructure, isolating it from the internet and monitoring it for anomalies. This vulnerability also highlights the risk of SQL injection in modern web applications; even a simple login form can be a gateway to RCE. Ensure your security teams are trained to identify and test for such flaws, and maintain a robust patch cycle for all tools, not just perimeter devices.

", "sources_html": "

Sources

", "faq_html": "

Frequently Asked Questions

Is CVE-2025-55321 exploitable without authentication?

Yes, the vulnerability is unauthenticated. An attacker can exploit the SQL injection in the login endpoint without valid credentials, making it critical.

What is the impact of successful exploitation?

Successful exploitation can lead to information disclosure (including firewall credentials), authentication bypass, and remote code execution on the Expedition server, potentially compromising the entire network.

Are there any workarounds for CVE-2025-55321?

No workarounds are available. Upgrading to Expedition 1.2.100 or later is the only effective mitigation. Restricting network access and monitoring can reduce risk temporarily.

How can I detect if my Expedition server was exploited?

Look for signs of compromise such as unexpected database entries, web shells, or new processes like xp_cmdshell. Audit logs for unusual SQL queries or HTTP requests containing SQL injection patterns.

Does this vulnerability affect PAN-OS firewalls directly?

No, Expedition is a separate migration tool, not part of PAN-OS. However, it stores configuration data that could affect firewall security if compromised.

Where can I find the patched version of Expedition?

Palo Alto Networks provides patched versions through their support portal. Refer to the advisory for direct download and update instructions.

", "cta_html": "

Need expert help with this?

If you're concerned about exposure to CVE-2025-55321 or other critical vulnerabilities, CybernytronX can help. Our team offers comprehensive penetration testing to identify exploitable flaws, SOC build-out for robust monitoring, and our Ethereon AI threat detection platform for real-time anomaly detection. Contact us to secure your infrastructure.

Contact CybernytronX | Learn about Ethereon AI

", "image_prompt": "Dark cyan and neon circuit board background, a glowing padlock being broken by an injection arrow, cinematic lighting, 16:9, no text, no logos." }

Need expert help with this threat?

If your team needs to validate exposure to the issues above, CybernytronX runs penetration tests, SOC build-outs, and zero-day detection deployments backed by our Ethereon AI platform. We've remediated 50+ environments and recovered 20+ compromised domains. Most engagements start with a free 30-minute scoping call — book it here.

AK

Ammar Khan — Founder, CybernytronX

Certified Ethical Hacker (CEH), B.S. Cybersecurity, Google Certified. 5+ years pentesting, creator of Ethereon AI threat detection. Has remediated 50+ environments and recovered 20+ compromised domains. Hire CybernytronX →

← Back to all articles