The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-4874

CVE-2026-4874: Keycloak SSRF Vulnerability

CVE-2026-4874 is a Server-Side Request Forgery flaw in Keycloak that allows authenticated attackers to make unauthorized HTTP requests from the server's network context. This article covers technical details, impact, and mitigation.

Published: March 27, 2026

CVE-2026-4874 Overview

A Server-Side Request Forgery (SSRF) vulnerability has been identified in Keycloak, the popular open-source identity and access management solution. An authenticated attacker can exploit this flaw by manipulating the client_session_host parameter during refresh token requests. The vulnerability is triggered when a Keycloak client is configured to use the backchannel.logout.url with the application.session.host placeholder. Successful exploitation allows the attacker to make HTTP requests from the Keycloak server's network context, potentially enabling reconnaissance of internal networks and APIs, leading to information disclosure.

Critical Impact

Authenticated attackers can leverage this SSRF vulnerability to probe internal network infrastructure and access internal APIs from the Keycloak server's network position, potentially exposing sensitive internal resources and configuration data.

Affected Products

  • Keycloak (specific versions not yet defined in advisory)
  • Red Hat Single Sign-On (based on Keycloak)
  • Deployments using backchannel.logout.url with application.session.host placeholder

Discovery Timeline

  • 2026-03-26 - CVE-2026-4874 published to NVD
  • 2026-03-26 - Last updated in NVD database

Technical Details for CVE-2026-4874

Vulnerability Analysis

This SSRF vulnerability (CWE-918) exists in Keycloak's token refresh handling mechanism. The flaw occurs during the processing of refresh token requests when specific client configurations are in place. The client_session_host parameter is not properly validated, allowing an authenticated user to inject arbitrary hostnames or IP addresses.

When a Keycloak client is configured with a backchannel.logout.url that utilizes the application.session.host placeholder, the server-side code substitutes the attacker-controlled value from client_session_host directly into the URL used for backchannel logout requests. This allows the attacker to redirect HTTP requests to internal resources that would otherwise be inaccessible from external networks.

The vulnerability requires authentication, which limits the attack surface but still poses significant risks in multi-tenant environments or systems where user registration is open.

Root Cause

The root cause of this vulnerability is improper input validation of the client_session_host parameter combined with the insecure use of the application.session.host placeholder in backchannel logout URL configurations. The Keycloak server trusts user-supplied host information without adequate verification, allowing manipulation of the destination for server-originated HTTP requests.

Attack Vector

The attack is network-based and requires the attacker to have valid authentication credentials for the Keycloak instance. The exploitation flow involves:

  1. The attacker authenticates to the Keycloak server and obtains a refresh token
  2. During a token refresh request, the attacker manipulates the client_session_host parameter to point to an internal resource
  3. When the backchannel logout URL is processed, Keycloak substitutes the malicious host value
  4. The Keycloak server makes an HTTP request to the attacker-specified internal target
  5. Response data or timing information may reveal details about internal infrastructure

The vulnerability mechanism centers on the insecure placeholder substitution in backchannel logout URLs. When the application.session.host placeholder is used in backchannel.logout.url configurations, Keycloak substitutes this with the value from client_session_host without proper validation. An attacker can set this parameter to internal hostnames like localhost, 127.0.0.1, internal IP ranges, or internal DNS names to probe infrastructure that should not be accessible from outside the network. For detailed technical analysis, refer to the Red Hat CVE-2026-4874 Advisory.

Detection Methods for CVE-2026-4874

Indicators of Compromise

  • Unusual values in client_session_host parameters within token refresh requests, particularly internal IP addresses or hostnames
  • Keycloak server making unexpected outbound HTTP requests to internal network segments
  • Authentication logs showing repeated token refresh attempts from the same user with varying session host values
  • Network traffic from the Keycloak server to internal services that don't normally receive such connections

Detection Strategies

  • Monitor Keycloak access logs for token refresh requests containing suspicious client_session_host values such as localhost, 127.0.0.1, or internal IP ranges
  • Implement network segmentation monitoring to detect Keycloak server connections to internal resources outside its normal communication patterns
  • Deploy web application firewall (WAF) rules to inspect and flag token requests with internal IP addresses or hostnames in the client_session_host parameter
  • Utilize SentinelOne Singularity Platform for real-time behavioral analysis of Keycloak server network activity

Monitoring Recommendations

  • Enable detailed logging for all OAuth token operations in Keycloak, specifically focusing on refresh token flows
  • Configure alerts for Keycloak server outbound connections to RFC1918 private IP ranges or internal DNS names
  • Implement egress filtering to restrict and log the Keycloak server's ability to initiate connections to internal services
  • Deploy SentinelOne agents on Keycloak server hosts to monitor for anomalous network behavior patterns

How to Mitigate CVE-2026-4874

Immediate Actions Required

  • Review all Keycloak client configurations for usage of backchannel.logout.url with the application.session.host placeholder
  • Consider removing or replacing the application.session.host placeholder with static, validated URLs in backchannel logout configurations
  • Implement network-level restrictions to limit the Keycloak server's ability to make outbound requests to internal network segments
  • Audit authentication logs for signs of exploitation attempts
  • Apply vendor patches when available from Red Hat or the Keycloak project

Patch Information

As of the publication date, specific patch information has not been released. Organizations should monitor the Red Hat CVE-2026-4874 Advisory and Red Hat Bug Report #2451611 for updates on official patches and remediation guidance. Red Hat typically provides patched versions through their standard update channels for Red Hat Single Sign-On and related products.

Workarounds

  • Reconfigure affected clients to use static URLs instead of the application.session.host placeholder in backchannel.logout.url settings
  • Implement network segmentation to isolate the Keycloak server and restrict its outbound connectivity to only required external services
  • Deploy a reverse proxy or WAF in front of Keycloak to filter and validate incoming token requests before they reach the server
  • Consider disabling backchannel logout functionality for clients where it is not strictly required until patches are available
bash
# Example: Review Keycloak client configurations for vulnerable patterns
# Search for clients using application.session.host placeholder

# If using Keycloak CLI (kcadm.sh), export client configurations for review:
./kcadm.sh get clients -r your-realm --fields 'clientId,attributes' | grep -i "backchannel.logout.url"

# Network-level mitigation: Restrict Keycloak server outbound connections
# Example iptables rules to block internal network access from Keycloak server
iptables -A OUTPUT -m owner --uid-owner keycloak -d 10.0.0.0/8 -j DROP
iptables -A OUTPUT -m owner --uid-owner keycloak -d 172.16.0.0/12 -j DROP
iptables -A OUTPUT -m owner --uid-owner keycloak -d 192.168.0.0/16 -j DROP
iptables -A OUTPUT -m owner --uid-owner keycloak -d 127.0.0.0/8 -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeSSRF

  • Vendor/TechKeycloak

  • SeverityLOW

  • CVSS Score3.1

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-918
  • Technical References
  • Red Hat CVE-2026-4874 Advisory

  • Red Hat Bug Report #2451611
  • Related CVEs
  • CVE-2026-1518: Keycloak CIBA SSRF Vulnerability

  • CVE-2026-1180: Keycloak SSRF Vulnerability

  • CVE-2026-37977: Keycloak CORS Information Disclosure Flaw

  • CVE-2026-4636: Keycloak Auth Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English