CVE-2022-23620 Path traversal in xwiki-platform-skin-skinx

Medium 6.8 Published Updated

Attackers can exploit improper escaping in HTML export to traverse directories and read or modify files on the server.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-23620?

CVE-2022-23620 is a medium-severity path traversal vulnerability in Xwiki Xwiki, published on 9 Feb 2022. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. In affected versions AbstractSxExportURLFactoryActionHandler#processSx does not escape anything from SSX document references when serializing it on filesystem, it is possible to for the HTML export process to contain reference elements containing filesystem syntax like "../", "./". or "/" in general. The referenced elements are not properly escaped. This issue has been resolved in version 13.6-rc-1. This issue can be worked around by limiting or disabling document export.

Weakness: CWE-116, CWE-22

Which versions are affected by CVE-2022-23620?

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

PackageAffectedFixed in
org.xwiki.platform:xwiki-platform-skin-skinx MavenFrom 6.2-rc-113.6
org.xwiki.platform:xwiki-platform-skin-skinx MavenFrom 6.2-rc-113.6

Products include Xwiki Xwiki.

How do I fix CVE-2022-23620?

Upgrade org.xwiki.platform:xwiki-platform-skin-skinx to 13.6 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2022-23620 being exploited?

There is no known exploitation of CVE-2022-23620 in the wild and no public exploit code.

All Xwiki Xwiki vulnerabilities

Sources

Also known as GHSA-7ph6-5cmq-xgjq.

Is CVE-2022-23620 in your software?

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

Check your SBOMs for free