CVE-2022-21694 Incorrect Permission Assignment for Critical Resource in OnionShare
OnionShare's website mode lacks granular CSP configuration, preventing secure hosting of sites requiring JavaScript or external resources.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-21694?
CVE-2022-21694 is a low-severity vulnerability in onionshare, published on 18 Jan 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
OnionShare is an open source tool that lets you securely and anonymously share files, host websites, and chat with friends using the Tor network. The website mode of the onionshare allows to use a hardened CSP, which will block any scripts and external resources. It is not possible to configure this CSP for individual pages and therefore the security enhancement cannot be used for websites using javascript or external resources like fonts or images.
Weakness: CWE-732
Which versions are affected by CVE-2022-21694?
3 open source packages ship an affected version, including onionshare-cli. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
onionshare-cli PyPI | All versions | 2.5 |
onionshare-cli PyPI | From 2.2 | 2.5 |
onionshare-cli PyPI | From 2.2 | 2.5 |
Products include Onionshare Onionshare.
How do I fix CVE-2022-21694?
Upgrade onionshare-cli to 2.5 or later.
Is CVE-2022-21694 being exploited?
There is no known exploitation of CVE-2022-21694 in the wild and no public exploit code.
Other vulnerabilities in onionshare
Sources
Also known as DEBIAN-CVE-2022-21694, GHSA-h29c-wcm8-883h, PYSEC-2022-45, UBUNTU-CVE-2022-21694.