Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: 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
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-44847
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:02 UTC · Revision 1

Source evidence

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:CVE-2021-44847
Complete source record
{
  "id": "0226db6f4ae7d0d353335c10b706841b1470a721209ad897664ab5dab30ac5bf",
  "url": "https://osv.dev/vulnerability/CVE-2021-44847",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "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:CVE-2021-44847",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2021-44847",
      "aliases": [
        "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": [
            {
              "repo": "https://github.com/toktok/c-toxcore",
              "type": "GIT",
              "events": [
                {
                  "introduced": "a429ef4a28a5e5e0ad010efffb76d2abc3ada0af"
                },
                {
                  "last_affected": "fc0cc08b2115d037551369f69519e95e841643aa"
                },
                {
                  "introduced": "5a45008ab91a65ab6c907efebf822612a17a639f"
                },
                {
                  "last_affected": "9be4dbb4335bf7d893c8d00566d3276ab6dedd14"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:toktok:toxcore:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.1.9"
                      },
                      {
                        "last_affected": "0.1.11"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:toktok:toxcore:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.2.0"
                      },
                      {
                        "last_affected": "0.2.12"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.2.12",
            "v0.2.11",
            "v0.2.10",
            "v0.2.9",
            "v0.2.8",
            "v0.2.7",
            "v0.2.6",
            "v0.2.5",
            "v0.2.4",
            "v0.2.3",
            "v0.2.2",
            "v0.2.1",
            "v0.2.0",
            "v0.1.11",
            "v0.1.10",
            "v0.1.9"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-44847.json"
          }
        }
      ],
      "modified": "2026-10-20T10:55:06.809222515Z",
      "provider": "osv",
      "references": [
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S7EBS3NIRYJ7V3PTNINP3PJSVUHGZTGA/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZLTKINSPO5T65LB3ZASDPCREKUE22RYE/",
        "https://github.com/TokTok/c-toxcore/pull/1718"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "34"
                  },
                  {
                    "last_affected": "34"
                  },
                  {
                    "introduced": "35"
                  },
                  {
                    "last_affected": "35"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-44847",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 386911,
  "published_at": "2021-12-13T01:15:07.73+00:00"
}