Skip to main content

Payara Server CVE-2026-12986

| EUVDEUVD-2026-38793 HIGH
Cross-Site Request Forgery (CSRF) (CWE-352)
2026-06-24 Payara GHSA-x939-7fq5-v9v6
7.3
CVSS 4.0 · Vendor: Payara
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Lure logged-in admin to crafted link
  2. Delivery
    Forge request to unprotected DownloadServlet
  3. Exploit
    SSRF leaks gfresttoken to attacker host
  4. Execution
    Replay stolen token on admin REST API
  5. Persist
    Deploy malicious WAR
  6. Impact
    Execute code, full domain takeover

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Anti-CSRF tokens, SameSite cookies
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that a victim administrator currently holds an authenticated Payara Admin GUI session (a valid gfresttoken) AND is induced to trigger an attacker-crafted request to the DownloadServlet - the CVSS vector confirms PR:N (no attacker authentication) but UI:A and AT:P (active user interaction plus an attack requirement, namely the existing admin session). The concrete preconditions are the unprotected DownloadServlet endpoint (no CSRF token) and the SSRF-capable ContentSource handlers that accept an attacker-controlled destination URL for token exfiltration. Limiting factors: the attack fails if no administrator is logged in, if the Admin GUI is not reachable from the victim's browser context (e.g. bound to localhost or a segregated management network - consistent with the vendor's AV:A), or if the admin session has expired. No special non-default Payara feature must be enabled, since DownloadServlet ships as part of the standard Admin GUI console-common module.

Impact

The vendor CVSS 4.0 base score is 7.3 (High) with vector AV:A/AC:L/AT:P/PR:N/UI:A and threat metric E:P, indicating no attacker privileges but mandatory active user interaction (a logged-in admin must trigger the request) plus an attack requirement (a valid admin session must exist). This is a genuine high-impact issue because successful exploitation yields full admin-domain takeover and RCE (VC/VI/VA:H and subsequent-system SC/SI/SA:H), but it is NOT a drive-by, fully automatable compromise: it depends on social-engineering a privileged user who holds an active session. No EPSS score and no CISA KEV entry were provided, so there is no evidence of widespread or active exploitation, and the E:P maturity points to a proof-of-concept rather than confirmed in-the-wild use. One discrepancy to verify: the vendor chose AV:A (adjacent), yet a CSRF/SSRF delivered via a crafted URL to an administrator's browser is typically network-reachable (AV:N) - this conservative choice slightly lowers the score and should be checked against the admin console's actual network exposure.

Exploit ScenarioDerived

An attacker hosts a malicious page or sends an administrator a link; while that admin holds an active Payara Admin GUI session, visiting the page triggers a forged request to the vulnerable DownloadServlet that forwards the admin's gfresttoken to the attacker's server. The attacker replays the captured token against the Payara REST management interface to deploy a malicious WAR, achieving arbitrary code execution on the server; a proof-of-concept is indicated by the CVSS E:P maturity flag.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 24, 2026

Full unauthenticated administrative takeover of Payara Server Full (4.x through 7.2026.x, including 6.2024.x and 6.2025.x) is achievable by chaining a Server-Side Request Forgery in the Admin GUI's DownloadServlet with the absence of CSRF protection (CWE-352). An attacker who lures a logged-in administrator into a crafted request exfiltrates the admin REST session token (gfresttoken) to an attacker-controlled host, then replays it for full domain control and arbitrary code execution via WAR deployment. The CVSS 4.0 vector carries E:P (proof-of-concept maturity), so publicly available exploit code exists; there is no CISA KEV listing and no EPSS score in the provided data.

RemediationAI

