Skip to content
Heist/ feed
Back to feed
CriticalFix available

libtoxcore — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2021-44847

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.

Products
libtoxcore
Affected versions
Not specified
Fixed versions
0.2.13-1
CVEs
CVE-2021-44847
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 01:00 UTC · Revision 1

Source evidence

DEBIAN-CVE-2021-44847

core-osv · Original source

Published 13 Dec 2021, 01:15 UTC

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.

osv:DEBIAN-CVE-2021-44847

libtoxcore

Fixed versions: 0.2.13-1

libtoxcore

Fixed versions: 0.2.13-1

libtoxcore

Fixed versions: 0.2.13-1

Complete source record
{
  "id": "c403edccdc5f8adeddf2928ebf7c996a56a58f7eb747c7cdbe577f41022530bd",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-44847",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2021-44847",
    "summary": "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.",
    "evidence": "osv:DEBIAN-CVE-2021-44847",
    "products": [
      {
        "name": {
          "value": "libtoxcore",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.2.13-1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "libtoxcore",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.2.13-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "libtoxcore",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.2.13-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "DEBIAN-CVE-2021-44847",
      "aliases": [
        "DEBIAN-CVE-2021-44847"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.2.13-1"
                }
              ]
            }
          ],
          "package": {
            "name": "libtoxcore",
            "purl": "pkg:deb/debian/libtoxcore?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-44847.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.2.13-1"
                }
              ]
            }
          ],
          "package": {
            "name": "libtoxcore",
            "purl": "pkg:deb/debian/libtoxcore?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-44847.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.2.13-1"
                }
              ]
            }
          ],
          "package": {
            "name": "libtoxcore",
            "purl": "pkg:deb/debian/libtoxcore?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-44847.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-23T18:04:00.590801681Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-44847"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2021-44847"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-44847",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 422932,
  "published_at": "2021-12-13T01:15:07.73+00:00"
}