CVE-2021-3710 Apport info disclosure via path traversal bug in read_file

Medium 6.5 Published Updated

An attacker can exploit a path traversal flaw in the apport read_file function to disclose sensitive information on Ubuntu systems.

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-2021-3710?

CVE-2021-3710 is a medium-severity path traversal vulnerability in Canonical apport, published on 1 Oct 2021. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

An information disclosure via path traversal was discovered in apport/hookutils.py function read_file(). This issue affects: apport 2.14.1 versions prior to 2.14.1-0ubuntu3.29+esm8; 2.20.1 versions prior to 2.20.1-0ubuntu2.30+esm2; 2.20.9 versions prior to 2.20.9-0ubuntu7.26; 2.20.11 versions prior to 2.20.11-0ubuntu27.20; 2.20.11 versions prior to 2.20.11-0ubuntu65.3;

Weakness: CWE-22, CWE-24

Which versions are affected by CVE-2021-3710?

It affects 1 product.

Products include Canonical Apport.

How do I fix CVE-2021-3710?

Apply the vendor's patch.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2021-3710 being exploited?

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

Sources

Also known as GHSA-f7hq-m55j-5752, UBUNTU-CVE-2021-3710.

Is CVE-2021-3710 in your software?

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

Check your SBOMs for free