CVE-2022-4721 Failure to Sanitize Special Elements into a Different Plane (Special Element Injection) in ikus060/rdiffweb
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.
| Package | Affected | Fixed in |
|---|---|---|
rdiffweb PyPI | All versions | 2.5.5 |
rdiffweb PyPI | All versions | 2.5.5 |
rdiffweb PyPI | All versions | 2.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.
Other vulnerabilities in ikus060/rdiffweb
- CVE-2022-3167 Improper Restriction of Rendered UI Layers or Frames in ikus060/rdiffweb
- CVE-2022-3221 Cross-Site Request Forgery (CSRF) in ikus060/rdiffweb
- CVE-2022-4724 Improper Access Control in ikus060/rdiffweb
- CVE-2022-3389 Path Traversal in ikus060/rdiffweb
- CVE-2022-3371 rdiffweb's lack of token name length limit can result in DoS or memory corruption
Sources
Also known as GHSA-83pm-7v48-5jp4, PYSEC-2022-43007.