Skip to content
CVE-2026-63182

lightSAML Signature Wrapping Authentication Bypass (CVE-2026-63182)

Initial Access Credential Access Last updated:

Detects exploitation attempts and vulnerable deployments of the lightSAML PHP SAML library (litesaml/lightsaml) affected by CVE-2026-63182, a signature wrapping (XML Signature Wrapping / XSW) vulnerability. The flaw (CWE-347, Improper Verification of Cryptographic Signature) lets an attacker wrap a validly-signed SAML assertion around a forged, attacker-controlled assertion so that lightSAML validates the signature on the legitimate element while consuming the attacker's unsigned assertion. This yields full SAML SSO authentication bypass / identity impersonation. Affected: >=5.0.0,<5.0.1 and >=4.0.0,<4.7.1; fixed in 4.7.1 and 5.0.1. Detection focuses on anomalous SAML Response structure (multiple Assertion/Signature elements, mismatched signed vs consumed assertion IDs), high-privilege logons immediately following SAML SSO, and inventory of vulnerable library versions.

Based on GHSA-w553-pwx6-3mg9, lightSAML Signature wrapping bypass

Vulnerability Intelligence

Public PoC

What is CVE-2026-63182 lightSAML Signature Wrapping Authentication Bypass (CVE-2026-63182)?

lightSAML Signature Wrapping Authentication Bypass (CVE-2026-63182) (CVE-2026-63182) maps to the Initial Access and Credential Access tactics — the adversary is trying to get into your network in MITRE ATT&CK.

This page provides production-ready detection logic for lightSAML Signature Wrapping Authentication Bypass (CVE-2026-63182), covering the data sources and telemetry it touches: IIS W3C Logs, Web Server Logs. The queries below are rated high severity at medium confidence, and ship for 7 SIEM platforms — KQL, SPL, Elastic, QRadar, Sumo, YARA-L, LogScale.

MITRE ATT&CK

Tactic
Initial Access Credential Access
Microsoft Sentinel / Defender
kusto
// df00tech DF00-1a15482112 · https://df00tech.com/detections/CVE-2026-63182 · licence: https://df00tech.com/detections/licence
// Detect anomalous SAML Response structures indicative of XML Signature Wrapping (XSW) against lightSAML
let SamlLogs = W3CIISLog
| where csUriStem has_any ("/saml", "/acs", "/sso", "/consume", "/lightsaml")
| where csMethod == "POST";
SamlLogs
| extend RawBody = tostring(column_ifexists("csReferer", "")), Client = cIP
| where csUriQuery has "SAMLResponse" or csUriStem has "acs"
| summarize Requests = count(), PathsHit = make_set(csUriStem), UAs = make_set(csUserAgent) by cIP, bin(TimeGenerated, 5m)
| where Requests >= 3
| project TimeGenerated, SourceIP = cIP, Requests, PathsHit, UAs
| order by Requests desc

Flags bursts of POSTs to SAML assertion consumer service (ACS) endpoints carrying SAMLResponse payloads, a precursor to iterative XSW probing. Pair with application logs that parse SAMLResponse to confirm multiple Assertion/Signature elements.

high severity medium confidence

Data Sources

IIS W3C Logs Web Server Logs

Required Tables

W3CIISLog

False Positives

  • Legitimate SSO bursts from shared NAT/proxy egress IPs during peak login times
  • SAML integration testing or SSO health-check monitors hitting the ACS endpoint repeatedly
  • Load balancer or WAF health probes against /sso or /acs paths

Query fingerprint DF00-1a15482112 · licence

Sigma logsource & community rules

The detection logic for lightSAML Signature Wrapping Authentication Bypass (CVE-2026-63182) (CVE-2026-63182) above is provided in a vendor-neutral form so you can deploy it on any SIEM. The same logic is shipped here as native KQL (Microsoft Sentinel / Defender), SPL (Splunk), Elastic (Elastic Security (EQL)), QRadar (IBM QRadar (AQL)), Sumo (Sumo Logic CSE), YARA-L (Google Chronicle / SecOps), LogScale (CrowdStrike LogScale (CQL)) queries. In Sigma terms, this detection targets the following logsource:

logsource:
  product: windows

Browse the community-maintained Sigma rules for this technique:


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.

  1. Test 1 Enumerate installed lightSAML version (vulnerable inventory)

    Expected signal: Process execution of composer/grep reading composer.lock; file read access to the project directory.

  2. Test 2 Simulate XSW SAMLResponse with duplicate Assertion

    Expected signal: POST to /acs with a SAMLResponse parameter whose decoded body contains two <saml:Assertion> elements.

  3. Test 3 Simulate unsigned-assertion wrapping attempt

    Expected signal: POST to /acs with a decoded SAMLResponse containing a Signature not bound to the Assertion element.


Response Playbook

Triage

  1. Identify the application using lightSAML and determine its installed version via `composer show litesaml/lightsaml` or inspecting composer.lock; confirm whether it is >=5.0.0,<5.0.1 or >=4.0.0,<4.7.1 (vulnerable).
  2. Retrieve the raw SAMLResponse from application/web logs for the flagged request, base64-decode it, and inspect for multiple <saml:Assertion> or <ds:Signature> elements, or an Assertion whose ID differs from the signed element's Reference URI.
  3. Determine which identity the application granted the session to and compare it against the subject of the cryptographically-signed assertion element; a mismatch confirms a successful wrapping bypass.
  4. Review subsequent authenticated actions for the impersonated identity, focusing on privileged or administrative operations.

