Miggo Logo

CVE-2022-30126: Regular expression denial of service in apache tika

5.5

CVSS Score
3.1

Basic Information

EPSS Score
0.82084%
Published
5/17/2022
Updated
8/24/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.apache.tika:tikamaven>= 2.0.0, < 2.4.02.4.0
org.apache.tika:tikamaven>= 1.17, < 1.28.21.28.2

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from an inefficient regex pattern in StandardsText.java. The commit diff shows the regex was modified to add bounds (e.g., {1,10} and {0,10}) to quantifiers, directly addressing the ReDoS risk. The CVE description explicitly identifies this regex as the root cause, and the patch confirms the vulnerability was in this pattern definition. The StandardsExtractingContentHandler uses this regex, making it the entry point for exploitation.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

In *p**** Tik*, * r**ul*r *xpr*ssion in our St*n**r*sT*xt *l*ss, us** *y t** St*n**r*s*xtr**tin**ont*nt**n*l*r *oul* l*** to * **ni*l o* s*rvi** **us** *y ***ktr**kin* on * sp**i*lly *r**t** *il*. T*is only *****ts us*rs w*o *r* runnin* t** St*n**r*s

Reasoning

T** vuln*r**ility st*ms *rom *n in***i*i*nt r***x p*tt*rn in St*n**r*sT*xt.j*v*. T** *ommit *i** s*ows t** r***x w*s mo*i*i** to *** *oun*s (*.*., {*,**} *n* {*,**}) to qu*nti*i*rs, *ir**tly ***r*ssin* t** R**oS risk. T** *V* **s*ription *xpli*itly i