cve.bz

CVE-2021-28170 Expression Language Injection

5.3 mediumExploit referenceEPSS 2.1%Fix available

Medium (5.3). EPSS 2.1% estimated probability of exploitation activity in the next 30 days. Fixed in com.sun.el:el-ri 3.0.4.

On this page
In the Jakarta Expression Language implementation 3.0.3 and earlier, a bug in the ELParserTokenManager enables invalid EL expressions to be evaluated as if they were valid.

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
EPSS
2.1% (unchanged from 2.1% a week ago; 2.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 82nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-917 Improper Neutralization of Special Elements used in an Expression Language Statement (Expression Language Injection)
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-28170 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-28170?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-28170?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-28170 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
The Eclipse Foundation Jakarta Expression Language Implementationthrough 3.0.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-v6w3-2prq-h95fMavencom.sun.el:el-ri<3.0.43.0.4
GHSA-v6w3-2prq-h95fMavenorg.glassfish:jakarta.el<3.0.43.0.4
GHSA-v6w3-2prq-h95fMavenorg.glassfish:javax.el<=3.0.1-b12no fix published

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14jakarta-el-apino fix listedDEBIAN-CVE-2021-28170
Ubuntu22.04:LTS, 24.04:LTS, 25.10 and 2 morejakarta-el-apino fix listedUBUNTU-CVE-2021-28170
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-apache-commons-io0:2.10.0-1.redhat_00001.1.el6eapRHSA-2021:3466
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-hal-console0:3.2.16-1.Final_redhat_00001.1.el6eapRHSA-2021:3466
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-hibernate, eap7-hibernate-core, eap7-hibernate-java8 and 2 more0:5.3.20-4.SP2_redhat_00001.1.el6eapRHSA-2021:3466
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-ironjacamar, eap7-ironjacamar-jdbc, eap7-ironjacamar-core-api and 6 more0:1.4.35-1.Final_redhat_00001.1.el6eapRHSA-2021:3466
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-jakarta-el0:3.0.3-2.redhat_00006.1.el6eapRHSA-2021:3466
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-jberet, eap7-jberet-core0:1.3.9-1.Final_redhat_00001.1.el6eapRHSA-2021:3466
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-jboss-remoting0:5.0.23-2.SP1_redhat_00001.1.el6eapRHSA-2021:3466
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-jboss-server-migration, eap7-jboss-server-migration-cli, eap7-jboss-server-migration-core and 19 more0:1.7.2-9.Final_redhat_00010.1.el6eapRHSA-2021:3466
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-narayana, eap7-narayana-jbossxts, eap7-narayana-jts-idlj and 8 more0:5.9.12-1.Final_redhat_00001.1.el6eapRHSA-2021:3466
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-picketbox, eap7-picketbox-infinispan0:5.0.3-9.Final_redhat_00008.1.el6eapRHSA-2021:3466
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-undertow0:2.0.39-1.SP2_redhat_00001.1.el6eapRHSA-2021:3466
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-wildfly, eap7-wildfly-modules, eap7-wildfly-javadocs0:7.3.9-2.GA_redhat_00002.1.el6eapRHSA-2021:3466
56 more for Red Hat in the JSON and on Red Hat's page.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
EAP 7.3.9 releasejakarta.elFixed 2021-09-08RHSA-2021:3471
Red Hat build of Quarkus 2.2.5jakarta.elFixed 2022-02-21RHSA-2022:0589
Red Hat EAP-XP 2.0.0 via EAP 7.3.x basejakarta.elFixed 2021-09-13RHSA-2021:3516
Red Hat Fuse 7.10jakarta.elFixed 2021-12-14RHSA-2021:5134
Red Hat JBoss Enterprise Application Platformorg.glassfish/jakarta.el:3.0.3.redhat-00006Fixed 2021-09-23RHSA-2021:3660
Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7eap7-glassfish-el-0:3.0.1-4.b08_redhat_00005.1.ep7.el7Fixed 2025-06-25RHSA-2025:9582
Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7eap7-hibernate-0:5.1.17-3.Final_redhat_00004.1.ep7.el7Fixed 2025-06-25RHSA-2025:9582
Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7eap7-jackson-databind-0:2.8.11.6-3.SP1_redhat_00003.1.ep7.el7Fixed 2025-06-25RHSA-2025:9582
Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7eap7-jboss-ejb-client-0:4.0.12-1.Final_redhat_00002.1.ep7.el7Fixed 2025-06-25RHSA-2025:9582
Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7eap7-netty-0:4.1.63-2.Final_redhat_00003.1.ep7.el7Fixed 2025-06-25RHSA-2025:9582
Red Hat build of Quarkusjakarta.elAffected
Red Hat Decision Manager 7jakarta.elNot affected
Red Hat Enterprise Linux 9jakarta-elAffected
Red Hat Integration Camel K 1jakarta.elAffected
Red Hat Integration Camel Quarkus 1jakarta.elAffected
Red Hat Integration Service Registryjakarta.elNot affected
Red Hat JBoss Data Grid 7jakarta.elOut of support scope
Red Hat JBoss Enterprise Application Platform Expansion Packjakarta.elAffected
Red Hat OpenShift Application Runtimesjakarta.elAffected
Red Hat Process Automation 7jakarta.elNot affected
54 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-28170.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON