Vulnerability Details : CVE-2021-28040
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.
Vulnerability category: Memory Corruption
Exploit prediction scoring system (EPSS) score for CVE-2021-28040
Probability of exploitation activity in the next 30 days: 0.10%
Percentile, the proportion of vulnerabilities that are scored at or less: ~ 40 % EPSS Score History EPSS FAQ
CVSS scores for CVE-2021-28040
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source |
---|---|---|---|---|---|
5.0
|
MEDIUM | AV:N/AC:L/Au:N/C:N/I:N/A:P |
10.0
|
2.9
|
NIST |
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
3.9
|
3.6
|
NIST |
CWE ids for CVE-2021-28040
-
The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.Assigned by: nvd@nist.gov (Primary)
References for CVE-2021-28040
-
https://github.com/ossec/ossec-hids/issues/1953
os_xml _ReadElem() - Uncontrolled recursion vulnerability leading to DoS (SIGSEGV) · Issue #1953 · ossec/ossec-hids · GitHubExploit;Issue Tracking;Third Party Advisory
Products affected by CVE-2021-28040
- cpe:2.3:a:ossec:ossec:3.6.0:*:*:*:*:*:*:*