Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsTraining
StudyProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Training
Study
Projects
Newsletter
Hire Me
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

1451+ Articles
151+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. Security
  3. CVE-2026-41005: Cloud Foundry UAA SAML Signature Bypass
CVE-2026-41005: Cloud Foundry UAA SAML Signature Bypass
SECURITYHIGHCVE-2026-41005

CVE-2026-41005: Cloud Foundry UAA SAML Signature Bypass

A high-severity vulnerability (CVSS 9.0) in Cloud Foundry UAA allows attackers to bypass authentication by exploiting the incorrect treatment of XML...

Dylan H.

Security Team

June 12, 2026
5 min read

Affected Products

  • Cloud Foundry UAA (User Account and Authentication service)

Executive Summary

A high-severity authentication bypass vulnerability (CVE-2026-41005, CVSS 9.0) has been disclosed in Cloud Foundry UAA (User Account and Authentication), the identity and access management component of the Cloud Foundry platform. The flaw allows an attacker to forge SAML assertions that the UAA will accept as authentic, effectively bypassing authentication and potentially gaining unauthorized access to Cloud Foundry resources.

CVSS Score: 9.0 (High)

The root cause is an improper trust relationship: UAA incorrectly treats XML encryption (which guarantees confidentiality) as a substitute for XML signature verification (which guarantees authenticity) in two SAML flows — the OAuth 2.0 SAML2 bearer grant and browser SSO when wantAssertionSigned is set to false.


Vulnerability Overview

AttributeValue
CVE IDCVE-2026-41005
CVSS Score9.0 (High)
CWECWE-347: Improper Verification of Cryptographic Signature
Attack VectorNetwork
Affected ComponentCloud Foundry UAA
Affected FlowsOAuth 2.0 SAML2 bearer grant; Browser SSO (ACS)
Trigger ConditionwantAssertionSigned=false
Published2026-06-11

Affected Products

VendorProductVulnerable Condition
Cloud FoundryUAA (User Account & Authentication)wantAssertionSigned = false in SAML SP config

Vulnerability Details

SAML Encryption vs. Signature: A Critical Distinction

SAML assertions rely on two separate cryptographic mechanisms that serve distinct security purposes:

  • XML Encryption — encrypts the assertion content so only the intended recipient (Service Provider) can read it. This protects confidentiality.
  • XML Signature — cryptographically signs the assertion so the recipient can verify it was issued by the trusted Identity Provider. This protects authenticity and integrity.

These two controls are independent. An assertion can be encrypted but unsigned, in which case it is confidential but not authenticated — meaning any party that knows the Service Provider's encryption key could craft a valid-looking encrypted assertion without it having been issued by the IdP.

CVE-2026-41005 exploits this distinction. Cloud Foundry UAA incorrectly assumed that if an assertion was properly encrypted (only the SP could decrypt it), it must have come from the trusted IdP. This assumption is wrong — encryption only protects the contents in transit; it does not prove the identity of the sender.

Affected SAML Flows

Two specific flows are vulnerable when wantAssertionSigned=false:

1. OAuth 2.0 SAML2 Bearer Grant (Token Endpoint)

Attacker → UAA Token Endpoint (POST /oauth/token)
  Body: grant_type=urn:ietf:params:oauth:grant-type:saml2-bearer
        assertion=<crafted_encrypted_unsigned_saml_assertion>
 
UAA: Decrypts assertion successfully ✓
UAA: Checks signature → wantAssertionSigned=false, SKIPPED
UAA: Issues OAuth token for claimed identity ← Authentication Bypass

2. Browser SSO via ACS (Assertion Consumer Service)

Attacker → UAA ACS Endpoint (POST /saml/SSO/alias/...)
  Body: SAMLResponse=<crafted_encrypted_unsigned_saml_response>
 
UAA: Decrypts SAMLResponse successfully ✓
UAA: Signature check skipped (wantAssertionSigned=false)
UAA: Establishes session for attacker-specified identity ← Authentication Bypass

Attack Requirements

