CVE-2022-0751 Cross-site scripting in GitLab

Medium 6.5 Published Updated

An attacker can create misleading snippets with special characters to trick users into executing arbitrary commands in GitLab.

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-2022-0751?

CVE-2022-0751 is a medium-severity cross-site scripting vulnerability in Gitlab Gitlab, published on 28 Mar 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Inaccurate display of Snippet files containing special characters in all versions of GitLab CE/EE allows an attacker to create Snippets with misleading content which could trick unsuspecting users into executing arbitrary commands

Which versions are affected by CVE-2022-0751?

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

PackageAffectedFixed in
gitlab BitnamiFrom 10.0.014.6.5, 14.7.4, 14.8.2

Products include Gitlab Gitlab.

How do I fix CVE-2022-0751?

Upgrade gitlab to a fixed version for your release line: 14.6.5, 14.7.4 or 14.8.2.

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-0751 being exploited?

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

All Gitlab Gitlab vulnerabilities

Sources

Also known as BIT-gitlab-2022-0751, GHSA-x34v-2x5g-pxw5, UBUNTU-CVE-2022-0751.

Is CVE-2022-0751 in your software?

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

Check your SBOMs for free