# 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…

- Severity: High 8.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 16.2%, higher than 97% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-03-16T14:44:58.000Z
- Modified: 2026-06-17T04:09:06.847Z
- Weaknesses: CWE-787
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- mikrotik routeros: 6.46.8; 6.47.9; 6.47.10

## Every score

- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://teamt5.org/en/posts/vulnerability-mikrotik-cve-2021-41987/> (exploit, third-party-advisory)
- <https://mikrotik.com/download/archive> (release-notes, vendor-advisory)

## Sources

- CVE List: [CVE-2021-41987](https://www.cve.org/CVERecord?id=CVE-2021-41987), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-41987](https://nvd.nist.gov/vuln/detail/CVE-2021-41987), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-41987 · Whole record: https://cve.day/CVE-2021-41987.json · Rebuilt by cve.day 2026-11-25T22:58:07.223Z
