apport read_file() function could follow maliciously constructed symbolic links
Description
It was discovered that read_file() in apport/hookutils.py would follow symbolic links or open FIFOs. When this function is used by the openjdk-13 package apport hooks, it could expose private data to other local users.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Apport's read_file() follows symlinks/FIFOs; combined with openjdk-13 hooks' directory traversal, local users can read arbitrary files.
Vulnerability
The read_file() function in apport/hookutils.py follows symbolic links and opens FIFOs without restriction. When used by the openjdk-13 package apport hooks (source_openjdk-*.py), the add_info() function constructs a file path using user-controlled ProcCwd data without proper sanitization, enabling directory traversal. This allows reading hs_err_pid.log from attacker-controlled paths. The issue affects default Ubuntu installations with the apport package and the openjdk-13 hooks [1].
Exploitation
A local attacker can exploit this by crafting a crash report that sets ProcCwd to a directory containing a symlink or FIFO (e.g., pointing to /etc/shadow). When the apport hook processes the crash, it calls read_file() on the attacker-controlled path, following the symlink or opening the FIFO. The attacker needs only local user access and the ability to trigger a crash (e.g., by causing a Java crash) [1].
Impact
Successful exploitation results in disclosure of any file on the system that the apport process (running as root or with elevated privileges) can read. This includes sensitive private data of other local users, such as SSH keys, passwords, or configuration files. The confidentiality of the system is compromised [1].
Mitigation
A fix was released in apport version 2.20.11-0ubuntu50.13 (and later) for Ubuntu 20.04 LTS, and similarly for other affected releases. The fix ensures read_file() checks for symlinks and FIFOs and does not follow them. Users should update their apport package. The sysctl setting fs.protected_symlinks mitigates some instances but not this specific one on default installations [1].
AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
1- Range: 2.20.1
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
1- bugs.launchpad.net/ubuntu/+source/apport/+bug/1917904mitrex_refsource_MISC
News mentions
0No linked articles in our index yet.