CVE-2021-41987
CVE-2021-41987 is a high-severity vulnerability in Mikrotik Routeros with a CVSS 3.x base score of 8.1. Its EPSS exploit-prediction score of 16% places it in the 97th percentile, indicating an elevated likelihood of exploitation. The underlying weakness is classified as CWE-787.
Key facts
- Severity: High (CVSS 3.x base score 8.1)
- CVSS v2: 6.8
- EPSS exploit prediction: 16% (97th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-787
- Affected product: Mikrotik Routeros
- Published:
- Last modified:
Description
In the SCEP Server of RouterOS in certain Mikrotik products, an attacker can trigger a heap-based buffer overflow that leads to remote code execution. The attacker must know the scep_server_name value. This affects RouterOS 6.46.8, 6.47.9, and 6.47.10.
Frequently asked questions
- What is CVE-2021-41987?
- In the SCEP Server of RouterOS in certain Mikrotik products, an attacker can trigger a heap-based buffer overflow that leads to remote code execution. The attacker must know the scep_server_name value. This affects RouterOS 6.46.8, 6.47.9, and 6.47.10.
- How severe is CVE-2021-41987?
- CVE-2021-41987 has a CVSS 3.x base score of 8.1, rated high severity. It is exploitable over network with high attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2021-41987 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 16% (97th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2021-41987?
- CVE-2021-41987 primarily affects Mikrotik Routeros. In total, 3 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2021-41987?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- When was CVE-2021-41987 published?
- CVE-2021-41987 was published on 2022-03-16 and last updated on 2026-06-17.
References
- https://mikrotik.com/download/archive
- https://teamt5.org/en/posts/vulnerability-mikrotik-cve-2021-41987/
Affected products (3)
- cpe:2.3:o:mikrotik:routeros:6.46.8:*:*:*:*:*:*:*
- cpe:2.3:o:mikrotik:routeros:6.47.9:*:*:*:*:*:*:*
- cpe:2.3:o:mikrotik:routeros:6.47.10:*:*:*:*:*:*:*
More vulnerabilities in Mikrotik Routeros
- CVE-2017-20149 — Critical (CVSS 9.8): The Mikrotik RouterOS web server allows memory corruption in releases before Stable 6.38.5 and Long-term 6.37.5, aka…
- CVE-2022-34960 — Critical (CVSS 9.8): The container package in MikroTik RouterOS 7.4beta4 allows an attacker to create mount points pointing to symbolic…
- CVE-2018-7445 — Critical (CVSS 9.8): A buffer overflow was found in the MikroTik RouterOS SMB service when processing NetBIOS session request messages.…
- CVE-2023-30799 — Critical (CVSS 9.1): MikroTik RouterOS stable before 6.49.7 and long-term through 6.48.6 are vulnerable to a privilege escalation issue. A…
- CVE-2018-14847 — Critical (CVSS 9.1): MikroTik RouterOS through 6.42 allows unauthenticated remote attackers to read arbitrary files and remote authenticated…
- CVE-2022-45313 — High (CVSS 8.8): Mikrotik RouterOs before stable v7.5 was discovered to contain an out-of-bounds read in the hotspot process. This…
All CVEs affecting Mikrotik Routeros →
Other CWE-787 (Out-of-bounds Write) vulnerabilities
- CVE-2026-42369 — Critical (CVSS 10.0): GV-VMS V20 is a Video Monitoring Software used to gather the feeds of many surveillance cameras and manage other…
- CVE-2026-4746 — Critical (CVSS 10.0): Out-of-bounds Write vulnerability in timeplus-io proton (base/poco/Foundation/src modules). This vulnerability is…
- CVE-2025-43300 — Critical (CVSS 10.0): An out-of-bounds write issue was addressed with improved bounds checking. This issue is fixed in iOS 15.8.5 and iPadOS…
- CVE-2025-24201 — Critical (CVSS 10.0): An out-of-bounds write issue was addressed with improved checks to prevent unauthorized actions. This issue is fixed in…
- CVE-2024-42479 — Critical (CVSS 10.0): llama.cpp provides LLM inference in C/C++. The unsafe `data` pointer member in the `rpc_tensor` structure can cause…
- CVE-2024-39791 — Critical (CVSS 10.0): Stack-based buffer overflow vulnerabilities affecting Vonets industrial wifi bridge relays and wifi bridge…
Browse all CWE-787 (Out-of-bounds Write) vulnerabilities →
Threat intelligence
Threat-intel indicators referencing this CVE:
- 185.193.240.246 (ipv4-addr)