CVE-2021-28040: OSSEC - Denial of Service
- Cve: CVE-2021-28040
- Name: OSSEC - Denial of Service
- Description: An issue was discovered in OSSEC 3.6.0. An uncontrolled recursion vulnerability in os_xml.c occurs when a large number of opening and closing XML tags is used. Because recursion is used in _ReadElem without restriction, an attacker can trigger a segmentation fault once unmapped memory is reached.
- Impact: Attackers can cause denial of service by triggering segmentation faults, potentially crashing the system or service.
- Remediation: Update to the latest version of OSSEC where this issue is fixed.
- Vulnerability impact: denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.01192
- Epss percentile: 0.68798
- Assignee: [email protected]
- Published at: 2021-03-05T18:15:13Z
- Age in days: 2090
- Modified at: 2026-06-17T03:45:45Z
- Public exploits total: 1
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-28040
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: vulnerability type, requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-674 | Uncontrolled Recursion |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/ossec/ossec-hids/issues/1953 | nvd | 2021-03-05 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/ossec/ossec-hids/issues/1953 | nvd | Exploit, Issue Tracking, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| ossec:ossec | = 3.6.0 | no | nvd | /v1/products/ossec/ossec |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| ossec/ossec-hids | issues | yes | /v1/repositories/ossec/ossec-hids |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2021-03-05
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts