Skip to content
Heist/ feed
Back to feed
Medium

Resource exhaustion via memory leak in tokio-boring

Type: advisorySources: OSV

The tokio-boring library in version 4.0.0 is affected by a memory leak issue that can lead to excessive resource consumption and potential DoS by resource exhaustion. The set_ex_data function used by the library did not deallocate memory used by pre-existing data in memory each time after completing a TLS connection causing the program to consume more resources with each new connection.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-6180
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 20:15 UTC · Revision 1

Source evidence

Resource exhaustion via memory leak in tokio-boring

core-osv · Original source

Published 5 Dec 2023, 15:02 UTC

The tokio-boring library in version 4.0.0 is affected by a memory leak issue that can lead to excessive resource consumption and potential DoS by resource exhaustion. The set_ex_data function used by the library did not deallocate memory used by pre-existing data in memory each time after completing a TLS connection causing the program to consume more resources with each new connection.

osv:CVE-2023-6180
Complete source record
{
  "id": "e04d505a123f341a47529f560874f6799ee7879316317c9d519ebc460d462ab3",
  "url": "https://osv.dev/vulnerability/CVE-2023-6180",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Resource exhaustion via memory leak in tokio-boring",
    "summary": "The tokio-boring library in version 4.0.0 is affected by a memory leak issue that can lead to excessive resource consumption and potential DoS by resource exhaustion. The set_ex_data function used by the library did not deallocate memory used by pre-existing data in memory each time after completing a TLS connection causing the program to consume more resources with each new connection.",
    "evidence": "osv:CVE-2023-6180",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2023-6180",
      "aliases": [
        "CVE-2023-6180",
        "GHSA-pjrj-h4fg-6gm4"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/cloudflare/boring",
              "type": "GIT",
              "events": [
                {
                  "introduced": "cdb76dcba2cd0f36bc9ba94c1a3b23137a8bbfe5"
                },
                {
                  "last_affected": "2ab71411c19ef6136174152c605cf3511fbbb336"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "4.0.0"
                      },
                      {
                        "last_affected": "4.1.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "cpe": "cpe:2.3:a:cloudflare:boring:4.0.0:*:*:*:*:rust:*:*",
                    "range": [
                      {
                        "introduced": "4.0.0"
                      },
                      {
                        "last_affected": "4.0.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "4.0.0",
            "v4.1.0",
            "v4.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-6180.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:39.021437366Z",
      "provider": "osv",
      "references": [
        "https://github.com/cloudflare/boring/tree/master/tokio-boring",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/6xxx/CVE-2023-6180.json",
        "https://github.com/cloudflare/boring/security/advisories/GHSA-pjrj-h4fg-6gm4",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-6180"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-400",
          "CWE-404"
        ],
        "cna_assigner": "cloudflare",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/6xxx/CVE-2023-6180.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-6180",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 506575,
  "published_at": "2023-12-05T15:02:40.007+00:00"
}