# CVE-2021-21281: Buffer overflow due to unvalidated TCP data offset

- Severity: High 7.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/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): 0.92%, higher than 61% of CVEs (2026-12-01)
- Published: 2021-06-18T20:25:10.000Z
- Modified: 2026-06-17T03:35:11.187Z
- Weaknesses: CWE-120
- Assigned by: GitHub_M

## Description

Contiki-NG is an open-source, cross-platform operating system for internet of things devices. A buffer overflow vulnerability exists in Contiki-NG versions prior to 4.6. After establishing a TCP socket using the tcp-socket library, it is possible for the remote end to send a packet with a data offset that is unvalidated. The problem has been patched in Contiki-NG 4.6. Users can apply the patch for this vulnerability out-of-band as a workaround.

(As written by CVE List.)

## Affected

- contiki-ng contiki-ng: < 4.6; before 4.6

## Every score

- GitHub_M: CVSS:3.1 7.0 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/contiki-ng/contiki-ng/security/advisories/GHSA-mc42-fqfr-h9fp> (patch, third-party-advisory)
- <https://github.com/contiki-ng/contiki-ng/pull/1366> (patch, third-party-advisory)

## Sources

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

---

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