8.1
HIGH
CVE-2021-41987
Mikrotik RouterOS SCEP Server Heap-Based Buffer Overflow
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.

INFO

Published Date :

March 16, 2022, 3:15 p.m.

Last Modified :

June 30, 2022, 7:32 p.m.

Remotely Exploitable :

Yes !

Impact Score :

5.9

Exploitability Score :

2.2
Affected Products

The following products are affected by CVE-2021-41987 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Mikrotik routeros
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2021-41987.

URL Resource
https://mikrotik.com/download/archive Release Notes Vendor Advisory
https://teamt5.org/en/posts/vulnerability-mikrotik-cve-2021-41987/ Exploit Third Party Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2021-41987 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2021-41987 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Modified Analysis by [email protected]

    Jun. 30, 2022

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:o:mikrotik:routeros:6.46:*:*:*:*:*:*:* *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:*:*:*:*:*:*:* OR *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:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Mar. 29, 2022

    Action Type Old Value New Value
    Changed 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 control the SCEP server for a valid certificate. This affects mikrotik-vm-6.46, mikrotik-vm-6.46.8, mikrotik-tile-6.46.8, mikrotik-6.47.9, and mikrotik-6.47.10. 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.
  • Initial Analysis by [email protected]

    Mar. 28, 2022

    Action Type Old Value New Value
    Added CVSS V2 NIST (AV:N/AC:M/Au:N/C:P/I:P/A:P)
    Added CVSS V3.1 NIST AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://mikrotik.com/download/archive No Types Assigned https://mikrotik.com/download/archive Release Notes, Vendor Advisory
    Changed Reference Type https://teamt5.org/en/posts/vulnerability-mikrotik-cve-2021-41987/ No Types Assigned https://teamt5.org/en/posts/vulnerability-mikrotik-cve-2021-41987/ Exploit, Third Party Advisory
    Added CWE NIST CWE-787
    Added CPE Configuration OR *cpe:2.3:o:mikrotik:routeros:6.46:*:*:*:*:*:*:* *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:*:*:*:*:*:*:*
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2021-41987 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2021-41987 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.44 }} 0.06%

score

0.75340

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability