Out-of-bounds Write Affecting libtoxcore package, versions <0.2.13-1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
3.95% (90th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2510-LIBTOXCORE-15735914
  • published21 Mar 2026
  • disclosed13 Dec 2021

Introduced: 13 Dec 2021

CVE-2021-44847  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade Ubuntu:25.10 libtoxcore to version 0.2.13-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libtoxcore package and not the libtoxcore package as distributed by Ubuntu. See How to fix? for Ubuntu:25.10 relevant fixed versions and status.

A stack-based buffer overflow in handle_request function in DHT.c in toxcore 0.1.9 through 0.1.11 and 0.2.0 through 0.2.12 (caused by an improper length calculation during the handling of received network packets) allows remote attackers to crash the process or potentially execute arbitrary code via a network packet.

CVSS Base Scores

version 3.1