CVE-2026-130387

Contiki-NG through 5.2 Out-of-Bounds Read via CoAP Observe URI Matching

Published Nov 17, 2026 CVSS 4.0 · 6.9 Medium EPSS n/a KEV · Not listed
Description
Contiki-NG through 5.2 contains an out-of-bounds read vulnerability in coap_remove_observer_by_uri() that allows unauthenticated remote attackers to read past the supplied URI buffer. Attackers can send a CoAP GET Observe request with a Uri-Path shorter than an existing observer's URL, causing memcmp with strlen to read beyond the non-NUL-terminated buffer.

Analysis

AI-generated

Technical impact

The vulnerability is an out‑of‑bounds read in the routine that removes observers by URI in the CoAP observe implementation. An attacker can send a CoAP GET Observe request whose Uri‑Path is shorter than an existing observer’s URL, causing the code to compare the strings with memcmp and strlen without verifying that the supplied buffer is NUL‑terminated. The comparison reads past the end of the buffer, potentially revealing sensitive data that resides in adjacent memory. The flaw is remote and requires no authentication but does need the attacker to be able to deliver a CoAP observe request to the target device.

Affected Systems

Contiki‑NG versions up through 5.2 contain the flaw. The issue resides in the coap-observe component of the Contiki‑NG networking stack and therefore applies to all device builds that use the default CoAP observe functionality compiled from the Contiki‑NG source prior to the 5.3 release.

Risk and Exploitability

The CVSS score of 6.9 places the vulnerability in the moderate‑high range. No EPSS score is available; however, the bug is exploitable over the network without authentication and only requires access to a CoAP observe service. Although it is not listed in the CISA KEV catalog, an attacker could read arbitrary memory contents from the target device. Systems that expose CoAP observe interfaces to untrusted networks face a moderate to high risk of confidentiality compromise until a patch is applied.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update to Contiki‑NG release 5.3 or later to receive the fix that bounds the string comparison in coap_remove_observer_by_uri()
  • If an upgrade is not immediately possible, limit exposure of the CoAP observe service by applying network access controls such as firewall rules that restrict the source IP ranges allowed to send observe requests
  • As a last‑resort temporary mitigation, modify the coap-observe source to ensure the Uri‑Path string is NUL‑terminated before performing a comparison or replace memcmp/strlen with a bounded comparison implementation

Generated by OpenCVE AI on November 17, 2026 at 15:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Contiki-NG through 5.2 contains an out-of-bounds read vulnerability in coap_remove_observer_by_uri() that allows unauthenticated remote attackers to read past the supplied URI buffer. Attackers can send a CoAP GET Observe request with a Uri-Path shorter than an existing observer's URL, causing memcmp with strlen to read beyond the non-NUL-terminated buffer.
Title Contiki-NG through 5.2 Out-of-Bounds Read via CoAP Observe URI Matching
First Time appeared Contiki-ng
Contiki-ng contiki-ng
Weaknesses CWE-125
CPEs cpe:2.3:o:contiki-ng:contiki-ng:*:*:*:*:*:*:*:*
Vendors & Products Contiki-ng
Contiki-ng contiki-ng
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 17, 2026, 2:02 PM
Reserved
Nov 17, 2026, 1:09 AM
Status
Deferred
Published
Nov 17, 2026, 2:17 PM
Modified
Nov 17, 2026, 2:17 PM