Confluence vulnerabilities
3 real-world CVEs in Confluence. Each one is a short hands-on exercise in Hexret: find the vulnerable line, follow the exploit and learn the fix.
- CVE-2023-22527critical 10.02024
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.
- 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.