CVE-2022-4721 Failure to Sanitize Special Elements into a Different Plane (Special Element Injection) in ikus060/rdiffweb

Medium 6.6 Published Updated

An attacker can inject special elements into rdiffweb, potentially leading to cross-site scripting or code execution.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-4721?

CVE-2022-4721 is a medium-severity cross-site scripting vulnerability in ikus060/rdiffweb, published on 23 Dec 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Failure to Sanitize Special Elements into a Different Plane (Special Element Injection) in GitHub repository ikus060/rdiffweb prior to 2.5.5.

Weakness: CWE-75

Which versions are affected by CVE-2022-4721?

3 open source packages ship an affected version, including rdiffweb. It affects 1 product.

PackageAffectedFixed in
rdiffweb PyPIAll versions2.5.5
rdiffweb PyPIAll versions2.5.5
rdiffweb PyPIAll versions2.5.5

Products include Ikus-Soft Rdiffweb.

How do I fix CVE-2022-4721?

Upgrade rdiffweb to 2.5.5 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-4721 being exploited?

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

Sources

Also known as GHSA-83pm-7v48-5jp4, PYSEC-2022-43007.

Is CVE-2022-4721 in your software?

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

Check your SBOMs for free