CVE-2008-5394 in Debian Shadow
/bin/login in shadow 4.0.18.1 in Debian GNU/Linux, and probably other Linux distributions, allows local users in the utmp group to overwrite arbitrary files via a symlink attack on a temporary file referenced in a line (aka ut_line) field in a utmp entry.
Affects 1 product from 1 vendor. Facts below cite their sources.
Requires local access, low complexity.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Debian | Shadow | 4.0.18.1 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
Official description
/bin/login in shadow 4.0.18.1 in Debian GNU/Linux, and probably other Linux distributions, allows local users in the utmp group to overwrite arbitrary files via a symlink attack on a temporary file referenced in a line (aka ut_line) field in a utmp entry.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2008-5394 |
|---|---|
| BreachSpider ID | BS-2008-GLOBAL-158472-H |
| CVSS vector | AV:L/AC:L/Au:N/C:C/I:C/A:C |
| Published | 2008-12-09 |
| Last modified | 2026-06-16 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-59: Improper Link Resolution Before File Access
Software follows symbolic links without verifying the target, allowing read, write, or delete of unintended files.
Related attack patterns (CAPEC)
CAPEC-35 Leverage Executable Code in Non-Executable Files via CWE-59
CAPEC-76 Manipulating Web Input to File System Calls via CWE-59
CAPEC-132 Symlink Attack via CWE-59
CAPEC-17 Using Malicious Files via CWE-59
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A vulnerability in the /bin/login binary of the shadow package in Debian GNU/Linux and potentially other Linux distributions allows local users in the utmp group to perform a symlink attack, leading to the overwriting of arbitrary files.
The vulnerability arises from the improper handling of temporary files in the utmp entry line field. An attacker can create a symbolic link to a target file, and when the /bin/login binary writes to the temporary file, it inadvertently writes to the target file instead.
Questions
What is CVE-2008-5394?
A vulnerability in the /bin/login binary of the shadow package in Debian GNU/Linux and potentially other Linux distributions allows local users in the utmp group to perform a symlink attack, leading to the overwriting of arbitrary files.
What is the CVSS score for CVE-2008-5394?
CVE-2008-5394 has CVSS 7.2 (High). Vector: AV:L/AC:L/Au:N/C:C/I:C/A:C. EPSS: 0.9%.
Is CVE-2008-5394 actively exploited?
Public exploit available for CVE-2008-5394. Exploitation risk elevated.
How do I remediate CVE-2008-5394?
Priority: MEDIUM.
What systems are affected by CVE-2008-5394?
CVE-2008-5394 affects Debian Shadow.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Debian","product":"Shadow","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-16.