CVE-2012-2142 Command injection in poppler

High 7.8 Published Updated

Remote attackers can execute arbitrary commands via a malicious PDF file exploiting a terminal escape sequence vulnerability in the poppler library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2012-2142?

CVE-2012-2142 is a high-severity command injection vulnerability in Freedesktop Poppler, published on 9 Jan 2020. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

The error function in Error.cc in poppler before 0.21.4 allows remote attackers to execute arbitrary commands via a PDF containing an escape sequence for a terminal emulator.

Which versions are affected by CVE-2012-2142?

It affects 4 products.

Products include Freedesktop Poppler, Opensuse Opensuse, Redhat Enterprise Linux, Xpdfreader Xpdf.

How do I fix CVE-2012-2142?

Upgrade to a fixed version.

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

Is CVE-2012-2142 being exploited?

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

All Freedesktop Poppler vulnerabilities

Sources

Also known as DEBIAN-CVE-2012-2142, GHSA-pwcf-7grp-gwmj, MGASA-2013-0261.

Is CVE-2012-2142 in your software?

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

Check your SBOMs for free