Skip to main content
EPSS 0.2%top 90%

CVE-2026-18092: CWE-347 Improper Verification of Cryptographic Signature in TIMLEGGE Net::SAML2

0
High
Published: 08/03/2026 (08/03/2026, 13:24:52 UTC)
Source: CVE Database V5
Vendor/Project: TIMLEGGE
Product: Net::SAML2

Description

Net::SAML2 versions before 0.86 for Perl contain a vulnerability that allows SAML authentication bypass via XML signature wrapping. The issue arises because the new_from_xml function reads identity fields using document-wide XPath expressions rather than restricting to the signed subtree, enabling attackers to inject unsigned assertions that appear valid. This flaw allows an attacker with a valid IdP-signed assertion to authenticate as any arbitrary user.

CVSS v3.1

Score 8.1high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H

Affected software

TIMLEGGE

Net::SAML2

Affected versions
>=0 <0.86
GitHub Actionsmore threats →cve
Net-SAML2
pkg:github/Net-SAML2
Affected versions
>=0 <0.86

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/10/2026, 14:55:11 UTC

Technical Analysis

The vulnerability in Net::SAML2 (CVE-2026-18092) is due to improper verification of cryptographic signatures (CWE-347). The new_from_xml function reads identity attributes such as NameID and SessionIndex using document-wide XPath queries, which select the first matching element in document order rather than the element covered by the verified signature. Although handle_response confirms the presence of a signature and validates the certificate chain, XML::Sig verifies only the element referenced by the signature's URI. This allows an attacker to prepend an unsigned, attacker-controlled assertion earlier in the document, which is returned by the XPath queries despite not being signed. Consequently, callers passing untrusted Responses to new_from_xml may accept identity fields from unsigned assertions, enabling authentication bypass as arbitrary users.

Potential Impact

An attacker who possesses any valid IdP-signed assertion can craft a SAML Response containing an unsigned assertion with attacker-controlled identity fields placed earlier in document order. Because the signature verification only covers the signed assertion, the unsigned assertion is accepted by new_from_xml due to document-wide XPath queries. This results in authentication bypass, allowing the attacker to impersonate arbitrary users. The vulnerability impacts the integrity of SAML authentication and can lead to unauthorized access.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid passing untrusted SAML Responses to new_from_xml or implement additional validation to ensure identity fields are extracted only from the signed assertion subtree. Monitor vendor communications for an official fix or update.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
CPANSec
Date Reserved
2026-07-28T16:46:56.926Z
State
PUBLISHED

Threat ID: 6a7098b0bf32cb7a34a822a9

Added to database: 08/03/2026, 13:33:36 UTC

Last enriched: 08/10/2026, 14:55:11 UTC

Last updated: 09/17/2026, 22:01:33 UTC

Views: 35

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses