CVE-2022-28481 CSV-Safe improperly filters special characters potentially leading to CSV injection

Critical 9.8 Published Updated

Attackers can execute arbitrary code via CSV injection in the CSV-Safe Ruby gem due to insufficient filtering of special characters.

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-28481?

CVE-2022-28481 is a critical code injection vulnerability in n/a, published on 1 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

CSV-Safe gem < 3.0.0 doesn't filter out special characters which could trigger CSV Injection.

Weakness: CWE-1236

Which versions are affected by CVE-2022-28481?

2 open source packages ship an affected version, including csv-safe. It affects 1 product.

PackageAffectedFixed in
csv-safe RubyGemsAll versions3.0.0
csv-safe RubyGemsAll versions3.0.0

Products include Csv-Safe Project Csv-Safe.

How do I fix CVE-2022-28481?

Upgrade csv-safe to 3.0.0 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2022-28481 being exploited?

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

Sources

Also known as GHSA-f55g-x8qq-2569.

Is CVE-2022-28481 in your software?

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

Check your SBOMs for free