CVE-2021-28170: Improper Input Validation in Jakarta Expression Language
5.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.24185%
CWE
Published
10/6/2021
Updated
2/1/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
com.sun.el:el-ri | maven | < 3.0.4 | 3.0.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from improper handling of escape characters in EL expression parsing. The ELParserTokenManager
's bitmask logic and LITERAL_EXPRESSION
grammar rule failed to properly validate()
input when encountering escaped delimiters, allowing invalid expressions to be evaluated. The commit diff shows these components were explicitly modified in the patch, confirming their role in the vulnerability.