Miggo Logo

CVE-2021-40690: Exposure of Sensitive Information to an Unauthorized Actor in Apache Santuario

7.5

CVSS Score
3.1

Basic Information

EPSS Score
0.55769%
Published
9/20/2021
Updated
8/18/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.apache.santuario:xmlsecmaven>= 2.2.0, < 2.2.32.2.3
org.apache.santuario:xmlsecmaven< 2.1.72.1.7

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from improper propagation of the secureValidation flag during KeyInfo creation from KeyInfoReference elements. The KeyInfoReferenceResolver's engineLookup() method is the entry point that fails to pass this critical security parameter. The KeyInfo constructor's validation() logic becomes bypassed when instantiated without this flag, particularly affecting RetrievalMethod handling with XPath Transforms. These functions would appear in stack traces when processing malicious KeyInfoReference elements with XPath-based RetrievalMethods.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

*ll v*rsions o* *p**** S*ntu*rio - XML S**urity *or J*v* prior to *.*.* *n* *.*.* *r* vuln*r**l* to *n issu* w**r* t** "s**ur*V*li**tion" prop*rty is not p*ss** *orr**tly w**n *r**tin* * K*yIn*o *rom * K*yIn*oR***r*n** *l*m*nt. T*is *llows *n *tt**k*

Reasoning

T** vuln*r**ility st*ms *rom improp*r prop***tion o* t** `s**ur*V*li**tion` *l** *urin* `K*yIn*o` *r**tion *rom `K*yIn*oR***r*n**` *l*m*nts. T** `K*yIn*oR***r*n**R*solv*r`'s `*n*in*Lookup()` m*t*o* is t** *ntry point t**t **ils to p*ss t*is *riti**l