MikroTik RouterOS Out-of-bounds Write (CVE-2021-41987)

high Tenable OT Security Plugin ID 502081

Synopsis

The remote OT asset is affected by a vulnerability.

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.

This plugin only works with Tenable.ot.
Please visit https://www.tenable.com/products/tenable-ot for more information.

Solution

Refer to the vendor advisory.

See Also

https://mikrotik.com/download/archive

https://teamt5.org/en/posts/vulnerability-mikrotik-cve-2021-41987/

Plugin Details

Severity: High

ID: 502081

Version: 1.1

Type: remote

Family: Tenable.ot

Published: 2/27/2024

Updated: 2/28/2024

Supported Sensors: Tenable OT Security

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5.3

Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2021-41987

CVSS v3

Risk Factor: High

Base Score: 8.1

Temporal Score: 7.3

Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: cpe:/o:mikrotik:routeros:6.47.9, cpe:/o:mikrotik:routeros:6.47.10, cpe:/o:mikrotik:routeros:6.46.8

Required KB Items: Tenable.ot/MikroTik

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 3/16/2022

Vulnerability Publication Date: 3/16/2022

Reference Information

CVE: CVE-2021-41987

CWE: 787