CVE-2021-21970 Memory corruption in Sealevel
An out-of-bounds write in the SeaConnect 370W allows attackers to execute arbitrary code via crafted MQTT messages.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-21970?
CVE-2021-21970 is a low-severity memory corruption vulnerability in Sealevel, published on 4 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An out-of-bounds write vulnerability exists in the HandleSeaCloudMessage functionality of Sealevel Systems, Inc. SeaConnect 370W v1.3.34. The HandleIncomingSeaCloudMessage function uses at [3] the json_object_get_string to populate the p_name global variable. The p_name is only 0x80 bytes long, and the total MQTT message could be up to 0x201 bytes. Because the function json_object_get_string will fill str based on the length of the json’s value and not the actual str size, this would result in a possible out-of-bounds write.
Which versions are affected by CVE-2021-21970?
It affects 1 product.
Products include Sealevel Seaconnect 370w Firmware.
How do I fix CVE-2021-21970?
No fix has been published for CVE-2021-21970 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2021-21970 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-21970 exists.
Other vulnerabilities in Sealevel
Sources
Also known as GHSA-4prh-62v9-32q3.