PAN-OS GlobalProtect (CVE-2024-3400)
CVE-2024-3400CWE-77OWASP A03:2021CVSS 10.0Updated August 29, 20261 min read
CVE-2024-3400 is a command injection in the GlobalProtect gateway of PAN-OS. An unauthenticated attacker could run commands as root on the firewall that was supposed to protect the network. It scores 10.0. The flaw was already being exploited in targeted attacks more than two weeks before the advisory.
- Affected
- PAN-OS 10.2, 11.0 and 11.1 with a GlobalProtect gateway and device telemetry enabled
- Patched in
- PAN-OS 10.2.9-h1, 11.0.4-h1, 11.1.2-h3 and later hotfixes
- Actively exploited
- yes
In April 2024 it emerged that attackers had been getting into Palo Alto Networks firewalls since late March. They used a flaw in exactly the component organisations rely on to let staff log in safely from outside.
What is CVE-2024-3400
The GlobalProtect gateway processed a value from a cookie without separating it from the operating-system commands built around it. An attacker who put the right text in that cookie had their own commands run alongside. Those commands ran as root, because that is how the service runs on the appliance.
This is remote code execution in its purest form: no account, no interaction, complete control.
What the attackers did
The researchers who found it named the campaign Operation MidnightEclipse. The attackers wrote a script that read commands out of the web server logs and returned output in a file that passed as a legitimate part of the appliance. That gave them a control channel barely visible in ordinary logging.
Then came the usual sequence: read the configuration, harvest credentials, and step from the firewall into the internal network.
Why the edge is increasingly the target
VPN concentrators, firewalls and gateways share three properties attackers like. They are always internet-facing, they hold broad rights inside the network, and they often run no detection software because they are closed appliances. A breach there is far harder to see than a breach on a workstation.
What to do now
- Verify that PAN-OS runs 10.2.9-h1, 11.0.4-h1, 11.1.2-h3 or later.
- Never expose management interfaces of network equipment directly to the internet. See also security misconfiguration.
- Include edge appliances in your log collection. If nothing is shipped off the device, you learn about a breach when somebody else notices it.
- With a critical flaw in edge equipment, assume exploitation has already happened and go looking for it, rather than only patching.
Sources
Frequently asked questions
Why is a flaw in a firewall especially serious?
A firewall is internet-facing by definition and sees all the traffic behind it. Getting root on one puts you not at the edge of the network but in its control room.
Was everyone running PAN-OS affected?
No. It required a GlobalProtect gateway and device telemetry both enabled. That narrowed the group, but to precisely the organisations using the appliance for remote access.
Was patching enough?
Only if nobody had got in yet. Palo Alto advised checking for signs of compromise after patching, because an attacker who arrived earlier may have left their own access behind.
Related articles
- CVEsCWE-917A03:2021Log4Shell (CVE-2021-44228)Log4Shell explained: how one line of text in a log file ran code on your server, who exploited it, and what you should still be checking today.
- GlossaryZero-dayA zero-day is a vulnerability still unknown to the vendor, meaning no patch exists yet. Learn how zero-day exploits work and how to limit the risk they pose.
- VulnerabilitiesCWE-94A03:2021Remote code execution (RCE)Remote code execution (RCE) explained: how attackers run their own commands or code on your server through unvalidated input, and how to prevent it.
- VulnerabilitiesCWE-16A05:2021Security misconfigurationSecurity misconfiguration explained: how default passwords, debug modes and open cloud buckets let attackers in, and how to harden your systems.