Containment

  1. Immediately upgrade lightSAML to 4.7.1 or 5.0.1 (or later) which enforce that the signed element is the one consumed.
  2. Invalidate all active SSO sessions for the affected application and force re-authentication; revoke any tokens/cookies issued since the earliest suspicious SAMLResponse.
  3. If upgrade cannot be applied immediately, place the SP behind a WAF/reverse-proxy rule that rejects SAMLResponses containing more than one Assertion or Signature element and temporarily restrict ACS access to the IdP source range.

Evidence Collection

  1. Preserve the full raw (base64 and decoded) SAMLResponse payloads, web server access logs, and application SAML processing logs for the affected time window.
  2. Capture the composer.lock / installed lightSAML version and the SP's SAML configuration (expected signing certificate, ACS URL, clock settings) for the investigation record.
  3. Export authentication and authorization audit logs showing the sessions and actions tied to the granted (impersonated) identity.

Escalation Criteria

  • ! Escalate to incident response if a signed-vs-consumed assertion mismatch is confirmed, indicating a successful authentication bypass and identity impersonation.
  • ! Escalate to the application/business owner if the impersonated identity performed privileged, financial, or data-exfiltration actions.
  • ! Escalate for broader hunt if multiple source IPs or multiple SP applications sharing the lightSAML dependency show the same anomalous SAMLResponse structures.

Investigation Guide

Forensic Artifacts

  • > Raw base64 SAMLResponse payloads in web/application logs containing multiple Assertion or Signature elements
  • > Mismatch between the ID referenced by the ds:Signature Reference URI and the Assertion ID actually consumed by the SP
  • > Application session store entries binding a session to an identity not present in the signed assertion
  • > lightSAML version string in composer.lock indicating an affected release

Tuning Guidance

Baseline the normal number of Assertion and Signature elements for each federated IdP, some vendors legitimately sign both the Response and the Assertion (two Signatures) or wrap an EncryptedAssertion. Allowlist known IdP egress IPs and SSO monitoring agents to reduce volume-based false positives, and prioritize alerts where the signed element ID does not match the consumed assertion ID, which is the definitive XSW indicator.


Hunting Queries

Hunt for SAMLResponse payloads with anomalous Assertion/Signature element counts and high-volume ACS POST bursts across the environment.

Hunting — KQL
kql
// df00tech DF00-1a15482112 · https://df00tech.com/detections/CVE-2026-63182 · licence: https://df00tech.com/detections/licence
W3CIISLog | where csUriStem has_any ("/acs","/saml","/sso","/consume") and csMethod == "POST" | where csUriQuery has "SAMLResponse" or csUriStem has "acs" | summarize count() by cIP, bin(TimeGenerated, 1h) | where count_ > 10
Hunting — SPL
spl
``` df00tech DF00-1a15482112 · https://df00tech.com/detections/CVE-2026-63182 · licence: https://df00tech.com/detections/licence ```
index=web (uri_path="*/acs*" OR uri_path="*/saml*") method=POST | rex field=form_data "SAMLResponse=(?<b>[^&]+)" | eval x=base64decode(urldecode(b)) | eval ac=mvcount(split(x,"<saml:Assertion"))-1, sc=mvcount(split(x,"<ds:Signature"))-1 | where ac>1 OR sc>1 | table _time src_ip ac sc

Atomic Red Team Tests

Test 1 Enumerate installed lightSAML version (vulnerable inventory)
linux

Checks whether the lightSAML library present on a host is within the CVE-2026-63182 affected ranges.

Command

bash
composer show litesaml/lightsaml 2>/dev/null | grep -i versions; grep -A2 'litesaml/lightsaml' composer.lock 2>/dev/null | grep version

Cleanup

bash
echo 'no cleanup required (read-only inventory)'

Expected Telemetry

Process execution of composer/grep reading composer.lock; file read access to the project directory.

Expected Detection

Not a detection event itself; feeds vulnerable-version inventory used to scope the detection.

Test 2 Simulate XSW SAMLResponse with duplicate Assertion
linux

Posts a crafted SAMLResponse containing two Assertion elements (one signed wrapper, one unsigned forged) to the ACS endpoint in a lab to trigger structural detection.

Command

bash
B64=$(printf '<samlp:Response><saml:Assertion ID="signed"><ds:Signature/></saml:Assertion><saml:Assertion ID="forged"><saml:Subject>[email protected]</saml:Subject></saml:Assertion></samlp:Response>' | base64 -w0); curl -sk -X POST "https://sp.lab.test/acs" --data-urlencode "SAMLResponse=${B64}"

Cleanup

bash
echo 'no cleanup required (no persistent state created on attacker host)'

Expected Telemetry

POST to /acs with a SAMLResponse parameter whose decoded body contains two <saml:Assertion> elements.

Expected Detection

SPL/Chronicle/CQL rules flag assertion_count > 1 in the decoded SAMLResponse.

Test 3 Simulate unsigned-assertion wrapping attempt
linux

Posts a SAMLResponse where the single Assertion has no corresponding Signature, simulating a wrapping payload that relies on a signature elsewhere in the document.

Command

bash
B64=$(printf '<samlp:Response><ds:Signature>wrapper</ds:Signature><saml:Assertion ID="forged"><saml:Subject>[email protected]</saml:Subject></saml:Assertion></samlp:Response>' | base64 -w0); curl -sk -X POST "https://sp.lab.test/acs" --data-urlencode "SAMLResponse=${B64}"

Cleanup

bash
echo 'no cleanup required'

Expected Telemetry

POST to /acs with a decoded SAMLResponse containing a Signature not bound to the Assertion element.

Expected Detection

SPL rule flags assertion_count >= 1 with signature_count == 0 on the Assertion, matching the wrapping heuristic.

Related Detections

Blog posts about this detection

Browse by tactic

Full ATT&CK matrix Search all detections