Hacking

Hacking Ubuntu Linux distro exploiting the CrashDB code injection issue

The exploitation of the CrashDB code injection issue could allow an attacker to remotely execute arbitrary code on machines running Ubuntu Linux distro.

New problems for Ubuntu Linux distribution, the security expert Donncha O’Cearbhaill discovered a critical vulnerability that could be exploited by a remote attacker to compromise a target computer using a malicious file.

The vulnerability, a CrashDB code injection flaw, affects the Apport crash reporting tool on Ubuntu and is present in default Ubuntu Linux installations versions 12.10 (Quantal) and later. According to the expert, the vulnerable code was introduced on 2012-08-22 in Apport revision 2464 and was initially included in release 2.6.1.

According to O’Cearbhaill, the CrashDB code injection flaw could allow an attacker to remotely execute arbitrary code on a system running on vulnerable Ubuntu Linux. In order to exploit the flaw, the attacker has to trick the Ubuntu user into opening a maliciously booby-trapped crash file.

Once the victim opens the file it will inject malicious code in Ubuntu crash file handler that parses the code and executes arbitrary Python code.

“Problematically there is also code which loads the CrashDB configuration directly from the CrashDB field and not from a local file. The code first checks if the CrashDB field starts with { indicating the start of a Python dictionary. If found, Apport will call Python’s builtin eval()method with the value of the CrashDB field. eval() executes the passed data as a Python expression which leads to straight forward and reliable Python code execution.” wrote O’Cearbhaill in a blog post.

The researcher also published a proof-of-concept (PoC) exploit code on GitHub and a video PoC of the attack.

“Ubuntu ships the Apport crash handling software with all of its recent Desktop releases. This repo contains an exploit for a bug in the Apport crash report parser which can provide reliable code execution upon opening an Apport crash file. The parsing bug results in Python code injection in the Apport process. Exploiting this issue does not involve any memory corruption and it is extremely reliable.” states O’Cearbhaill.

The researcher has also shared a video demonstration, showing that it is possible to gain control over the targeted Ubuntu box system using this flaw with the help of a malicious file.

In the video the expert opened the Gnome calculator with a simple Apport crash report file.

Below and example of a minimal crash report file which exploits the CrashDB vulnerability in order to gain arbitrary code execution and launch the Gnome calculator:

ProblemType: Bug
ExecutablePath: /usr/bin/file-roller
Stacktrace:
None
CrashDB: {‘impl’: ‘memory’, ‘crash_config’: exec(“””
import subprocess
payload_cmd = “pkill -9 apport; gnome-calculator”
subprocess.Popen(payload_cmd, shell=True)
“””, {}) }

The code could be saved with the .crash extension or with any other extension that’s not registered on Ubuntu.

“Both of these issues were reported to the Apport maintainers and a fix was released on 2016-12-14. The CrashDB code injection issue can be tracked with CVE-2016-9949 and the path traversal bug with CVE-2016-9950. An additional problem where arbitrary commands can be called with the “Relaunch” action is tracked by CVE-2016-9951.” added the expert.

The researcher reported the CrashDB vulnerability to Ubuntu that promptly patched the flaw in Ubuntu. O’Cearbhaill received a $10,000 bounty.

Ubuntu Linux users have to patch their systems asap.

[adrotate banner=”9″]

Pierluigi Paganini

(Security Affairs – CrashDB vulnerability, Ubuntu)

Pierluigi Paganini

Pierluigi Paganini is member of the ENISA (European Union Agency for Network and Information Security) Threat Landscape Stakeholder Group and Cyber G7 Group, he is also a Security Evangelist, Security Analyst and Freelance Writer. Editor-in-Chief at "Cyber Defense Magazine", Pierluigi is a cyber security expert with over 20 years experience in the field, he is Certified Ethical Hacker at EC Council in London. The passion for writing and a strong belief that security is founded on sharing and awareness led Pierluigi to find the security blog "Security Affairs" recently named a Top National Security Resource for US. Pierluigi is a member of the "The Hacker News" team and he is a writer for some major publications in the field such as Cyber War Zone, ICTTF, Infosec Island, Infosec Institute, The Hacker News Magazine and for many other Security magazines. Author of the Books "The Deep Dark Web" and “Digital Virtual Currency and Bitcoin”.

Recent Posts

Google: state-backed hackers exploit Gemini AI for cyber recon and attacks

Google says nation-state actors used Gemini AI for reconnaissance and attack support in cyber operations.…

26 minutes ago

U.S. CISA adds SolarWinds Web Help Desk, Notepad++, Microsoft Configuration Manager, and Apple devices flaws to its Known Exploited Vulnerabilities catalog

U.S. Cybersecurity and Infrastructure Security Agency (CISA) adds SolarWinds Web Help Desk, Notepad++, Microsoft Configuration…

3 hours ago

Odido confirms massive breach; 6.2 Million customers impacted

Hackers accessed data from 6.2 million Odido accounts, exposing names, contacts, bank details, and ID…

15 hours ago

ApolloMD data breach impacts 626,540 people

A May 2025 cyberattack on ApolloMD exposed the personal data of over 626,000 patients linked…

17 hours ago

LummaStealer activity spikes post-law enforcement disruption

Bitdefender reports a surge in LummaStealer activity, showing the MaaS infostealer rebounded after 2025 law…

20 hours ago

Apple fixed first actively exploited zero-day in 2026

Apple fixed an exploited zero-day in iOS, macOS, and other devices that allowed attackers to…

1 day ago

This website uses cookies.