# CVE-2023-37281: Out-of-bounds read during IPHC address decompression

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- 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): 0.46%, higher than 41% of CVEs (2026-12-01)
- Published: 2023-09-15T19:17:53.739Z
- Modified: 2026-06-17T06:07:52.850Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- contiki-ng contiki-ng: <= 4.9; up to 4.9

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://github.com/contiki-ng/contiki-ng/security/advisories/GHSA-2v4c-9p48-g9pr> (vendor-advisory)
- <https://github.com/contiki-ng/contiki-ng/pull/2509> (issue-tracking, patch)

## Sources

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

---

Page: https://cve.day/CVE-2023-37281 · Whole record: https://cve.day/CVE-2023-37281.json · Rebuilt by cve.day 2026-11-25T22:58:27.939Z
