CVE-2018-20752 Code injection in n/a

Critical 9.8 Published Updated

Attackers can achieve remote code execution by injecting malicious formulas into CSV exports via unsanitized Twitter usernames in Recon-ng.

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

What is CVE-2018-20752?

CVE-2018-20752 is a critical code injection vulnerability in n/a, published on 4 Feb 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue was discovered in Recon-ng before 4.9.5. Lack of validation in the modules/reporting/csv.py file allows CSV injection. More specifically, when a Twitter user possesses an Excel macro for a username, it will not be properly sanitized when exported to a CSV file. This can result in remote code execution for the attacker.

Weakness: CWE-1236

Which versions are affected by CVE-2018-20752?

It affects 1 product.

Products include Recon-Ng Project Recon-Ng.

How do I fix CVE-2018-20752?

Upgrade to a fixed version.

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

Is CVE-2018-20752 being exploited?

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

Sources

Also known as DEBIAN-CVE-2018-20752, GHSA-rc4w-3h9q-6xf9, UBUNTU-CVE-2018-20752.

Is CVE-2018-20752 in your software?

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

Check your SBOMs for free