Local Privilege Escalation in Pardus Linux: How Three Bugs Chain Into a Full Root Shell | CVE-2026–5140
A chain of three flaws in Pardus Linux's update system lets any local unprivileged user gain root without a password. The Polkit policy allows unauthenticated execution of privileged scripts, a CRLF injection poisons a config file, and an untrusted path is copied into APT sources, leading to installation of a malicious package that sets the SUID bit on bash.
Published on nullsecurityx.medium.com
A multi-stage vulnerability chain was discovered in the pardus-update package — the core update component of Pardus Linux, a Debian-based distribution developed in Turkey. By combining a Polkit misconfiguration (CWE-285), a CRLF injection flaw (CWE-93), and an untrusted search path issue (CWE-426), any local…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the root cause is missing input validation and overly permissive authorisation: the Polkit policy allows any user to run privileged scripts without authentication, the config writer fails to strip carriage returns, and the APT source path is not restricted to trusted directories.
Impact
Any local user, including guest accounts, can gain full root access, leading to complete system compromise with confidentiality, integrity, and availability impact.
What the attacker needed
Local unprivileged access to a Pardus system; vulnerable pardus-update package installed
The fix
The report recommends three fixes: change Polkit policy to require admin authentication, strip CRLF characters from inputs, and restrict APT source paths to trusted directories; it does not state that these were applied.
How it was found
- Create a malicious APT repository containing a fake package that runs a script to set the SUID bit on bash.
- Use pkexec to run SystemSettingsWrite.py with a crafted timestamp argument that injects a custom_sourcesd_path pointing to the malicious repository file.
- Use pkexec to run AutoAptUpgrade.py, which copies the attacker's .list file into APT sources and performs an upgrade as root, installing the malicious package.
- Execute /bin/bash -p to obtain a root shell.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This report describes how three separate mistakes in a Linux update tool combine to let a normal user become the all-powerful root user. The first mistake lets anyone run certain update scripts as root without a password; the second lets them sneak extra settings into a configuration file; the third makes the update tool trust a file from a temporary folder, so a fake software package gets installed with root rights. Together, these allow a user to take complete control of the computer.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.