CVE-2021-33473 Arbitrary file write in dragonfly

Critical 9.1 Published Updated

Attackers can read and write arbitrary files via crafted URLs if the verify_url option is disabled in the Dragonfly Ruby Gem.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-33473?

CVE-2021-33473 is a critical path traversal vulnerability in n/a, published on 2 Jun 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An argument injection vulnerability in Dragonfly Ruby Gem v1.3.0 allows attackers to read and write arbitrary files when the verify_url option is disabled. This vulnerability is exploited via a crafted URL.

Weakness: CWE-88

Which versions are affected by CVE-2021-33473?

2 open source packages ship an affected version, including dragonfly. It affects 1 product.

PackageAffectedFixed in
dragonfly RubyGemsAll versions1.4.0
dragonfly RubyGemsAll versions1.4.0

Products include Dragonfly Project Dragonfly.

How do I fix CVE-2021-33473?

Upgrade dragonfly to 1.4.0 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2021-33473 being exploited?

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

Sources

Also known as GHSA-fj34-jhjx-xmvv.

Is CVE-2021-33473 in your software?

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

Check your SBOMs for free