Miggo Logo

CVE-2023-26479: xwiki vulnerable to Improper Handling of Exceptional Conditions

6.5

CVSS Score
3.1

Basic Information

EPSS Score
0.34917%
Published
3/3/2023
Updated
3/3/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.xwiki.platform:xwiki-platform-rendering-parsermaven>= 6.0, < 13.10.1013.10.10
org.xwiki.platform:xwiki-platform-rendering-parsermaven>= 14.0, < 14.4.614.4.6
org.xwiki.platform:xwiki-platform-rendering-parsermaven>= 14.5, < 14.9-rc-114.9-rc-1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from the parser's inability to handle StackOverflowErrors caused by deeply nested structures. The key evidence is in the commit diff showing the addition of a try-catch block in DefaultContentParser.java to wrap parser.parse() calls and convert StackOverflowError/Exceptions into ParseExceptions. Prior to this fix, the method lacked error handling for these conditions, making it the root cause of unhandled exceptional states. The test cases added in DefaultContentParserTest.java also explicitly verify proper handling of StackOverflowErrors during parsing, confirming this was the vulnerable entry point.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Imp**t Us*rs wit* writ* ri**ts **n ins*rt w*ll-*orm** *ont*nt t**t is not **n*l** w*ll *y t** p*rs*r. *or inst*n**, wit* `xwiki/*.*`, ins*rtin* * ***ply n*st** *roup *lo*ks (`((( ((( ((( ((( .... ))) ))) ))) )))` (s** t** **n*r*tor **low to pro*u

Reasoning

T** vuln*r**ility st*ms *rom t** p*rs*r's in**ility to **n*l* St**kOv*r*low*rrors **us** *y ***ply n*st** stru*tur*s. T** k*y *vi**n** is in t** *ommit *i** s*owin* t** ***ition o* * try-**t** *lo*k in ****ult*ont*ntP*rs*r.j*v* to wr*p p*rs*r.p*rs*()