CVE-2026-18089
Net::SAML2 versions before 0.86 for Perl allow SAML authentication bypass by verifying responses against the response-embedded certificate in verify_xml when no trust anchor is configured
Description
Net::SAML2 versions before 0.86 for Perl allow SAML authentication bypass by verifying responses against the response-embedded certificate in verify_xml when no trust anchor is configured. verify_xml in Net::SAML2::Role::VerifyXML runs "return if !$anchors && !$cacert;" as soon as the XML::Sig check succeeds, and that check uses the X.509 certificate taken from the response's own dsig:KeyInfo/dsig:X509Certificate element, so an unanchored response is checked only against the key it carries. Binding::POST declares cacert as an optional Maybe[Str] with no default, so a POST binding built without one takes that path, and _verify_encrypted_assertion returns early the same way with "return $xml unless $cacert;". Any caller that constructs Binding::POST or calls Assertion->new_from_xml without a cacert, cert_text, or anchors argument accepts a response signed by an attacker generated key whose self-signed certificate is embedded in that response, authenticating an arbitrary assertion.
INFO
Published Date :
Aug. 3, 2026, 2:16 p.m.
Last Modified :
Oct. 23, 2026, 9:10 p.m.
Remotely Exploit :
Yes !
Source :
9b29abf9-4ab0-4765-b253-1875cd9b441e
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | HIGH | 134c704f-9b21-4f2e-91b3-4a467353bcc0 |
Solution
- Update Net::SAML2 to version 0.86 or later.
- Configure trust anchors for SAML responses.
- Ensure cert_text or cacert is provided.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-18089.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-18089 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-18089
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-18089 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-18089 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Oct. 23, 2026
Action Type Old Value New Value Added Translation Title: Net::SAML2 de TIMLEGGE, Description: Las versiones de Net::SAML2 anteriores a la 0.86 para Perl permiten la omisión de autenticación SAML al verificar las respuestas contra el certificado incrustado en la respuesta en verify_xml cuando no se configura un ancla de confianza. verify_xml en Net::SAML2::Role::VerifyXML ejecuta ’return if !$anchors && !$cacert;’ tan pronto como la verificación de XML::Sig tiene éxito, y esa verificación utiliza el certificado X.509 tomado del propio elemento dsig:KeyInfo/dsig:X509Certificate de la respuesta, por lo que una respuesta sin ancla se verifica solo contra la clave que lleva. Binding::POST declara cacert como un Maybe[Str] opcional sin valor predeterminado, por lo que un enlace POST construido sin uno toma ese camino, y _verify_encrypted_assertion retorna temprano de la misma manera con ’return $xml unless $cacert;’. Cualquier llamador que construya Binding::POST o llame a Assertion -> new_from_xml sin un argumento cacert, cert_text o anchors acepta una respuesta firmada por una clave generada por un atacante cuyo certificado autofirmado está incrustado en esa respuesta, autenticando una aserción arbitraria. -
Initial Analysis by [email protected]
Aug. 06, 2026
Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:a:timlegge:net::saml2:*:*:*:*:*:perl:*:* versions up to (excluding) 0.86 Added Reference Type CPANSec: https://metacpan.org/release/TIMLEGGE/Net-SAML2-0.85/source/lib/Net/SAML2/Binding/POST.pm#L21 Types: Product Added Reference Type CPANSec: https://metacpan.org/release/TIMLEGGE/Net-SAML2-0.85/source/lib/Net/SAML2/Protocol/Assertion.pm#L84 Types: Product Added Reference Type CPANSec: https://metacpan.org/release/TIMLEGGE/Net-SAML2-0.85/source/lib/Net/SAML2/Role/VerifyXML.pm#L32 Types: Product Added Reference Type CPANSec: https://metacpan.org/release/TIMLEGGE/Net-SAML2-0.88/source/Changes Types: Release Notes -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Aug. 03, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N Added SSVC {'id': 'CVE-2026-18089', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'yes'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-08-03T19:56:09.872860Z'} -
New CVE Received by 9b29abf9-4ab0-4765-b253-1875cd9b441e
Aug. 03, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://github.com/perl-net-saml2/perl-Net-SAML2', 'vendor': 'TIMLEGGE', 'product': 'Net::SAML2', 'versions': [{'status': 'affected', 'version': '0', 'lessThan': '0.86', 'versionType': 'custom'}], 'packageName': 'Net-SAML2', 'programFiles': ['lib/Net/SAML2/Role/VerifyXML.pm', 'lib/Net/SAML2/Binding/POST.pm', 'lib/Net/SAML2/Protocol/Assertion.pm'], 'collectionURL': 'https://cpan.org/modules', 'defaultStatus': 'unaffected', 'programRoutines': [{'name': 'Net::SAML2::Role::VerifyXML::verify_xml'}, {'name': 'Net::SAML2::Binding::POST::handle_response'}, {'name': 'Net::SAML2::Protocol::Assertion::_verify_encrypted_assertion'}]}] Added Description Net::SAML2 versions before 0.86 for Perl allow SAML authentication bypass by verifying responses against the response-embedded certificate in verify_xml when no trust anchor is configured. verify_xml in Net::SAML2::Role::VerifyXML runs "return if !$anchors && !$cacert;" as soon as the XML::Sig check succeeds, and that check uses the X.509 certificate taken from the response's own dsig:KeyInfo/dsig:X509Certificate element, so an unanchored response is checked only against the key it carries. Binding::POST declares cacert as an optional Maybe[Str] with no default, so a POST binding built without one takes that path, and _verify_encrypted_assertion returns early the same way with "return $xml unless $cacert;". Any caller that constructs Binding::POST or calls Assertion->new_from_xml without a cacert, cert_text, or anchors argument accepts a response signed by an attacker generated key whose self-signed certificate is embedded in that response, authenticating an arbitrary assertion. Added CWE CWE-295 Added CWE CWE-347 Added Reference https://metacpan.org/release/TIMLEGGE/Net-SAML2-0.85/source/lib/Net/SAML2/Binding/POST.pm#L21 Added Reference https://metacpan.org/release/TIMLEGGE/Net-SAML2-0.85/source/lib/Net/SAML2/Protocol/Assertion.pm#L84 Added Reference https://metacpan.org/release/TIMLEGGE/Net-SAML2-0.85/source/lib/Net/SAML2/Role/VerifyXML.pm#L32 Added Reference https://metacpan.org/release/TIMLEGGE/Net-SAML2-0.88/source/Changes