{"id":"GHSA-29wv-cv7p-xjc2","summary":"GlassFish's gadget handler is vulnerable to RCE","details":"A critical Remote Code Execution (RCE) vulnerability was identified in the server-side template rendering mechanism used by the Glassfish gadget handler. The application processes .xml files and evaluates user-supplied values within a context where Expression Language (EL) “expressions” are processed without proper sanitization or escaping. By injecting expressions such as #{7*7}, the server returns 49, confirming server-side EL evaluation. This issue allows a remote attacker to fully compromise the underlying host, enabling capabilities as reading/modifying data, executing arbitrary commands, persistence, and lateral movement.","aliases":["CVE-2026-2587"],"modified":"2026-09-10T03:50:45.327078967Z","published":"2026-05-19T15:31:35Z","database_specific":{"cwe_ids":["CWE-917"],"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2026-06-04T19:21:21Z","nvd_published_at":"2026-05-19T15:16:28Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-2587"},{"type":"PACKAGE","url":"https://github.com/eclipse-ee4j/glassfish"},{"type":"WEB","url":"https://github.com/eclipse-ee4j/glassfish/releases/tag/8.0.2"},{"type":"WEB","url":"https://gitlab.eclipse.org/security/cve-assignment/-/issues/86"}],"affected":[{"package":{"name":"org.glassfish.main.admingui:admingui","ecosystem":"Maven","purl":"pkg:maven/org.glassfish.main.admingui/admingui"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.0.2"}]}],"versions":["3.1.2","3.1.2.2","4.0","4.0-b33","4.0-b72","4.0-b90","4.1","4.1.1","4.1.2","5.0","5.0.1","5.1.0","5.1.0-RC1","5.1.0-RC2","6.0.0","6.0.0-M1","6.0.0-RC1","6.0.0-RC2","6.0.0-RC3","6.0.0-RC4","6.1.0","6.2.0","6.2.1","6.2.2","6.2.3","6.2.4","6.2.5","7.0.0","7.0.0-M1","7.0.0-M10","7.0.0-M2","7.0.0-M3","7.0.0-M4","7.0.1","7.0.10","7.0.11","7.0.12","7.0.13","7.0.14","7.0.15","7.0.16","7.0.17","7.0.18","7.0.19","7.0.2","7.0.20","7.0.21","7.0.22","7.0.23","7.0.24","7.0.25","7.0.26","7.0.3","7.0.4","7.0.5","7.0.6","7.0.7","7.0.8","7.0.9","7.1.0","7.1.0-M1","7.1.1","8.0.0","8.0.0-DONTPUBLISH","8.0.0-JDK17-M10","8.0.0-JDK17-M12","8.0.0-JDK17-M5","8.0.0-JDK17-M6","8.0.0-JDK17-M7","8.0.0-JDK17-M9","8.0.0-M1","8.0.0-M10","8.0.0-M11","8.0.0-M12","8.0.0-M13","8.0.0-M14","8.0.0-M15","8.0.0-M2","8.0.0-M3","8.0.0-M5","8.0.0-M6","8.0.0-M7","8.0.0-M8","8.0.0-M9","8.0.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-29wv-cv7p-xjc2/GHSA-29wv-cv7p-xjc2.json"}},{"package":{"name":"org.glassfish.jsftemplating:jsftemplating","ecosystem":"Maven","purl":"pkg:maven/org.glassfish.jsftemplating/jsftemplating"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.2.0"}]}],"versions":["1.2.0-1","1.2.1","1.2.2","1.2.3","3.0.0","4.0.0","4.0.1","4.0.2","4.0.3","4.0.4","4.0.5","4.1.0","4.1.0-M1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-29wv-cv7p-xjc2/GHSA-29wv-cv7p-xjc2.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"}]}