CVE-2020-15709 add-apt-repository print ASNI terminal codes
PPA owners can inject ANSI escape codes into terminal output via add-apt-repository, potentially modifying terminal contents unexpectedly.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-15709?
CVE-2020-15709 is a medium-severity cross-site scripting vulnerability in Canonical add-apt-repository, published on 5 Sep 2020. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
Versions of add-apt-repository before 0.98.9.2, 0.96.24.32.14, 0.96.20.10, and 0.92.37.8ubuntu0.1~esm1, printed a PPA (personal package archive) description to the terminal as-is, which allowed PPA owners to provide ANSI terminal escapes to modify terminal contents in unexpected ways.
Weakness: CWE-20
Which versions are affected by CVE-2020-15709?
It affects 1 product.
Products include Canonical Add-Apt-Repository.
How do I fix CVE-2020-15709?
Apply the vendor's patch.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2020-15709 being exploited?
There is no known exploitation of CVE-2020-15709 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2020-15709, DLA-2339-1, GHSA-9gjg-6646-fqxh, UBUNTU-CVE-2020-15709, USN-4457-1, USN-4457-2.