{"api_version":"1","generated_at":"2026-07-23T21:14:58+00:00","cve":"CVE-2021-21281","urls":{"html":"https://cve.report/CVE-2021-21281","api":"https://cve.report/api/cve/CVE-2021-21281.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-21281","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-21281"},"summary":{"title":"CVE-2021-21281","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2021-06-18 21:15:00","updated_at":"2021-06-24 16:47:00"},"problem_types":["CWE-120"],"metrics":[],"references":[{"url":"https://github.com/contiki-ng/contiki-ng/security/advisories/GHSA-mc42-fqfr-h9fp","name":"https://github.com/contiki-ng/contiki-ng/security/advisories/GHSA-mc42-fqfr-h9fp","refsource":"CONFIRM","tags":[],"title":"Buffer overflow due to unvalidated TCP data offset · Advisory · contiki-ng/contiki-ng · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/contiki-ng/contiki-ng/pull/1366","name":"https://github.com/contiki-ng/contiki-ng/pull/1366","refsource":"MISC","tags":[],"title":"Verify the TCP data offset to avoid uip_len overflows. by nvt · Pull Request #1366 · contiki-ng/contiki-ng · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-21281","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21281","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"21281","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"contiki-ng","cpe5":"contiki-ng","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-21281","STATE":"PUBLIC","TITLE":"Buffer overflow due to unvalidated TCP data offset"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"contiki-ng","version":{"version_data":[{"version_value":"< 4.6"}]}}]},"vendor_name":"contiki-ng"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7,"baseSeverity":"HIGH","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')"}]}]},"references":{"reference_data":[{"name":"https://github.com/contiki-ng/contiki-ng/security/advisories/GHSA-mc42-fqfr-h9fp","refsource":"CONFIRM","url":"https://github.com/contiki-ng/contiki-ng/security/advisories/GHSA-mc42-fqfr-h9fp"},{"name":"https://github.com/contiki-ng/contiki-ng/pull/1366","refsource":"MISC","url":"https://github.com/contiki-ng/contiki-ng/pull/1366"}]},"source":{"advisory":"GHSA-mc42-fqfr-h9fp","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2021-06-18 21:15:00","lastModifiedDate":"2021-06-24 16:47:00","problem_types":["CWE-120"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":7.5},"severity":"HIGH","exploitabilityScore":10,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:contiki-ng:contiki-ng:*:*:*:*:*:*:*:*","versionEndExcluding":"4.6","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"21281","Ordinal":"195407","Title":"CVE-2021-21281","CVE":"CVE-2021-21281","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"21281","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"21281","Ordinal":"2","NoteData":"2021-06-18","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"21281","Ordinal":"3","NoteData":"2021-06-18","Type":"Other","Title":"Modified"}]}}}