Cyber Resilience

CVE-2020-24336

Memory Safety in Contiki-Ng ≤ 4.5

High EPSSMemory Safety
Published
11 December 2020
Modified
21 November 2024
CVSS Score v3.1 9.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.59 99.0th percentile
Risk Priority 89 floored blend · peak EPSS

Summary

CVE-2020-24336 is a critical-severity Classic Buffer Overflow (CWE-120) vulnerability in Contiki-Ng Contiki-Ng. Its CVSS base score is 9.8 (Critical).

Operationally, ranked in the top 1.0% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.

EU & UK References

Vulnerability Data

An issue was discovered in Contiki through 3.0 and Contiki-NG through 4.5. The code for parsing Type A domain name answers in ip64-dns64.c doesn't verify whether the address in the answer's length is sane. Therefore, when copying an address of…

more

an arbitrary length, a buffer overflow can occur. This bug can be exploited whenever NAT64 is enabled.

CWE(s)

Related Threats

Likely ATT&CK TechniquesAI

Techniques this vulnerability likely enables, inferred from its description, weakness type, and attributed-actor tradecraft. Confidence is per-technique.

T1190 Exploit Public-Facing Application Initial Accessconfidence: HIGH
Buffer overflow in DNS answer parsing enables remote code execution against a publicly reachable NAT64 service.
inferred from description + CWE · MITRE ATT&CK Enterprise v19.0

CVEs Like This One

CVE-2023-28116Same product: Contiki-Ng Contiki-Ng
CVE-2023-50926Same product: Contiki-Ng Contiki-Ng
CVE-2023-37281Same product: Contiki-Ng Contiki-Ng
CVE-2023-23609Same product: Contiki-Ng Contiki-Ng
CVE-2023-48229Same product: Contiki-Ng Contiki-Ng
CVE-2023-34101Same product: Contiki-Ng Contiki-Ng
CVE-2023-50927Same product: Contiki-Ng Contiki-Ng
CVE-2023-34100Same product: Contiki-Ng Contiki-Ng
CVE-2023-31129Same product: Contiki-Ng Contiki-Ng
CVE-2023-37459Same product: Contiki-Ng Contiki-Ng

Affected Assets

contiki-ng
contiki-ng
≤ 4.5
contiki-os
contiki
≤ 3.0

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)
  • V5.2.1

Likely Mitigating Controls AI

Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.

addresses: CWE-120

Platform-independent managed code eliminates the need for unchecked native buffer copies that are the root cause of classic buffer overflows.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

Secure development practices directly enforce bounds checking and input validation that prevent classic buffer overflows.

ID.RA-01 partial match
prevents

Vulnerability identification processes such as code review or scanning detect classic buffer overflows before exploitation.

PR.PS-02 partial match
prevents

Routine patching replaces vulnerable code containing unchecked buffer copies with corrected versions.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

prevents

Secure coding directly requires bounds-checked memory operations, addressing the root cause of CWE-120.

detects

Security testing in development and acceptance can detect buffer overflows through fuzzing and static analysis, though it does not prevent them at the source.

prevents

Secure development life cycle mandates processes that can include input validation and bounds checking to prevent buffer overflows.

prevents

Application security requirements can specify input-size validation and safe buffer handling to mitigate classic buffer overflows.

prevents

Secure system architecture and engineering principles promote defensive coding patterns that reduce the likelihood of unchecked buffer copies.

References