CUPS 1.4.4 on certain Linux distributions, including Debian GNU/Linux-derived configurations, stores the CUPS web-interface administrator key with unsafe permissions. A local member of the lpadmin group can access or modify this key and leverage the CUPS web interface's elevated privileges to perform arbitrary file read or write operations as root.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
2 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos.
This repository contains a single Metasploit post-exploitation module targeting a local privilege escalation vulnerability in CUPS (Common UNIX Printing System) versions prior to 1.6.2 (CVE-2012-5519). The exploit leverages the ability of users in the 'lpadmin' group to change the CUPS error log path to an arbitrary file (such as /etc/shadow). By enabling the CUPS web interface and accessing the error log page, the module retrieves the contents of the specified file as root. The module is operational and provides a file read payload, saving the stolen file as loot. The exploit is effective on macOS < 10.8.4 and Ubuntu Desktop <= 12.0.4, provided the attacker has the necessary group membership. The code is written in Ruby and is structured as a standard Metasploit module, with options to specify the target file and the original error log path. The main attack vector is local privilege escalation, and the key fingerprintable endpoints are the file paths and the CUPS web interface URL used to extract the file contents.
This repository contains a Bash script ('cups-root-file-read.sh') that exploits CVE-2012-5519, a local privilege escalation vulnerability in CUPS (Common UNIX Printing System) versions prior to 1.6.2. The exploit allows a user in the 'lpadmin' group to read arbitrary files as root by setting the CUPS ErrorLog path to a target file and then accessing the CUPS web interface at 'http://localhost:631/admin/log/error_log'. The script is interactive, prompting the user for file paths to read, and performs checks to ensure the environment is suitable for exploitation (e.g., presence of 'cupsctl', 'curl', correct group membership, and vulnerable CUPS version). The README provides detailed usage instructions, prerequisites, limitations, and examples of files that can be targeted. The exploit is operational and self-contained, requiring only Bash and common Linux utilities, making it suitable for CTFs and penetration testing on vulnerable systems.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
1 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.