{"id":"CVE-2026-18089","published":"2026-08-03T12:42:08Z","modified":"2026-08-03T19:56:33Z","title":"Net::SAML2 versions before 0.86 for Perl allow SAML authentication bypass by verifying responses against the…","vendor":"TIMLEGGE","product":"Net::SAML2","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00234,"percentile":0.08657,"provenance":"source"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"},{"id":"CWE-295","name":"Improper Certificate Validation"}],"references":[{"url":"https://metacpan.org/release/TIMLEGGE/Net-SAML2-0.88/source/Changes","tags":["release-notes"]},{"url":"https://metacpan.org/release/TIMLEGGE/Net-SAML2-0.85/source/lib/Net/SAML2/Role/VerifyXML.pm#L32","tags":[]},{"url":"https://metacpan.org/release/TIMLEGGE/Net-SAML2-0.85/source/lib/Net/SAML2/Binding/POST.pm#L21","tags":[]},{"url":"https://metacpan.org/release/TIMLEGGE/Net-SAML2-0.85/source/lib/Net/SAML2/Protocol/Assertion.pm#L84","tags":[]}],"priority":{"score":7.0,"factors":[{"name":"EPSS percentile","points":1.73},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"timlegge","affectedVersions":[{"vendor":"TIMLEGGE","product":"Net::SAML2","versions":["< 0.86"]}],"solutions":{"items":["Upgrade to Net::SAML2 0.86 or later, which requires a cacert or cert_text trust anchor before a response or assertion signature is verified."],"from":"CVE.org CNA","provenance":"source"},"workarounds":{"items":["For deployments that cannot upgrade, construct Net::SAML2::Binding::POST, and call Net::SAML2::Protocol::Assertion->new_from_xml, with a cacert, cert_text, or anchors argument identifying the IdP signing certificate."],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-115","name":"Authentication Bypass"}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-08-03T19:56:09.872860Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-52266","exploited":false,"provenance":"source"}}