Skip to content
High 8.1

LightSAMLに認証を回避される脆弱性、署名されていない主張を通される

CVE-2026-63182 First seen on SecPulse

Summary

LightSAMLには、署名の検証範囲がずれることで、署名されていないSAMLアサーションの内容を正規のものとして扱ってしまう脆弱性があります。認証回避や権限昇格につながるおそれがあり、深刻度はCVSS 8.1のHighです。修正版は4.7.1および5.0.1で、利用中のバージョンが該当する場合はこの版に更新してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

LightSAMLには、署名の検証範囲がずれることで、署名されていないSAMLアサーションの内容を正規のものとして扱ってしまう脆弱性があります。認証回避や権限昇格につながるおそれがあり、深刻度はCVSS 8.1のHighです。修正版は4.7.1および5.0.1で、利用中のバージョンが該当する場合はこの版に更新してください。

Affected packages

PackageAffected → Fixed
litesamllightsaml —
composerlitesaml/lightsaml
< 4.7.1→ 4.7.1
Packagistlitesaml/lightsaml
≥ 4.0.0, < 4.7.1→ 4.7.1
Original description The description as published by the source.

Summary

LightSaml 5.0.0 (latest release; also confirmed on 4.6.1) validates an inbound samlp:Response by collecting its direct-child saml:Assertion elements and validating each one's ds:Signature via robrichards/xmlseclibs. The two layers disagree on which element a signature actually covers: LightSaml reads claims from the assertion node it collected, while xmlseclibs resolves the signed Reference URI="#id" with a document-wide //*[@Id] XPath that returns the first ID-bearing element anywhere in the document.

An attacker who has captured one genuine signed assertion can exploit this to surface attacker-authored, unsigned claims.

Details

Response::deserialize collects assertions with manyElementsFromXml, whose relative XPath saml:Assertion matches only direct children of the Response. Each collected assertion is validated independently by AssertionSignatureValidatorAction against the out-of-band trusted IdP credential (resolved by Issuer entityId, never from the document):

https://github.com/litesaml/lightsaml/blob/5.0.0/src/Model/Protocol/Response.php#L122
https://github.com/litesaml/lightsaml/blob/5.0.0/src/Model/AbstractSamlModel.php#L93
https://github.com/litesaml/lightsaml/blob/5.0.0/src/Action/Assertion/Inbound/AssertionSignatureValidatorAction.php#L28

The check delegates to xmlseclibs XMLSecurityDSig::validateReference(), which first removes the signature node being validated from the shared document (enveloped-signature removal):

`…

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details