SecurityContext

CVE-2021-21281: Contiki-NG - Buffer Overflow

  • Cve: CVE-2021-21281
  • Name: Contiki-NG - Buffer Overflow
  • 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.
  • Impact: Remote attackers can cause buffer overflow, potentially leading to arbitrary code execution or system crash.
  • Remediation: Update to version 4.6 or apply the out-of-band patch.
  • Vulnerability type: buffer_overflow
  • Vulnerability impact: remote_code_execution, denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00918
  • Epss percentile: 0.60981
  • Assignee: [email protected]
  • Published at: 2021-06-18T21:15:07Z
  • Age in days: 1985
  • Modified at: 2026-06-17T03:35:11Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-21281
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-120Buffer Copy without Checking Size of Input

References

UrlSourceTags
https://github.com/contiki-ng/contiki-ng/pull/1366nvdPatch, Third Party Advisory
https://github.com/contiki-ng/contiki-ng/security/advisories/GHSA-mc42-fqfr-h9fpnvdPatch, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
contiki-ng:contiki-ng< 4.6nonvd/v1/products/contiki-ng/contiki-ng

Projects

RepositoryLink kindsIndexedUrl
contiki-ng/contiki-ngpull, security_advisoryyes/v1/repositories/contiki-ng/contiki-ng

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts