CVE-2023-45144 Remote code execution from login screen through unescaped URL parameter in OAuth Identity XWiki App

Critical 10.0 Published Updated

Attackers can achieve remote code execution via syntax injection in the OAuth login screen, compromising the entire XWiki installation.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-45144?

CVE-2023-45144 is a critical code injection vulnerability in xwikisas identity-oauth, published on 16 Oct 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

com.xwiki.identity-oauth:identity-oauth-ui is a package to aid in building identity and service providers based on OAuth authorizations. When a user logs in via the OAuth method, the identityOAuth parameters sent in the GET request is vulnerable to cross site scripting (XSS) and XWiki syntax injection. This allows remote code execution via the groovy macro and thus affects the confidentiality, integrity and availability of the whole XWiki installation. The issue has been fixed in Identity OAuth version 1.6. There are no known workarounds for this vulnerability and users are advised to upgrade.

Weakness: CWE-94, CWE-79

Which versions are affected by CVE-2023-45144?

2 open source packages ship an affected version, including com.xwiki.identity-oauth:identity-oauth-ui. It affects 1 product.

PackageAffectedFixed in
com.xwiki.identity-oauth:identity-oauth-ui MavenFrom 1.01.6
com.xwiki.identity-oauth:identity-oauth-ui MavenFrom 1.01.6

Products include Xwiki Oauth Identity.

How do I fix CVE-2023-45144?

Upgrade com.xwiki.identity-oauth:identity-oauth-ui to 1.6 or later.

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

Is CVE-2023-45144 being exploited?

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

Sources

Also known as GHSA-h2rm-29ch-wfmh.

Is CVE-2023-45144 in your software?

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

Check your SBOMs for free