CVE-2023-37281

Out-of-bounds read during IPHC address decompression

Description

Contiki-NG is an operating system for internet-of-things devices. In versions 4.9 and prior, when processing the various IPv6 header fields during IPHC header decompression, Contiki-NG confirms the received packet buffer contains enough data as needed for that field. But no similar check is done before decompressing the IPv6 address. Therefore, up to 16 bytes can be read out of bounds on the line with the statement `memcpy(&ipaddr->u8[16 - postcount], iphc_ptr, postcount);`. The value of `postcount` depends on the address compression used in the received packet and can be controlled by the attacker. As a result, an attacker can inject a packet that causes an out-of-bound read. As of time of publication, a patched version is not available. As a workaround, one can apply the changes in Contiki-NG pull request #2509 to patch the system.

Category

5.3
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.19%
Vendor Advisory github.com
Affected: contiki-ng contiki-ng
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2023-37281?
CVE-2023-37281 has been scored as a medium severity vulnerability.
How to fix CVE-2023-37281?
To fix CVE-2023-37281, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2023-37281 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2023-37281 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-37281?
CVE-2023-37281 affects contiki-ng contiki-ng.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.