CVE-2026-12986 PUBLISHED

Assigner: Payara
Reserved: 23.06.2026 Published: 24.06.2026 Updated: 24.06.2026

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.

Metrics

CVSS Vector: 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
CVSS Score: 7.3

Product Status

Vendor Payara
Product Payara Server
Versions Default: affected
  • affected from 7.2025.1 to 7.2026.6 (excl.)
  • affected from 7.0.0 to 7.1.0 (excl.)
  • affected from 6.0.0 to 6.39.0 (excl.)
  • affected from 5.20.0 to 5.88.0 (excl.)
  • affected from 4.1.144 to 4.1.2.191.56 (excl.)
  • affected from 5.181 to 5.201.2 (incl.)
  • affected from 5.2020.1 to 5.2022.5 (incl.)
  • affected from 6.2023.1 to 6.2025.11 (incl.)

Credits

  • sujaltuladhar1231@gmail.com reporter

References

Problem Types

  • CWE-352 Cross-Site request forgery (CSRF) CWE
  • CWE-918 Server-Side request forgery (SSRF) CWE

Impacts

  • CAPEC-664 Server Side Request Forgery
  • CAPEC-62 Cross Site Request Forgery
  • CAPEC-60 Reusing Session IDs (aka Session Replay)