A user that doesn't have programming rights can execute arbitrary code when creating a page using the Migration Page template. A possible attack vector is the following:
confluencepro.job.question.advanced.input={{/html}} {{async async="true" cached="false" context="doc.reference"}}{{groovy}}println("hello from groovy!"){{/groovy}}{{/async}}
XWiki.TranslationDocumentClass with scope USER.MigrationTemplatehttp://localhost:8080/xwiki/bin/edit/Page123?template=ConfluenceMigratorPro.Code.MigrationTemplate
It is expected that {{/html}} {{async async="true" cached="false" context="doc.reference"}}{{groovy}}println("hello from groovy!"){{/groovy}}{{/async}} will be present on the page, however, hello from groovy will be printed.
The issue will be fixed as part of v1.2. The fix was added with commit 35cef22
There are no known workarounds besides upgrading.
No references.
{
"cwe_ids": [
"CWE-95"
],
"github_reviewed": true,
"github_reviewed_at": "2025-03-07T16:07:50Z",
"nvd_published_at": "2025-03-07T16:15:40Z",
"severity": "CRITICAL"
}