CVE-2023-29510 Code injection via unescaped translations in xwiki-platform

Critical 10.0 Published Updated

Attackers with edit access can inject code via unescaped user translations, leading to remote code execution in XWiki.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-29510?

CVE-2023-29510 is a critical code injection vulnerability in Xwiki Xwiki, published on 18 Apr 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. In XWiki, every user can add translations that are only applied to the current user. This also allows overriding existing translations. Such translations are often included in privileged contexts without any escaping which allows remote code execution for any user who has edit access on at least one document which could be the user's own profile where edit access is enabled by default. A mitigation for this vulnerability is part of XWiki 14.10.2 and XWiki 15.0 RC1: translations with user scope now require script right. This means that regular users cannot exploit this anymore as users don't have script right by default anymore starting with XWiki 14.10. There are no known workarounds apart from upgrading to a patched versions.

Weakness: CWE-74

Which versions are affected by CVE-2023-29510?

2 open source packages ship an affected version, including org.xwiki.platform:xwiki-platform-administration-ui. It affects 1 product.

PackageAffectedFixed in
org.xwiki.platform:xwiki-platform-administration-ui MavenFrom 4.3-milestone-214.10.2
org.xwiki.platform:xwiki-platform-administration-ui MavenFrom 4.3-milestone-214.10.2

Products include Xwiki Xwiki.

How do I fix CVE-2023-29510?

Upgrade org.xwiki.platform:xwiki-platform-administration-ui to 14.10.2 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2023-29510 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-29510 exists.

All Xwiki Xwiki vulnerabilities

Sources

Also known as GHSA-4v38-964c-xjmw.

Is CVE-2023-29510 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free