Skip to content
RCE Write-up Intermediate

Local Privilege Escalation in Pardus Software Center via APT Opti

The Pardus Software Center's privileged helper passed user-supplied package strings to apt without validation, so a member of the pardus-software group could inject an apt option that replaced the dpkg binary with their own script. That script then ran as root without a password prompt, giving full local privilege escalation.

Kerem Kaan Dasmaz Follow

Published on medium.com

https://www.cve.org/cverecord?id=CVE-2026-14459

Kerem Kaan Dasmaz, on medium.com

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

The helper split the packages argument on spaces and appended the tokens directly to the apt command line with no allow-list and no -- terminator, so tokens that look like apt options were honoured as options.

Impact

Any member of the pardus-software group could gain full root on the host, reading every file including the shadow password file, overwriting files, creating backdoor accounts and persisting; the same technique works through the other package actions.

What the attacker needed

Membership in the pardus-software group; no sudo rights or password needed; local access to the machine

The fix

It was fixed in pardus-software 1.0.5 by validating each token against a strict package-name pattern, allowing only an explicit --no-install-recommends option, and inserting a -- separator before the package list.

How it was found

  1. Add a non-sudo user to the pardus-software group only.
  2. Create a script that records the current user and copies bash to a world-executable setuid-root binary.
  3. Invoke the privileged helper through pkexec, asking it to install a small package and smuggling in an apt option that points the dpkg binary at the script.
  4. Observe that no password is requested and the script runs as root, leaving the setuid bash behind.
  5. Run the setuid bash with the -p flag 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.

A helper program that runs with full administrator rights (root) took a list of package names from an ordinary user and handed it to the apt package manager without checking it. Because apt treats anything starting with a dash as an option, the user could sneak in an option that told apt to run a different program instead of the normal package installer, and that program ran with administrator rights. The user only needed to be in a special group that is allowed to run the helper without typing a password.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.