CVE-2022-21948 paste: XSS on the image upload function

Medium 4.3 Published Updated

Remote attackers can execute JavaScript via malicious SVG uploads in openSUSE paste, potentially compromising user sessions.

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

What is CVE-2022-21948?

CVE-2022-21948 is a medium-severity cross-site scripting vulnerability in openSUSE paste, published on 7 Feb 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

An Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in paste allows remote attackers to place Javascript into SVG files. This issue affects: openSUSE paste paste version b57b9f87e303a3db9465776e657378e96845493b and prior versions.

Weakness: CWE-79

Which versions are affected by CVE-2022-21948?

It affects 1 product.

Products include Opensuse Paste.

How do I fix CVE-2022-21948?

No fix has been published for CVE-2022-21948 yet. Limit exposure of the affected software until one is available.

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

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

Sources

Also known as GHSA-v8jx-vx6h-6c48.

Is CVE-2022-21948 in your software?

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

Check your SBOMs for free