Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2024-0012: Authentication Bypass in Palo Alto Networks PAN-OS Management Web Interface

Published Nov 18, 2024 · Updated 7 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
CVSS9.3Critical · v4
EPSS99.8%100th percentile
CISA KEVYesAdded Nov 18, 2024
In the wildActivePer CISA KEV
Vendor
Palo Alto Networks
IdentifiersCVE-2024-0012CWE-306 · Missing Authentication for…

CVE-2024-0012 is an authentication bypass vulnerability in the management web interface of Palo Alto Networks PAN-OS 10.2, 11.0, 11.1, and 11.2. Improper handling of the X-PAN-AUTHCHECK HTTP header allows an unauthenticated attacker to disable authentication checks by setting the header to off, gaining PAN-OS administrator privileges. An attacker can perform administrative actions, modify device configuration, and access functionality requiring authentication. Chaining this vulnerability with CVE-2024-9474 enables arbitrary command execution with root privileges. Cloud NGFW and Prisma Access are not affected.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation compromises administrative control of the affected firewall, allowing unauthorized administrative actions and configuration tampering. When combined with CVE-2024-9474, it enables unauthenticated root-level command execution and full device compromise. Observed exploitation of the combined vulnerabilities has included web shell deployment, command-and-control implants, cryptocurrency mining, and potential reconnaissance and lateral movement. The vulnerability is actively exploited and is included in CISA's Known Exploited Vulnerabilities catalog.

Mitigation

If you can’t patch tonight, do this now.

Restrict management web interface access to trusted internal IP addresses and remove direct Internet exposure. Isolate management access on a dedicated administration network and enforce network access controls. Monitor management-interface connections, configuration changes, unexpected outbound connections, and post-exploitation behavior. These restrictions reduce exposure but do not protect against attackers who can already reach the permitted management network.

Remediation

Patch, then assume compromise.

Apply vendor security updates. Fixed releases include PAN-OS 10.2.12-h2, 11.0.6-h1, 11.1.5-h1, and 11.2.4-h1; upgrade to these or subsequent vendor-fixed releases for the applicable branch. Also remediate CVE-2024-9474 to address the associated root-level exploitation chain. Investigate exposed devices for prior compromise because patching does not remove existing implants. For suspected compromise, isolate affected appliances, preserve forensic evidence, and rebuild using updated software and securely configured management access.

Public exploits

Exploits

8 exploits validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit.

