CVE-2014-0476
NoneCVSS
—
EPSS
3.8%
Published
Oct 25, 2014
CISA due date
—
Cloudanix analysis
A security scanning tool can be tricked into running attacker code instead of checking the system, letting someone with local access take control.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- High
- Impact
- Privilege Gain
- Component
- Application
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The slapper function in chkrootkit fails to quote file paths before passing them to a shell, enabling a local attacker to substitute a Trojan executable in /tmp that gets executed with the privileges of the chkrootkit process.
Why it matters to the business
A user with local access can gain code execution on systems running vulnerable chkrootkit versions, undermining the tool's purpose as a rootkit detector and potentially leading to full system compromise; the issue is mitigated only when /tmp is mounted noexec.
How an attack unfolds
An attacker creates a malicious executable in /tmp with a name that chkrootkit's slapper function will reference without quotes, then invokes chkrootkit (often via cron or manual scan) so the shell executes the attacker's binary instead of the intended path.
How to fix it
Upgrade chkrootkit to version 0.50 or later on all affected systems; additionally ensure /tmp is mounted with the noexec option where feasible and audit any automated chkrootkit invocations.
How to confirm the fix worked
Confirm chkrootkit version is 0.50 or newer via package manager or binary output; test that running the tool no longer executes arbitrary files placed in /tmp; verify /tmp mount options include noexec.
Typical attack path
- Place a crafted executable in /tmp with a predictable name referenced by chkrootkit
- Trigger chkrootkit execution (manual, scripted, or scheduled)
- Unquoted path causes shell to run the attacker-controlled binary
- Attacker code executes with chkrootkit privileges
How to detect it
Review system logs and process execution history for chkrootkit invocations that coincide with unexpected child processes or files created in /tmp; examine cron and user shell histories for chkrootkit runs; look for binaries in /tmp whose names align with known chkrootkit checks.
- /tmp/update
- chkrootkit process spawning unexpected children from /tmp
- executable files in /tmp created shortly before chkrootkit execution
What your security team should do
- Immediately replace chkrootkit with a maintained alternative or upgrade to 0.50+
- Add noexec to /tmp mount options in /etc/fstab and remount
- Remove or disable any scheduled chkrootkit jobs until fixed
- Scan systems for unexpected executables in /tmp that match historical chkrootkit check names
The record
The slapper function in chkrootkit before 0.50 does not properly quote file paths, which allows local users to execute arbitrary code via a Trojan horse executable. NOTE: this is only a vulnerability when /tmp is not mounted with the noexec option.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | chkrootkit | 0 | 0.49-5 |
| Debian:12 | chkrootkit | 0 | 0.49-5 |
| Debian:13 | chkrootkit | 0 | 0.49-5 |
| Debian:6.0 | chkrootkit | 0 | 0.49-4+deb6u1 |
| Debian:7 | chkrootkit | 0 | 0.49-4.1+deb7u2 |
| Mageia:3 | chkrootkit | 0 | 0.49-6.1.mga3 |
| Mageia:4 | chkrootkit | 0 | 0.49-8.1.mga4 |
| Ubuntu:14.04:LTS | chkrootkit | 0 | 0.49-4.1ubuntu1.14.04.1 |
Related vulnerabilities
- CVE-2026-113786 pypdf is a free and open-source pure-python PDF library. CWE-20
- CVE-2026-112081 A vulnerability was determined in hankcs HanLP up to 2.1.0-beta.64. CWE-20
- CVE-2026-111869 A vulnerability was identified in makeplane plane up to 1.4.2. CWE-20
- CVE-2026-100347 kin-openapi is a Go project for handling OpenAPI files. CWE-20
- CVE-2026-99999 In the Linux kernel, the following vulnerability has been resolved: ipv4: validate… CWE-20
- CVE-2026-107726 Hazelcast is a unified real-time data platform combining stream processing with a fast… CWE-20
- CVE-2026-105757 vLLM is an inference and serving engine for large language models. CWE-20
- CVE-2026-105756 vLLM is an inference and serving engine for large language models. CWE-20