CVE-2025-31335 Security feature bypass in OpenSAML C++ library

Medium 4.0 Published Updated

Attackers can forge signed SAML messages in OpenSAML C++ library when using non-XML signature bindings, bypassing authentication integrity checks.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-31335?

CVE-2025-31335 is a medium-severity vulnerability in Shibboleth OpenSAML C++ library, published on 28 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The OpenSAML C++ library before 3.3.1 allows forging of signed SAML messages via parameter manipulation (when using SAML bindings that rely on non-XML signatures).

Weakness: CWE-347

Which versions are affected by CVE-2025-31335?

Linux distribution packages (5)
opensaml SUSE:Linux Enterprise Module for Server Applications 15 SP6All versions3.1.0-150300.3.3.1
opensaml SUSE:Linux Enterprise Module for Server Applications 15 SP7All versions3.1.0-150300.3.3.1
opensaml SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5All versions2.5.5-3.6.1
opensaml openSUSE:Leap 15.6All versions3.1.0-150300.3.3.1
opensaml openSUSE:TumbleweedAll versions3.3.1-2.1

How do I fix CVE-2025-31335?

Upgrade to a fixed version.

Is CVE-2025-31335 being exploited?

There is no known exploitation of CVE-2025-31335 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2025-31335, DLA-4093-1, DSA-5879-1, GHSA-8f4c-9gmv-rfm8, SUSE-SU-2025:01500-1, SUSE-SU-2025:1500-1 and 3 more.

Is CVE-2025-31335 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free