CVE-2022-21694 Incorrect Permission Assignment for Critical Resource in OnionShare

Low 3.7 Published Updated

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.

PackageAffectedFixed in
onionshare-cli PyPIAll versions2.5
onionshare-cli PyPIFrom 2.22.5
onionshare-cli PyPIFrom 2.22.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.

Sources

Also known as DEBIAN-CVE-2022-21694, GHSA-h29c-wcm8-883h, PYSEC-2022-45, UBUNTU-CVE-2022-21694.

Is CVE-2022-21694 in your software?

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

Check your SBOMs for free