Confluence text-inline template to unsandboxed OGNL evaluation
An unauthenticated Velocity template interpolated the label parameter into a quoted getText expression passed to the value stack. Unicode quote escapes broke out of that expression, and an OGNL tool reachable through the Velocity request context provided a second evaluation path outside Struts package restrictions.
- Product
- Confluence Data Center and Server
- Vendor
- Atlassian
- Affected
- Confluence Data Center and Server 8.0.0 through 8.5.3
- Fixed in
- 8.5.4 LTS, 8.6.0, 8.7.1, or later supported releases
- Weakness
- CWE-74
- CVSS vector
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- Published
- 16 Jan 2024
Classified as
References
Related CVEs
- CVE-2021-26084critical 9.82021
Confluence Webwork Unicode-escape OGNL injection
Several Velocity templates placed request-controlled values inside quoted OGNL expressions. OGNL decoded Java-style Unicode escapes while tokenizing, so an input containing the escape for a quote could terminate the intended string literal and append a new expression.
- CVE-2019-3396critical 9.82019
Confluence Widget Connector attacker-controlled Velocity template path
The Widget Connector forwarded the request parameter map to the renderer. For renderer paths that did not overwrite `_template`, the requester could select the Velocity resource to load, enabling path traversal and evaluation of attacker-controlled template content. The patch removes `_template` before dispatch.