Improper Input Validation Affecting org.glassfish:jakarta.el package, versions [0,3.0.4)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
2.13% (80th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGGLASSFISH-1297098
  • published27 May 2021
  • disclosed27 May 2021
  • credit@pwntester (Alvaro Muñoz)

Introduced: 27 May 2021

CVE-2021-28170  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade org.glassfish:jakarta.el to version 3.0.4 or higher.

Overview

Affected versions of this package are vulnerable to Improper Input Validation. A bug in the ELParserTokenManager enables invalid EL expressions to be evaluated as if they were valid.

The bug seems to be in the parser’s grammar - $ or # followed by a character that is not {, $ or # will be treated as a literal expression. The pertinent case is when the character following the $ or # chars is a backslash. The parser will then consume the backslash as part of the literal expression and will leave the character that follows it unescaped.

Note: org.glassfish:javax.el is deprecated, users can move to use org.glassfish:jakarta.el instead where this issue is first fixed in version 3.0.4.

CVSS Base Scores

version 3.1