Skip to main content
Meet us at Black Hat USA 2026— Las Vegas, August 1–6Book a Meeting
Mallory
HighCISA KEVExploited in the wildPublic exploit

Authentication Bypass in Palo Alto PAN-OS GlobalProtect Portal and Gateway

IdentifiersCVE-2026-0257CWE-565· Reliance on Cookies without…

CVE-2026-0257 is an authentication bypass vulnerability in the GlobalProtect portal and gateway components of Palo Alto Networks PAN-OS, and certain Prisma Access deployments. The issue affects deployments using GlobalProtect authentication override cookies under a specific certificate configuration. Public reporting and vendor-adjacent analysis indicate that when the same certificate is reused for both the HTTPS service and authentication override cookie encryption/decryption, an attacker can obtain the public key from the exposed HTTPS service and forge authentication override cookies that the appliance will accept. Rapid7 reported that the vulnerable PAN-OS cookie handling path decrypts and trusts cookie contents without sufficient authenticity verification, enabling unauthenticated remote attackers to bypass normal authentication and establish unauthorized VPN sessions. Panorama and Cloud NGFW are not impacted.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

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

Successful exploitation allows a remote unauthenticated attacker to bypass GlobalProtect authentication controls and establish an unauthorized VPN connection to the affected firewall or service. This can grant the attacker a legitimate-looking VPN session and, in some cases, an internal VPN-assigned IP address and access to internal network resources reachable by authenticated VPN users. Observed and assessed downstream risk includes internal reconnaissance, SMB/NTLM probing, lateral movement opportunities, follow-on payload delivery, data access, and broader compromise of internal systems, although multiple reports noted no confirmed widespread post-access lateral movement at the time of publication.

Mitigation

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

If immediate patching is not possible, disable the GlobalProtect authentication override feature by disabling generation and acceptance of authentication override cookies on the portal and gateway. Where the feature is required, generate and use a dedicated certificate exclusively for authentication override cookie encryption/decryption, do not reuse the portal or gateway HTTPS certificate for that purpose, and do not share that certificate with other features. Increase monitoring of GlobalProtect logs for suspicious cookie-based logins, successful gateway-connected events, anomalous hostnames or MAC addresses, and connections from known malicious source IPs published by Palo Alto Networks and other responders. Network segmentation and restricting reachable internal resources from VPN clients can reduce post-compromise impact.

Remediation

Patch, then assume compromise.

Upgrade affected PAN-OS and Prisma Access deployments to a vendor-fixed release provided by Palo Alto Networks. Prioritize internet-facing GlobalProtect portal and gateway systems. Review the Palo Alto Networks advisory for the exact fixed versions applicable to each supported release train, validate whether authentication override cookies are enabled, and correct any vulnerable certificate reuse configuration. After patching, review GlobalProtect and authentication logs for suspicious successful gateway-connected events and investigate any unauthorized VPN sessions.
PUBLIC EXPLOITS

Exploits

4 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos (7 hidden).

VALID 4 / 11 TOTALView more in app
CVE-2026-0257MaturityPoCVerified exploit

Small repository containing a single Python proof-of-concept exploit (poc.py), a minimal README, and a license. The script is a standalone network exploit for CVE-2026-0257 targeting Palo Alto Networks GlobalProtect. Its structure shows custom low-level TLS and ASN.1 parsing helpers rather than use of high-level libraries: it builds a ClientHello manually, connects to the target over TLS, parses certificate records from the handshake, extracts an RSA public key from the presented certificate, and uses that key material to forge a GlobalProtect portal-userauthcookie for a chosen username. It then submits the forged cookie to both gateway and portal validation paths and checks returned content for success indicators. The exploit is more than a detector because it generates and prints a reusable forged auth token and actively attempts authentication bypass. Based on the visible code, there are no hardcoded external C2 endpoints or third-party callback URLs; targeting is operator-supplied at runtime. The repository is therefore a focused operational PoC for unauthorized access/authentication bypass against vulnerable GlobalProtect deployments.

Ez4rd1x1Disclosed Jun 15, 2026pythonmarkdownnetworkweb
CVE-2026-0257MaturityPoCVerified exploit

Repository contains a single Python exploit script and a detailed README. The main file, CVE-2026-0257.py, is a standalone Palo Alto GlobalProtect authentication bypass exploit/scanner for CVE-2026-0257. It is not part of a common exploitation framework. The script supports scanning one target, multiple targets, or targets from a file, and uses threading for concurrent scans. Core capability: the exploit performs unauthenticated user impersonation by forging a GlobalProtect pre-authentication cookie using only the target server's publicly exposed TLS certificate. The code first opens a raw TCP connection to the target on port 443, sends a handcrafted TLS ClientHello, receives the server handshake, extracts DER-encoded certificates, walks ASN.1 structures to locate SubjectPublicKeyInfo, and recovers the RSA modulus/exponent. It then builds a cookie plaintext for an attacker-chosen username, applies PKCS#1 v1.5 style padding, encrypts with the extracted RSA public key, encodes the result, and submits it to the GlobalProtect login endpoint /ssl-vpn/login.esp. Success is determined from HTTP 200 responses and XML/status parsing, with testing performed in both gateway and portal contexts. Repository structure is minimal: one operational Python PoC plus documentation. The README explains the vulnerability mechanics, TLS handshake parsing, ASN.1 extraction, RSA cookie forgery, and expected impact (unauthenticated VPN access / arbitrary user impersonation). This is an exploit rather than a pure detector because it actively forges authentication material and attempts login bypass. Maturity is OPERATIONAL: the payload is built and used automatically, but it is a standalone PoC rather than a reusable framework module.

