Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2022-27255: Stack-based Buffer Overflow in Realtek eCos RSDK/MSDK SIP ALG

Published Aug 1, 2022 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.8Critical · v3.1
EPSS37.0%99th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendor
Realtek
IdentifiersCVE-2022-27255CWE-121

A stack-based buffer overflow exists in the SIP ALG function of Realtek eCos RSDK 1.5.7p1 and MSDK 4.9.4p1. The vulnerability is triggered when the ALG rewrites SDP data in SIP packets, allowing an attacker to send a specially crafted SIP packet with malicious SDP data that overflows a stack buffer. This can result in remote code execution without authentication.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows an unauthenticated remote attacker to execute arbitrary code on the affected device, potentially leading to full system compromise and further lateral movement within the network.

Mitigation

If you can’t patch tonight, do this now.

Restrict network access to the affected devices, especially from untrusted networks. Use network segmentation and firewall rules to limit exposure. Monitor for abnormal SIP traffic and consider disabling SIP ALG if not needed.

Remediation

Patch, then assume compromise.

Apply firmware updates from Realtek that address the buffer overflow in the SIP ALG function. If no patch is available, disable the SIP ALG feature if it is not required.

Public exploits

Exploits

1 exploit validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.

View more in app →
cve-2022-27255This repository provides a comprehensive exploit toolkit for CVE-2022-27255, a buffer overflow in the Realtek eCos SDK SIP ALG implementation affecting numerous OEM routers. The structure includes: - `analysis/`: Scripts for automated firmware analysis and base address detection, leveraging Ghidra and binwalk to identify vulnerable firmware images. - `exploits_nexxt/`: Contains multiple exploit scripts and PoCs: - `exploit_custom_command_injector/`: A full exploit chain for the Nexxt Nebula 300 Plus router, including a MIPS binary payload (`main.c`/`code.bin`), a Python delivery script (`poc_telnet_custom_cmd.py`), and build/run scripts. This exploit achieves remote code execution by sending a crafted SIP INVITE message with a malicious SDP payload, then leverages a Telnet backdoor to upload and execute arbitrary code on the router. - `exploit_telnet_no_reboot.py` and `exploit_telnet_reboot.py`: Python exploits that deliver MIPS shellcode via the SIP buffer overflow, either providing a Telnet shell or rebooting the device. - `poc_crash.py`: A simple PoC to crash the SIP ALG process, demonstrating the vulnerability. - `ghidra_scripts/`: Ghidra scripts for identifying vulnerable function calls and confirming the presence of the CVE in firmware images. The main attack vector is network-based, exploiting the SIP ALG service (UDP port 5060) on the target router. The exploit scripts are operational and provide remote code execution, with the ability to gain a root shell via Telnet. The repository also includes tools for analyzing and confirming the vulnerability in firmware images, making it a complete toolkit for both exploitation and research.infobyte · Disclosed Jul 6, 2022 · python · c · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
RealtekEcos Msdk Firmwareoperating_system
RealtekEcos Rsdk Firmwareoperating_system
FAQ

Frequently asked questions

Is CVE-2022-27255 exploited in the wild?
As of Oct 16, 2026, Mallory has no reports of CVE-2022-27255 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2022-27255?
Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2022-27255, the earliest disclosed Jul 6, 2022.
Is there a patch for CVE-2022-27255?
Apply firmware updates from Realtek that address the buffer overflow in the SIP ALG function. If no patch is available, disable the SIP ALG feature if it is not required.
What products are affected by CVE-2022-27255?
Realtek Ecos Msdk Firmware and Realtek Ecos Rsdk Firmware.
How severe is CVE-2022-27255?
CVE-2022-27255 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 37.0% (99th percentile) as of Oct 16, 2026.
Activity feed

Recent activity

No public activity tracked yet. Mallory keeps watching.

View more in app →

No public activity observed for this vulnerability.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signatures1YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.