SecurityContext

CVE-2026-21870: BACnet Protocol Stack - Buffer Overflow

  • Cve: CVE-2026-21870
  • Name: BACnet Protocol Stack - Buffer Overflow
  • Description: BACnet Protocol Stack library provides a BACnet application layer, network layer and media access (MAC) layer communications services. In 1.4.2, 1.5.0.rc2, and earlier, an off-by-one stack-based buffer overflow in the ubasic interpreter causes a crash (SIGABRT) when processing string literals longer than the buffer limit. The tokenizer_string function in src/bacnet/basic/program/ubasic/tokenizer.c incorrectly handles null termination for maximum-length strings. It writes a null byte to dest[40] when the buffer size is only 40 (indices 0-39), triggering a stack overflow.
  • Impact: Attackers can cause a denial of service by crashing the application via buffer overflow.
  • Remediation: Update to a version later than 1.5.0.rc2 or the latest available version.
  • Vulnerability type: buffer_overflow
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.5
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
  • Epss score: 0.00273
  • Epss percentile: 0.19791
  • Assignee: [email protected]
  • Published at: 2026-02-13T18:16:19Z
  • Age in days: 284
  • Modified at: 2026-06-17T10:19:03Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-21870
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-193Off-by-one Error

Public exploits

UrlSourceAdded date
https://github.com/bacnet-stack/bacnet-stack/security/advisories/GHSA-pc83-wp6w-93mxnvd2026-02-13

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/bacnet-stack/bacnet-stack/commit/4e1176394a5ae50d2fd0b5790d9bff806dc08465Patch
https://github.com/bacnet-stack/bacnet-stack/pull/1196Patch
https://github.com/bacnet-stack/bacnet-stack/security/advisories/GHSA-pc83-wp6w-93mxExploit, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
bacnetstack:bacnet_stack= 1.5.0 rc2, = 1.5.0 rc1, <= 1.4.2nonvd/v1/products/bacnetstack/bacnet_stack

Projects

RepositoryLink kindsIndexedUrl
bacnet-stack/bacnet-stackcommit, fix, pull, security_advisoryyes/v1/repositories/bacnet-stack/bacnet-stack

Index

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

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2026-02-13
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts