BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2021-41987 in Mikrotik Routeros

High 8.1

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.

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.18.1
EPSS16.2%
EPSS percentile98th
FixSee advisory

Remotely exploitable over the network, high complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Mikrotik Routeros 6.46.8 6.47.9 6.47.10

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

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2021-41987
BreachSpider IDBS-2022-GLOBAL-298931-H
CVSS vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Published2022-03-16
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-787: Out-of-Bounds Write

Software writes data past buffer boundaries, corrupting memory and potentially enabling code execution.

Analysis AI-written, not human-reviewed

A heap-based buffer overflow vulnerability in the SCEP Server of RouterOS in certain Mikrotik products can lead to remote code execution if the attacker knows the scep_server_name value.

The vulnerability is triggered by a heap-based buffer overflow in the SCEP Server component of RouterOS. An attacker can exploit this by sending a specially crafted request to the SCEP Server, provided they know the scep_server_name value.

Questions

What is CVE-2021-41987?

A heap-based buffer overflow vulnerability in the SCEP Server of RouterOS in certain Mikrotik products can lead to remote code execution if the attacker knows the scep_server_name value.

What is the CVSS score for CVE-2021-41987?

CVE-2021-41987 has CVSS 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 16.2%.

Is CVE-2021-41987 actively exploited?

No confirmed active exploitation of CVE-2021-41987 as of 2026-09-25.

How do I remediate CVE-2021-41987?

Priority: IMMEDIATE. Advisory: https://mikrotik.com/download/archive PSIRT: [email protected]

What systems are affected by CVE-2021-41987?

CVE-2021-41987 affects Mikrotik Routeros.

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":"Mikrotik","product":"Routeros","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.