CVE-2024-35313: Tor circmgr Tor Path Lengths Too Short Vulnerability
MODERATECVE-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
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).
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.
Upgrade tor-circmgr to 0.18.1
Upgrade arti to 1.2.3
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
CVE-2024-35313 Affected Tor circmgr Versions
2 component(s)| 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?
Which Tor circmgr versions are affected?
What version fixes CVE-2024-35313?
Is tor-circmgr affected?
Is arti affected?
What is the CVSS score of CVE-2024-35313?
What CWE is associated with CVE-2024-35313?
How can I check crates.io dependencies for CVE-2024-35313?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}