To exploit this vulnerability, an attacker needs:

  1. The Service Provider's encryption certificate/public key — used to encrypt the forged assertion. This may be obtainable from the SP metadata endpoint (often publicly exposed at /saml/metadata).
  2. Network access to the UAA SAML endpoints.
  3. The target UAA must be configured with wantAssertionSigned=false for the target SAML Identity Provider.

Impact

A successful exploit allows an attacker to:

  • Impersonate any user in the Cloud Foundry environment, including administrators
  • Obtain valid OAuth tokens for arbitrary user identities
  • Establish authenticated browser sessions as any user
  • Access Cloud Foundry resources — apps, spaces, orgs — with the privileges of the impersonated user

Deployment Context and Risk

ConfigurationRisk LevelNotes
wantAssertionSigned=false + SP metadata publicly exposedCriticalAttacker can obtain SP cert from metadata and forge assertions immediately
wantAssertionSigned=false + SP metadata restrictedHighAttacker with metadata access or cert knowledge can exploit
wantAssertionSigned=trueNot vulnerableSignature verification enforced; this CVE does not apply

Recommended Mitigations

1. Enable Signature Verification (Primary Fix)

Set wantAssertionSigned=true in your UAA SAML Service Provider configuration:

# UAA configuration (uaa.yml or bosh manifest)
login:
  saml:
    wantAssertionSigned: true   # CRITICAL: ensure this is true

This ensures UAA validates the XML signature on every SAML assertion, regardless of encryption status.

2. Rotate SP Encryption Keys

If the SP metadata endpoint was publicly accessible, assume the encryption certificate is known to potential attackers. Rotate the SAML SP encryption key pair:

# UAA SAML key rotation (Cloud Foundry BOSH)
# Update the saml.serviceProviderKey and saml.serviceProviderKeyPassword
# in the UAA BOSH deployment manifest, then redeploy

3. Restrict SAML Endpoint Access

Limit network access to the UAA SAML ACS and token endpoints to trusted networks where possible.

4. Audit SAML-Based Authentications

Review UAA audit logs for suspicious SAML authentication events, especially:

  • Authentications for high-privilege accounts (admins, operators)
  • Authentications from unexpected source IPs
  • Token grants using the SAML2 bearer flow
# Cloud Foundry UAA audit log (example query)
cf curl /v2/events?q=type:audit.user.authenticate | grep saml

5. Apply Vendor Patch

Apply the official Cloud Foundry UAA patch when released. Monitor:

  • Cloud Foundry Security Advisories
  • UAA GitHub Repository

Post-Remediation Checklist

  1. Verify wantAssertionSigned=true is set and UAA has been redeployed
  2. Rotate SAML SP encryption certificate if SP metadata was publicly accessible
  3. Audit recent SAML authentication events for anomalous activity
  4. Review OAuth tokens issued via the SAML2 bearer grant flow and revoke suspicious tokens
  5. Test SAML login flows after configuration change to confirm legitimate auth still works
  6. Monitor UAA logs for continued anomalous SAML assertions post-remediation

References

  • CVE-2026-41005 — NVD
  • Cloud Foundry Security Advisories
  • CWE-347: Improper Verification of Cryptographic Signature — MITRE
  • SAML Security Cheat Sheet — OWASP

Related Reading

  • CVE-2026-41005 — Cloud Foundry UAA SAML Bypass
  • CVE-2026-21994: Oracle Edge Cloud RCE
  • CVE-2026-20182: Cisco SD-WAN Auth Bypass
#CVE#SAML#Authentication Bypass#Cloud Security#Cloud Foundry#NVD#CWE-347

Related Articles

CVE-2026-42193: Plunk Email Platform SNS Webhook Forgery

A critical unauthenticated vulnerability in Plunk, the open-source AWS SES email platform, allows attackers to forge Amazon SNS webhook payloads without...

5 min read

CVE-2026-33109: Azure Managed Instance for Apache Cassandra

A critical improper access control flaw in Azure Managed Instance for Apache Cassandra allows an authorized network attacker to execute arbitrary code,...

5 min read

CVE-2026-21515: Azure IoT Central Elevation of Privilege

A critical CVSS 9.9 elevation of privilege vulnerability in Azure IoT Central allows an authenticated attacker to escalate privileges over a network by...

6 min read
Back to all Security Alerts