CVE-2022-4092 Cross-site scripting in GitLab

Medium 5.7 Published Updated

Attackers can inject malicious scripts via README pages in GitLab EE, potentially leading to code execution or account takeover.

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

What is CVE-2022-4092?

CVE-2022-4092 is a medium-severity cross-site scripting vulnerability in Gitlab Gitlab, published on 24 Jan 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

An issue has been discovered in GitLab EE affecting all versions starting from 15.6 before 15.6.1. It was possible to create a malicious README page due to improper neutralisation of user supplied input.

Weakness: CWE-79

Which versions are affected by CVE-2022-4092?

1 open source package ship an affected version, including gitlab. It affects 1 product.

PackageAffectedFixed in
gitlab BitnamiFrom 15.6.015.6.1

Products include Gitlab Gitlab.

How do I fix CVE-2022-4092?

Upgrade gitlab to 15.6.1 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2022-4092 being exploited?

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

All Gitlab Gitlab vulnerabilities

Sources

Also known as BIT-gitlab-2022-4092, GHSA-cxjq-5xjf-cmp7, UBUNTU-CVE-2022-4092.

Is CVE-2022-4092 in your software?

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

Check your SBOMs for free