CVE-2026-18089

TIMLEGGE · Net::SAML2

Net::SAML2 fails to properly validate cryptographic signatures and certificates, which may allow for the bypass of security assertions.

Executive summary

A critical signature and certificate validation flaw in the Net::SAML2 library exposes applications to authentication bypass risks due to improper trust anchor verification.

Vulnerability

This issue involves CWE-347 and CWE-295, where the library fails to enforce the use of required trust anchors during signature verification. An unauthenticated attacker can exploit this to submit malicious assertions that appear valid because the system does not properly validate the signer's identity or the assertion structure.

Business impact

The inability to properly verify SAML assertions undermines the entire authentication mechanism of affected applications. A successful exploit could allow an attacker to impersonate legitimate users or gain unauthorized administrative access, resulting in a total compromise of the affected identity provider or service provider integration. The CVSS score of 7.5 reflects the high impact on system integrity.

Remediation

Immediate Action: Update the Net::SAML2 library to version 0.86 or later, which enforces the requirement of a trust anchor (cacert or cert_text) before verifying signatures.

Proactive Monitoring: Monitor authentication logs for anomalous patterns, such as successful logins without valid corresponding certificates or irregular assertion attributes.

Compensating Controls: Implement strict firewall rules to limit the exposure of SAML endpoints and ensure that all incoming assertions are processed through a secondary validation layer if possible.

Exploitation status

Public Exploit Available: Unknown

Analyst recommendation

Given that this vulnerability directly impacts authentication security, immediate action is required. Organizations using Net::SAML2 must update to the latest version to enforce mandatory certificate validation and prevent unauthorized identity spoofing.