tushargurav28Disclosed Jun 3, 2026pythonmarkdownnetworkweb
CVE-2026-0257MaturityPoCVerified exploit

This repository is a small standalone Python proof-of-concept exploit for CVE-2026-0257 affecting Palo Alto Networks GlobalProtect on PAN-OS and Prisma Access. The repo contains three files: a README with vulnerability background and usage guidance, a requirements file, and a single executable script `exploit_poc.py` that implements the exploit logic. The exploit is clearly offensive rather than merely diagnostic. Its core capability is remote unauthenticated authentication bypass via forged GlobalProtect authentication override cookies. The script first connects to the target HTTPS service and extracts the full TLS certificate chain. It supports both modern Python behavior (`get_unverified_chain`) and an older fallback that manually captures and parses raw TLS 1.2 handshake records using `ssl.MemoryBIO` to recover the server certificates. It then iterates over each certificate/public key in the chain and attempts to construct an encrypted authentication override cookie for an attacker-supplied username and related client metadata. After generating candidate cookies, the script tests them against GlobalProtect web endpoints. The README explicitly identifies `/ssl-vpn/login.esp` for gateway validation, and the visible code shows separate handling for gateway and portal contexts. Success conditions are based on response content: for gateway mode, acceptance is inferred from a successful login-style response; for portal mode, acceptance is inferred from XML/JNLP-like `<argument>` elements containing the forged username and additional session/configuration data. When successful, the script prints the forged cookie and may also display extracted auth token, username, and gateway values. Operationally, the exploit supports single-target and multi-target scanning via `--target` or `--target-file`, custom port selection, arbitrary username selection, and customization of cookie fields such as domain, host ID, client OS, and client IP. This makes it more than a minimal PoC, but it is still a standalone script with a fixed exploit path rather than a fully modular framework payload, so OPERATIONAL is the best maturity fit. The exploit requires a specific vulnerable configuration: GlobalProtect authentication override must be enabled, and the certificate used for cookie encryption/decryption must be reused by the HTTPS service or otherwise share the same public key. If that condition is not met, the script reports that no key in the chain produced a valid cookie. Notable implementation details from the visible code include direct socket/TLS handling, certificate parsing with `cryptography.x509`, likely RSA public-key encryption for the forged cookie, HTTP requests via `urllib`, regex parsing of portal responses, and console output helpers from the `frint` package. No destructive behavior, persistence, or post-exploitation payloads are present; the main outcome is unauthorized authenticated access through a forged bearer-like cookie.

bolubeyDisclosed Jun 1, 2026pythonmarkdownnetworkweb
CVE-2026-0257MaturityPoCVerified exploit

This repository is a small standalone proof-of-concept exploit for CVE-2026-0257 affecting Palo Alto Networks PAN-OS GlobalProtect. It contains one Python exploit script, forge_cookie.py, and a README describing usage and expected behavior. The exploit’s core capability is authentication bypass via forged GlobalProtect auth override cookies. The script connects directly to the target’s HTTPS service, forces a TLS 1.2 handshake, captures raw handshake records, parses the Certificate message, and extracts every certificate in the presented chain. It then derives public keys from those certificates and iteratively uses each key to construct candidate authentication override cookies for a chosen identity (default user: admin, with optional domain, host ID, client OS, and client IP fields). After generating each candidate cookie, the script sends requests to GlobalProtect portal and/or gateway web endpoints over HTTPS to determine whether the forged cookie is accepted. Success is inferred from returned XML/JNLP content, such as <status>Success</status> or <argument> elements containing the requested username and connection details. When successful, the script prints the forged cookie and may also display extracted values such as auth token, username, and gateway information. Repository structure is minimal: - Readme.md: vulnerability description, command-line usage, and sample successful exploitation output. - forge_cookie.py: full exploit implementation, including TLS certificate-chain extraction, certificate parsing, public-key handling, cookie forging, HTTP(S) request logic, response parsing, and CLI argument handling. This is not merely a detector: it actively attempts exploitation by forging and replaying authentication cookies. However, it is still a PoC/operational script rather than a framework-integrated or heavily weaponized tool. The exploit is network/web-based, targets exposed GlobalProtect services over HTTPS, and is intended to validate whether a target accepts forged auth override cookies derived from public keys in its TLS certificate chain.

sfewer-r7Disclosed May 29, 2026pythonmarkdownnetworkweb
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
Palo Alto NetworksPrisma Accessoperating_system
PaloaltonetworksPan-Osoperating_system
PaloaltonetworksPrisma Accessapplication
SiemensRuggedcom Ape1808 Firmwareoperating_system

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

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, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware1

Malware families riding this exploit, with evidence and IOCs.

Detection signatures1

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity180

Community discussion across Reddit, Mastodon, and other social sources.