CVE-2017-17516 Reddit Terminal Viewer (RTV) vulnerable to argument injection attacks

High 8.8 Published Updated

Attackers can execute arbitrary commands via argument injection in the BROWSER environment variable when opening crafted URLs in RTV.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2017-17516?

CVE-2017-17516 is a high-severity command injection vulnerability in n/a, published on 14 Dec 2017. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

scripts/inspect_webbrowser.py in Reddit Terminal Viewer (RTV) 1.19.0 does not validate strings before launching the program specified by the BROWSER environment variable, which might allow remote attackers to conduct argument-injection attacks via a crafted URL.

Weakness: CWE-74

Which versions are affected by CVE-2017-17516?

3 open source packages ship an affected version, including rtv. It affects 1 product.

PackageAffectedFixed in
rtv PyPIAll versions to 1.19.0None
rtv PyPIAll versions to 1.19.0None
rtv PyPIAll versions to 1.19.0None

Products include Reddit Terminal Viewer Project Reddit Terminal Viewer.

How do I fix CVE-2017-17516?

No fix has been published for CVE-2017-17516 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2017-17516 being exploited?

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

Sources

Also known as DEBIAN-CVE-2017-17516, GHSA-336h-q7mh-8vf8, PYSEC-2026-914, UBUNTU-CVE-2017-17516.

Is CVE-2017-17516 in your software?

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

Check your SBOMs for free