Miggo Logo

CVE-2022-23463: Nepxion Discovery vulnerable to SpEL Injection leading to Remote Code Execution

9.4

CVSS Score
3.1

Basic Information

EPSS Score
0.86298%
Published
9/25/2022
Updated
1/27/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:H/A:L
Package NameEcosystemVulnerable VersionsFirst Patched Version
com.nepxion:discoverymaven<= 6.16.2

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The primary vulnerability stems from DiscoveryExpressionResolver.eval using StandardEvaluationContext with user-controlled SpEL expressions. This allows attackers to execute arbitrary code via expressions like T(java.lang.Runtime).getRuntime().exec(). StrategyResourceImpl.validateExpression is the entry point that propagates untrusted input to the vulnerable eval method. Both functions are explicitly referenced in the GHSL-2022-033 advisory and code snippets showing the injection flow.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

N*pxion *is*ov*ry is * solution *or Sprin* *lou*. *is*ov*ry is vuln*r**l* to Sp*L Inj**tion in *is*ov*ry-*ommons. *is*ov*ry*xpr*ssionR*solv*r’s *v*l m*t*o* is *v*lu*tin* *xpr*ssion wit* * St*n**r**v*lu*tion*ont*xt, *llowin* t** *xpr*ssion to r**** *n

Reasoning

T** prim*ry vuln*r**ility st*ms *rom `*is*ov*ry*xpr*ssionR*solv*r.*v*l` usin* `St*n**r**v*lu*tion*ont*xt` wit* us*r-*ontroll** Sp*L *xpr*ssions. T*is *llows *tt**k*rs to *x**ut* *r*itr*ry *o** vi* *xpr*ssions lik* `T(j*v*.l*n*.Runtim*).**tRuntim*().*