Vendor-released patch: Payara Server 7.2026.6 (per the Payara Community Release Notes at https://docs.payara.fish/community/docs/Release%20Notes/Release%20Notes%207.2026.6.html); upgrade to the patched build for your branch and verify backported fixes for the 6.2024.x, 6.2025.x, 5.x, and 4.x lines directly with Payara, since several of those branches are older or may be end-of-support. Until patched, restrict network exposure of the Admin GUI/admin listener (default port 4848) to a management VLAN or localhost and require VPN/jump-host access - this prevents the crafted request from reaching the console but also blocks remote administration. Enforce that administrators do not browse untrusted sites while an admin console session is open and that they log out when finished, shrinking the window in which a valid gfresttoken can be stolen. Optionally front the console with a reverse proxy that validates Referer/Origin and adds anti-CSRF enforcement on DownloadServlet paths, accepting that overly strict proxy rules can break legitimate console downloads such as the log viewer, client stubs, and load-balancer config retrieval.

Affected VersionsENISA

Payara Server 4.1.144 <4.1.2.191.56
Payara Server 5.20.0 <5.88.0
Payara Server 5.2020.1 ≤5.2022.5
Payara Server 7.2025.1 <7.2026.6
Payara Server 6.0.0 <6.39.0
Payara Server 7.0.0 <7.1.0
Payara Server 5.181 ≤5.201.2
Payara Server 6.2023.1 ≤6.2025.11

Affected Packages

maven fish.payara.distributions:payara fix: 7.2026.6
euvd payara_server fix: 4.1.2.191.56, 5.88.0, 6.39.0, 7.1.0, 7.2026.6

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in maven, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Payara Server is a Jakarta EE / MicroProfile application server derived from GlassFish, used to host enterprise Java web applications; administration runs through the Admin GUI (admingui:console-common module) and a REST management interface authenticated by the gfresttoken session token. The root-cause class is CWE-352 (Cross-Site Request Forgery): the DownloadServlet lacks CSRF tokens, and its associated ContentSource implementations (LogViewerContentSource, LogFilesContentSource, LBConfigContentSource, ClientStubsContentSource) accept attacker-influenced URLs, producing a Server-Side Request Forgery primitive. Because the servlet fetches/forwards content to an attacker-supplied destination while operating in the authenticated admin's browser context, the privileged gfresttoken can be redirected to an external host, and that token grants the same capabilities as the admin REST API - including application (WAR) deployment, which yields code execution.

Know when Payara gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Payara) PRIMARY 7.3 HIGH
CVSS:4.0/AV:A/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:P/S:P/AU:Y/R:U/V:C/RE:M/U:Amber
vuln.today AI 8.3 HIGH

Browser-delivered CSRF/SSRF is network-reachable (AV:N); needs a logged-in admin victim to be tricked, so UI:R and AC:H; PR:N as the attacker is unauthenticated; stolen token enabling REST RCE changes scope (S:C) with full C/I/A impact.

3.1 AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Primary rating from Vendor (Payara).

CVSS VectorVendor: Payara

Attack Vector
Adjacent
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

1
Patch available
Jun 24, 2026 - 16:01 EUVD

DescriptionCVE.org

A critical vulnerability in Admin GUI in Payara Server Full 4.x, 5.x, 6.x, 7.x, 7.2026.x, 6.2025.x, 6.2024.x on All platforms that allows the attacker to leak the admin gfresttoken to an attacker-controlled host that can result in a full unauthenticated takeover of Payara admin domain.

A Server-Side Request Forgery (SSRF) vulnerability in the DownloadServlet of the Admin GUI in Payara Server allows a remote attacker to exfiltrate the administrator's REST session token (gfresttoken) to an attacker-controlled host via a crafted request URL. Combined with the absence of CSRF protection on DownloadServlet, an unauthenticated attacker can trick a logged-in administrator into triggering the token leak, then replay the stolen token to gain full administrative access to the Payara domain, leading to arbitrary code execution via WAR deployment. The vulnerability exists in the DownloadServlet and associated ContentSource implementations (LogViewerContentSource, LogFilesContentSource, LBConfigContentSource, ClientStubsContentSource) within the admingui:console-common module.

Executive ViewAI

Why It Matters

Payara Server (versions 4.x through 7.2026.x) contains a critical vulnerability enabling complete administrative takeover and arbitrary code execution, putting all production Payara instances at risk. No vendor patch exists, and publicly available exploit code enables attackers to socially engineer administrators into compromising their session credentials for full system access. Organizations running these versions face potential loss of application availability, data compromise, and lateral movement to connected systems.

Business Impact: High
Compensating Controls

Restrict Admin GUI network access via firewall IP whitelisting; disable DownloadServlet functionality if not operationally required; implement continuous monitoring of admin REST API token usage and exfiltration attempts; enforce multi-factor authentication for all administrative accounts; deploy web application firewall rules to detect SSRF patterns targeting upload/download endpoints; monitor for authentication attempts using potentially exfiltrated tokens; maintain detailed audit logs of all administrative actions.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Medium
enterprise Jakarta EE app server, common but narrower than Tomcat
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Controlled
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy