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-16 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; openjdk-16 hook exposes private data to local users via crafted crash reports.
Vulnerability
The read_file() function in apport/hookutils.py follows symbolic links or opens FIFOs when invoked by the openjdk-16 package apport hooks. This insufficient path validation allows a local attacker to trick the add_info() routine in source_openjdk-16.py into reading arbitrary files. The vulnerable code builds a file path using the user-controlled ProcCwd value from the crash report without proper sanitization [1]. This affects all versions of the openjdk-16 apport hooks shipped in Ubuntu releases prior to the fix.
Exploitation
A local attacker must first trigger a crash in the OpenJDK-16 runtime to generate a crash report. By crafting a ProcCwd value that is a symbolic link pointing to an arbitrary file (or a FIFO), the attacker can cause the add_info() hook to call read_file() on that path when the crash report is processed. No elevated privileges are required beyond the ability to create files and symlinks on the filesystem; the attack is performed within the normal crash reporting workflow [1].
Impact
Successful exploitation leads to disclosure of private data from any file the targeted user has read access to (e.g., SSH keys, credentials, or other sensitive documents). The attack is limited to local access and does not provide code execution or privilege escalation beyond reading the victim's files. The data is read and included in the generated crash report, which may be visible to the attacker if they have access to the crash report queue [1].
Mitigation
A fixed version of apport (2.20.11-0ubuntu65.2 or later) was released on 2021-06-11 by Canonical. Users are advised to update the apport package via apt update && apt upgrade. As a workaround, enabling the sysctl setting fs.protected_symlinks (default on Ubuntu) mitigates the issue, but the vendor recommends applying the patch. The CVE is not listed in CISA's Known Exploited Vulnerabilities catalog as of the publication date [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
3- Package: https://pypi.org/project/apport
- 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.