View more in app →
panos_management_unauth_rce.rbThis repository contains a single Metasploit module (panos_management_unauth_rce.rb) that exploits two vulnerabilities (CVE-2024-0012 and CVE-2024-9474) in the Palo Alto Networks PAN-OS management web interface. The exploit leverages an authentication bypass and a command injection to achieve unauthenticated remote code execution as root on affected PAN-OS versions (10.2, 11.0, 11.1, 11.2 up to specified patch levels). The module is highly weaponized, supporting arbitrary command or shell payloads (including Meterpreter and reverse shells), which are delivered in chunks due to command length restrictions. The exploit interacts with specific web endpoints (notably /php/utils/createRemoteAppwebSession.php and /index.php/.js.map) and writes payloads to writable directories on the target. The code is structured as a standard Metasploit exploit module, with clear separation of check and exploit routines, and is intended for use within the Metasploit framework.Disclosed Nov 18, 2024 · Framework: metasploit · ruby · networkWeaponizedCVE-2024-0012-pocThis repository contains a Python proof-of-concept exploit for CVE-2024-0012, targeting Palo Alto Networks PAN-OS. The exploit leverages a command injection vulnerability via a crafted POST request to a specific endpoint. The payload executes 'netstat -ano' on the target and writes the output to a web-accessible file, which is then retrieved to confirm successful code execution. The script supports both single and batch URL testing via command-line arguments. The main code file is 'CVE-2024-0012', and the repository also includes a README with usage instructions. The exploit demonstrates operational maturity, as it provides a working payload and automates the exploitation process, but does not include advanced features such as a customizable shell. The attack vector is network-based, requiring HTTP access to the target endpoints. Several fingerprintable endpoints and a file path are hardcoded in the exploit, which are indicative of the targeted application structure.iSee857 · Disclosed Nov 22, 2024 · python · networkOperationalCVE-2024-0012This repository contains a Python exploit script (cve-2024-0012.py) targeting CVE-2024-0012, an authentication bypass vulnerability in Palo Alto Networks PAN-OS. The exploit allows an unauthenticated attacker with network access to the management web interface to execute arbitrary commands as an administrator. The script supports both arbitrary command execution and deploying a reverse shell to the attacker's machine. It works by sending crafted HTTP requests to specific endpoints on the target PAN-OS device, exploiting the authentication bypass to inject commands. The repository consists of a single exploit script and a README with usage instructions. The exploit is operational, providing real command execution and reverse shell capabilities, and is not part of a larger framework.0xjessie21 · Disclosed Nov 30, 2024 · python · networkOperationalCVE-2024-0012_CVE-2024-9474_PoCThis repository contains a Python proof-of-concept exploit for CVE-2024-0012 (authentication bypass) and CVE-2024-9474 (command execution) affecting Palo Alto Networks PAN-OS. The main file, 'CVE-2024-0012_CVE-2024-9474_Exploit_Palo_Alto_PAN-OS_PoC.py', automates the exploitation process: it first checks if the target is vulnerable, extracts a PHP session ID, generates a double-base64-encoded bash reverse shell payload, and uploads it in chunks to the target using a vulnerable PHP endpoint. The script then reconstructs and decodes the payload on the target, writes it to a shell script, and executes it, resulting in a reverse shell connection to the attacker's listener. The exploit leverages specific HTTP endpoints on the target PAN-OS device and uses temporary files for payload assembly. The repository also includes a detailed README with usage instructions, vulnerability descriptions, and references. The exploit is operational and provides a working reverse shell if the target is vulnerable and properly configured.TalatumLabs · Disclosed Dec 11, 2024 · python · networkOperationalcve-2024-0012-gui-pocThis repository contains a Python GUI exploit tool targeting Palo Alto Networks PAN-OS vulnerabilities CVE-2024-0012 (authentication bypass) and CVE-2024-9474 (authenticated command injection) in the management web interface. The main file, 'cve-2024-0012-gui.py', provides a PyQt5-based interface allowing the user to specify a target URL, command to execute, SSL verification, and request timeout. The exploit works by sending a crafted POST request to '/php/utils/createRemoteAppwebSession.php/cve.js.map' with a malicious 'user' parameter that injects a shell command. The output of the command is written to '/var/appweb/htdocs/unauth/cve.php', which is then accessed via HTTP to verify execution and retrieve the result. The tool automates the full exploit chain, including session creation, command execution, and output retrieval, and is operational with customizable command input. The README provides context and credits but no additional code.dcollaoa · Disclosed Feb 6, 2025 · python · networkOperationalPanOsExploitMultitoolThis repository contains a single main exploit tool, PanOsExploitMultitool.py, written in Python. The tool targets Palo Alto Networks PAN-OS devices vulnerable to CVE-2024-0012 and CVE-2024-9474, providing exploitation and post-exploitation capabilities. The script supports several commands: - 'check': Tests if a target is vulnerable. - 'shell': Exploits the target to obtain a reverse shell by chunking and writing a base64-encoded bash shell payload to a writable directory, then executing it to connect back to the attacker's listener. - 'dump': Retrieves and decrypts credentials from the target's configuration files using a known AES master key, and can also extract the full running configuration. - 'local': Decrypts credentials from a local XML config file, useful for offline analysis. - 'decrypt': Interactively decrypts encrypted credential strings using the public master key. The tool interacts with the PAN-OS management interface over HTTPS (default port 443), and uses file paths such as /var/tmp/ and /opt/pancfg/mgmt/saved-configs/ on the target device. It is operational and provides real exploitation and credential extraction capabilities, not just detection. The repository includes a README with detailed usage instructions and references, a requirements.txt for dependencies, and an Apache 2.0 license.Regent8SH · Disclosed May 21, 2025 · python · networkOperationalcve-2024-0012_9474-panos_authbypass_reproductionThis repository is a small standalone exploit PoC with two files: a README describing the PAN-OS vulnerability chain and a single Python entry-point script, exploit.py. The script targets Palo Alto Networks PAN-OS management interfaces over HTTPS and chains CVE-2024-0012 (authentication bypass) with CVE-2024-9474 (privilege escalation via PHP session path traversal) to achieve unauthenticated root-level RCE. Repository structure is minimal and purpose-built: README.md documents affected versions, exploitation logic, and mitigation guidance; exploit.py implements the attack flow. The Python code uses requests, disables TLS warnings for self-signed certificates, parses CLI arguments, and executes in two stages. Stage 1 iterates through a hardcoded list of candidate REST API paths such as /php/../restapi/10.2/ and /restapi/10.2/ to obtain an authenticated session context by probing for successful HTTP responses or redirects. Stage 2 builds a PHP payload of the form <?php system("<command>"); ?>, then abuses the session handler endpoint /php/utils/session_handler.php by supplying a traversal-based session identifier like ../../php/shell_xxxxxx.php, intending to write the payload into a web-accessible PHP location. The exploit’s main capability is arbitrary command execution as root via an uploaded PHP webshell. It supports a user-supplied command, optional custom shell filename, configurable target/port, optional SSL verification disablement, and an optional interactive shell mode after successful upload. Based on the available code and README, this is a real exploit rather than a detector, and it is best classified as OPERATIONAL: it contains a working hardcoded payload and end-to-end exploitation logic, but it is not part of a larger exploitation framework.razureink · Disclosed Jul 23, 2026 · python · markdown · network · webOperationalCVE-2024-0012-POCThis repository contains a Python proof-of-concept exploit for CVE-2024-0012, a command injection vulnerability in Palo Alto Networks PAN-OS. The repository consists of a README.md with usage instructions and a single exploit script (cve-2024-0012-pan-os-poc.py). The script targets a PAN-OS device by sending a crafted POST request to '/php/utils/createRemoteAppwebSession.php/watchTowr.js.map' with a command injection payload that writes the output of 'uname -a' to '/var/appweb/htdocs/unauth/watchTowr.php'. It then triggers the execution and verifies exploitation by retrieving the output file via '/unauth/watchTowr.php'. The exploit demonstrates successful command execution but does not provide a weaponized or customizable payload. The main attack vector is network-based, requiring HTTP(S) access to the target device. The endpoints used in the exploit are clearly defined in the script.Sachinart · Disclosed Nov 19, 2024 · python · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Palo Alto NetworksPan-Osoperating_system
FAQ

Frequently asked questions

Is CVE-2024-0012 exploited in the wild?
Yes. As of Nov 11, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 18, 2024.
Is there a public exploit for CVE-2024-0012?
Yes. Mallory tracks 8 public exploits or proofs of concept for CVE-2024-0012, the earliest disclosed Nov 18, 2024.
Is there a patch for CVE-2024-0012?
Apply vendor security updates. Fixed releases include PAN-OS 10.2.12-h2, 11.0.6-h1, 11.1.5-h1, and 11.2.4-h1; upgrade to these or subsequent vendor-fixed releases for the applicable branch.
What products are affected by CVE-2024-0012?
Palo Alto Networks Pan-Os.
How severe is CVE-2024-0012?
CVE-2024-0012 has a CVSS v4 score of 9.3 (Critical) and an EPSS score of 99.8% (100th percentile) as of Nov 11, 2026.
Activity feed

Recent activity

36 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+18 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence1Every report linking this CVE to a named adversary.
Associated malware13Malware families linked to this CVE, with evidence and IOCs.
Detection signatures3YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity8Community discussion across Reddit, Mastodon, and other social sources.