CVE-2024-35313: Tor circmgr Tor Path Lengths Too Short Vulnerability

MODERATE
Advisory Identifier: GHSA-c96h-cxx6-rmg9
CVSS 5.9
CWE-130 CWE-754
Published
Advisory Summary

CVE-2024-35313 is a MODERATE (CVSS 5.9) tor path lengths too short vulnerability (CWE-130: Improper Handling of Length Parameter Inconsistency) affecting Tor circmgr libraries in the crates.io ecosystem. The issue involves tor path lengths too short when "full vanguards" configured. Remediation is available by upgrading affected packages to version 0.18.1, 1.2.3.

CVE-2024-35313 at a Glance

CVE Identifier CVE-2024-35313
GHSA Identifier GHSA-c96h-cxx6-rmg9
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-130: Improper Handling of Length Parameter Inconsistency
Affected Product Tor circmgr
Package Ecosystem crates.io
Published Date
Last Updated

Security Impact

CVSS: 5.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2024-35313

To remediate this vulnerability, upgrade all affected Tor circmgr dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

tor-circmgr fixed: 0.18.1
Upgrade tor-circmgr to 0.18.1
arti fixed: 1.2.3
Upgrade arti to 1.2.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for tor-circmgr

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-35313, inspect your project dependencies for Tor circmgr:

inspect dependencies for tor-circmgr

Analyze the terminal output to locate any version of Tor circmgr in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.18.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-130: Improper Handling of Length Parameter Inconsistency, where the product parses a formatted message or structure, but it does not handle or incorrectly handles a length field that is inconsistent with the actual length of the associated data. In Tor circmgr, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

In Tor Arti before 1.2.3, circuits sometimes incorrectly have a length of 3 (with full vanguards), aka TROVE-2024-004.

CVE-2024-35313 Affected Tor circmgr Versions

2 component(s)
Fixed Versions:
0.18.11.2.3
Product / Package Ecosystem Affected Versions Fixed Version
tor-circmgr
crates.io
≥ 0.18.0
< 0.18.1
All 1 versions
0.18.0
0.18.1
arti
crates.io
≥ 1.2.2
< 1.2.3
All 1 versions
1.2.2
1.2.3

References

Frequently Asked Questions

What is CVE-2024-35313?
CVE-2024-35313 is a security vulnerability in Tor circmgr involving Tor path lengths too short when "full Vanguards" configured under CWE-130: Improper Handling of Length Parameter Inconsistency.
Which Tor circmgr versions are affected?
Affected versions include releases prior to 0.18.1, 1.2.3 across affected packages: tor-circmgr, arti.
What version fixes CVE-2024-35313?
Upgrading to 0.18.1, 1.2.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is tor-circmgr affected?
Yes, tor-circmgr is affected in releases prior to 0.18.1. Upgrade your dependency to 0.18.1 or later.
Is arti affected?
Yes, arti is affected in releases prior to 1.2.3. Upgrade your dependency to 1.2.3 or later.
What is the CVSS score of CVE-2024-35313?
CVE-2024-35313 has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2024-35313?
CVE-2024-35313 is classified under CWE-130: Improper Handling of Length Parameter Inconsistency (The product parses a formatted message or structure, but it does not handle or incorrectly handles a length field that is inconsistent with the actual length of the associated data.).
How can I check crates.io dependencies for CVE-2024-35313?
Run the dependency tree command: 'inspect dependencies for tor-circmgr'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-c96h-cxx6-rmg9",
  "modified" : "2025-03-27T18:40:05Z",
  "published" : "2024-05-18T00:30:42Z",
  "aliases" : [ "CVE-2024-35313" ],
  "summary" : "Tor path lengths too short when \"full Vanguards\" configured",
  "details" : "In Tor Arti before 1.2.3, circuits sometimes incorrectly have a length of 3 (with full vanguards), aka TROVE-2024-004.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "tor-circmgr"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.18.0"
      }, {
        "fixed" : "0.18.1"
      } ]
    } ],
    "versions" : [ "0.18.0" ]
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "arti"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.2.2"
      }, {
        "fixed" : "1.2.3"
      } ]
    } ],
    "versions" : [ "1.2.2" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-35313"
  }, {
    "type" : "PACKAGE",
    "url" : "https://gitlab.torproject.org/tpo/core/arti"
  }, {
    "type" : "WEB",
    "url" : "https://gitlab.torproject.org/tpo/core/arti/-/blob/main/CHANGELOG.md#arti-123-15-may-2024"
  }, {
    "type" : "WEB",
    "url" : "https://gitlab.torproject.org/tpo/core/arti/-/commit/1a89d5c9659d799a84dd3ff00fae530f5c8ba280"
  }, {
    "type" : "WEB",
    "url" : "https://gitlab.torproject.org/tpo/core/arti/-/issues/1400"
  }, {
    "type" : "WEB",
    "url" : "https://gitlab.torproject.org/tpo/core/arti/-/issues/1409"
  }, {
    "type" : "WEB",
    "url" : "https://gitlab.torproject.org/tpo/core/team/-/wikis/NetworkTeam/TROVE"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2024-0339.html"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2024-0340.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-130", "CWE-754" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-20T16:37:19Z",
    "nvd_published_at" : "2024-05-17T22:15:07Z"
  }
}