CVE-2014-7209
NoneCVSS
—
EPSS
2.8%
Published
Jan 6, 2015
CISA due date
—
Cloudanix analysis
A file-handling tool on older Debian systems could let attackers run their own commands simply by using certain characters in a file name.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Command Injection
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The flaw permits arbitrary command execution when run-mailcap processes filenames containing unsanitized shell metacharacters, allowing injection into shell invocations triggered by MIME type handling.
Why it matters to the business
Systems relying on the vulnerable mime-support package face risk of remote or local command execution that can lead to data exposure, service disruption, or full system compromise; the package's widespread use in Debian-based environments increases operational exposure even years after disclosure.
How an attack unfolds
An attacker supplies a crafted filename embedding shell metacharacters to any code path invoking run-mailcap for MIME type lookup or file handling; because the filename is passed unsanitized into a shell command, the injected payload executes with the privileges of the calling process.
How to fix it
Upgrade the mime-support package to version 3.52-1+deb7u1 or later on all affected Debian releases; where immediate patching is not possible, restrict use of run-mailcap to trusted inputs or replace calls with safer MIME handling utilities.
How to confirm the fix worked
Verify installed package version with dpkg -l mime-support or apt-cache policy mime-support; confirm run-mailcap no longer processes metacharacters in test filenames after upgrade; scan source and configuration files for direct invocations of run-mailcap.
Typical attack path
- Locate a Debian system with mime-support before 3.52-1+deb7u1
- Identify an application or script that invokes run-mailcap with attacker-controlled filenames
- Craft a filename containing shell metacharacters such as ;, |, or $()
- Trigger the vulnerable code path to cause run-mailcap to process the filename
- Execute arbitrary commands on the target system
How to detect it
Review process execution logs and audit trails for child processes spawned by run-mailcap or scripts that call it; inspect web or application logs for filenames containing shell metacharacters passed to MIME-handling routines; search command history and cron jobs for unexpected invocations involving mailcap.
What your security team should do
- Prioritize upgrade of mime-support across all Debian-based assets due to the package's foundational role in file handling
- Audit scripts and applications for any use of run-mailcap with untrusted filenames
- Implement input sanitization or switch to alternative MIME utilities where upgrades cannot be applied immediately
- Monitor package repositories for backported fixes on older Debian releases
The record
run-mailcap in the Debian mime-support package before 3.52-1+deb7u1 allows context-dependent attackers to execute arbitrary commands via shell metacharacters in a filename.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | mime-support | 0 | 3.58 |
| Debian:12 | mime-support | 0 | 3.58 |
| Debian:6.0 | mime-support | 0 | 3.48-1+deb6u1 |
| Debian:7 | mime-support | 0 | 3.52-1+deb7u1 |
| Ubuntu:14.04:LTS | mime-support | 0 | 3.54ubuntu1.1 |
Related vulnerabilities
- CVE-2026-114575 A flaw has been found in TOTOLINK A950RG 4.1.2cu.5268_B20221104. CWE-77
- CVE-2026-112942 launch-editor allows users to open files with line numbers in editor from Node.js. CWE-77
- CVE-2026-55453 OpenPrinting CUPS is an open source printing system for Linux and other Unix-like… CWE-77
- CVE-2026-102827 simple-git, an interface for running git commands in any node.js application, enables… CWE-77
- CVE-2026-102826 simple-git, an interface for running git commands in any node.js application, enables… CWE-77
- CVE-2026-79945 Dell SCG 5.0 Appliance versions prior to 5.36.00.16 and Dell SCG 5.0 Application versions… CWE-77
- CVE-2026-79741 Dell SCG 5.0 Appliance versions prior to 5.36.00.16 and Dell SCG 5.0 Application versions… CWE-77
- CVE-2026-78493 Dell SCG 5.0 Appliance versions prior to 5.36.00.16 and Dell SCG 5.0 Application versions… CWE-77