CVE-2019-3462 Code injection in apt as used in Debian Stretch and Ubuntu

High 8.1 Published Updated

A man-in-the-middle attacker can inject malicious content via HTTP redirects in apt, leading to remote code execution on the target machine.

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

What is CVE-2019-3462?

CVE-2019-3462 is a high-severity code injection vulnerability in Canonical Ubuntu Linux, published on 28 Jan 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Incorrect sanitation of the 302 redirect field in HTTP transport method of apt versions 1.4.8 and earlier can lead to content injection by a MITM attacker, potentially leading to remote code execution on the target machine.

Which versions are affected by CVE-2019-3462?

It affects 5 products.

Products include Canonical Ubuntu Linux, Debian Advanced Package Tool, Debian Debian Linux, Netapp Active Iq, Netapp Element Software.

How do I fix CVE-2019-3462?

Apply the vendor's patch.

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

Is CVE-2019-3462 being exploited?

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

Public exploit code: 2 proofs of concept on GitHub.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2019-3462, DLA-1637-1, DSA-4371-1, GHSA-q857-rhg5-4j49, UBUNTU-CVE-2019-3462, USN-3863-1.

Is CVE-2019-3462 in your software?

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

Check your SBOMs for free