CVE-2014-5284 in Ossec
host-deny.sh in OSSEC before 2.8.1 writes to temporary files with predictable filenames without verifying ownership, which allows local users to modify access restrictions in hosts.deny and gain root privileges by creating the temporary files before automatic IP blocking is performed.
Affects 1 product from 1 vendor. Facts below cite their sources.
Requires local access, low complexity.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Ossec | Ossec | ≤ 2.8.0 |
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.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
Official description
host-deny.sh in OSSEC before 2.8.1 writes to temporary files with predictable filenames without verifying ownership, which allows local users to modify access restrictions in hosts.deny and gain root privileges by creating the temporary files before automatic IP blocking is performed.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2014-5284 |
|---|---|
| BreachSpider ID | BS-2014-GLOBAL-186598-H |
| CVSS vector | AV:L/AC:L/Au:N/C:C/I:C/A:C |
| Published | 2014-12-02 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-264: Permissions, Privileges, and Access Controls
Broad class covering failures in permission enforcement. Deprecated in favor of CWE-284, CWE-862, CWE-863.
Analysis AI-written, not human-reviewed
A vulnerability in OSSEC before version 2.8.1 allows local users to modify access restrictions in hosts.deny and potentially gain root privileges by exploiting predictable temporary filenames used by the host-deny.sh script.
The host-deny.sh script in OSSEC creates temporary files with predictable filenames without verifying their ownership. An attacker can create these files before the script writes to them, allowing them to modify the contents of hosts.deny, which controls access restrictions. This can lead to unauthorized access and privilege escalation.
Questions
What is CVE-2014-5284?
A vulnerability in OSSEC before version 2.8.1 allows local users to modify access restrictions in hosts.deny and potentially gain root privileges by exploiting predictable temporary filenames used by the host-deny.sh script.
What is the CVSS score for CVE-2014-5284?
CVE-2014-5284 has CVSS 7.2 (High). Vector: AV:L/AC:L/Au:N/C:C/I:C/A:C. EPSS: 2.4%.
Is CVE-2014-5284 actively exploited?
Public exploit available for CVE-2014-5284. Exploitation risk elevated.
How do I remediate CVE-2014-5284?
Priority: HIGH. PSIRT: [email protected]
What systems are affected by CVE-2014-5284?
CVE-2014-5284 affects Ossec Ossec.
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":"Ossec","product":"Ossec","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-17.