{"id":"CVE-2026-18089","aliases":["CVE-2026-18089"],"related":[],"kind":"vulnerability","state":"published","title":"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","summary":"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.\n\nverify_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;\".\n\nAny 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.\n\nverify_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;\".\n\nAny 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.","source":"cvelist"},{"lang":"es","text":"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.\n\nverify_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;’.\n\nCualquier 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.","source":"nvd"}],"published":"2026-08-03T12:42:08.879Z","modified":"2026-10-23T21:10:00.157Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-295","CWE-347"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"0.86","status":"affected"}],"vendor":"TIMLEGGE","product":"Net::SAML2","package":"Net-SAML2","repo":"https://github.com/perl-net-saml2/perl-Net-SAML2","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"0.86"}],"vendor":"timlegge","product":"net::saml2","cpe":"cpe:2.3:a:timlegge:net\\:\\:saml2:*:*:*:*:*:perl:*:*","source":"nvd"}],"references":[{"url":"https://metacpan.org/release/TIMLEGGE/Net-SAML2-0.88/source/Changes","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/TIMLEGGE/Net-SAML2-0.85/source/lib/Net/SAML2/Role/VerifyXML.pm#L32","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/TIMLEGGE/Net-SAML2-0.85/source/lib/Net/SAML2/Binding/POST.pm#L21","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/TIMLEGGE/Net-SAML2-0.85/source/lib/Net/SAML2/Protocol/Assertion.pm#L84","tags":["product"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"CPANSec","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-08-03T19:56:09.872Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-18089","url":"https://www.cve.org/CVERecord?id=CVE-2026-18089","licence":"CVE Terms of Use","modified":"2026-08-03T19:56:33.033Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-18089","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-18089","licence":"Public domain","modified":"2026-10-23T21:10:00.157Z"}],"updatedAt":"2026-11-25T22:59:30.861Z","epss":{"score":0.00188,"percentile":0.08824,"date":"2026-12-01T12:00:22.000Z"}}