CVE-2024-35312
JSON

6.2medium

Tor Arti's STUB circuits incorrectly have a length of 2

Severity
6.2medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.19% (higher than 8% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-9328-gcfq-p269GHSA-c96h-cxx6-rmg9RUSTSEC-2024-0339RUSTSEC-2024-0340TROVE-2024-003TROVE-2024-004

Description

In Tor Arti before 1.2.3, STUB circuits incorrectly have a length of 2 (with lite vanguards), aka TROVE-2024-003.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
arti (crates.io)from 1.2.2 before 1.2.3GitHub Advisory Database
tor-circmgr (crates.io)from 0.18.0 before 0.18.1GitHub Advisory Database, RustSec Advisory Database

All scores

CISA-ADP6.2medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-130CWE-670CWE-754

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In Tor Arti before 1.2.3, STUB circuits incorrectly have a length of 2 (with lite vanguards), aka TROVE-2024-003.

GitHub Advisory Database

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

RustSec Advisory Database

Description

When building anonymizing circuits to or from an onion service with 'lite' vanguards (the default) enabled, the circuit manager code would build the circuits with one hop too few.

Impact

This makes users of this code more vulnerable to some kinds of traffic analysis when they run or visit onion services.

Vulnerable configurations and use cases

Arti configured with "vangaurds lite" is vulnerable; this is the default.

Only users who make connections to Onion Services (Tor Hidden Services) are affected. Note, however, that when used as a browser proxy, malicious web pages can typically make such connections.

Mitigation

Enable the "full vanguards" feature. This has some cost in terms of performance, reliability, and impact on the Tor Network.

(Arti configured with "full vanguards" has a similar bug, TROVE-2024-04, so this will not deliver the full incressed security of "full vanguards"; but the security level of affected versions of Arti configured with "full vanguards" still exceeds the intended security level of the "vanguards lite" configuration.)

Alternatively, preventing access to Tor Hidden Services will avoid the problem, with corresponding loss of functionality. This can be achieved in the Arti configuration file with:

[address_filter]
allow_onion_addrs = false

Resolution

Rebuild arti (or other affected applications) with a fixed version of tor-circmgr: 0.18.1 or later.

The fixed tor-circmgr is on crates.io and available in the upstream git repository at signed tag arti-v1.2.3.

Note about older versions

Even though earlier versions are classified as "not affected", this is because in those versions the Vanguards feature is experimental, or absent. Downgrading worsens security, rather than improving it.

References

  • arti#1409: the ticket in the Arti bugtracker.
  • TROVE Tor Project vulnerability database.
  • arti#1400: the similar bug with the full vanguards feature.
RustSec Advisory Database

Description

When building anonymizing circuits to or from an onion service with full vanguards enabled, the circuit manager code would build the circuits with one hop too few.

Impact

This makes users of this code more vulnerable to some kinds of traffic analysis when they run or visit onion services.

Vulnerable configurations and use cases

Arti configured with "full vangaurds" is vulnerable.

Only users who make connections to Onion Services (Tor Hidden Services) are affected. Note, however, that when used as a browser proxy, malicious web pages can typically make such connections.

Mitigation

Preventing access to Tor Hidden Services will avoid the problem, with corresponding loss of functionality. This can be achieved in the Arti configuration file with:

[address_filter]
allow_onion_addrs = false

Changing the configuration (eg to turn off vanguards) reclassifies the behaviour as "as configured", but reduces security rather than improving it, so is not a mitigation.

Resolution

Rebuild arti (or other affected applications) with a fixed version of tor-circmgr: 0.18.1 or later.

The fixed tor-circmgr is on crates.io and available in the upstream git repository at signed tag arti-v1.2.3.

Note about older versions

Even though earlier versions are classified as "not affected", this is because in those versions the Vanguards feature is experimental, or absent. Downgrading worsens security, rather than improving it.

References

  • arti#1400: the ticket in the Arti bugtracker.
  • TROVE Tor Project vulnerability database.
  • arti#1409: the similar bug with the vanguards lite feature.
NVD (es)

En Tor Arti anterior a 1.2.3, los circuitos STUB tenían incorrectamente una longitud de 2 (con vanguardias ligeras), también conocido como TROVE-2024-003.

References

https://gitlab.torproject.org/tpo/core/arti/-/issues/1409report, web
https://nvd.nist.gov/vuln/detail/CVE-2024-35312advisory
https://gitlab.torproject.org/tpo/core/artipackage
https://gitlab.torproject.org/tpo/core/arti/-/blob/main/CHANGELOG.md#arti-123-15-may-2024web
https://gitlab.torproject.org/tpo/core/arti/-/commit/da95138c14f762c706e46e89c6adfa46fcd5252cweb
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2145web
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2154web
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2156web
https://gitlab.torproject.org/tpo/core/team/-/wikis/NetworkTeam/TROVEweb
https://rustsec.org/advisories/RUSTSEC-2024-0339.htmladvisory, web
https://nvd.nist.gov/vuln/detail/CVE-2024-35313advisory
https://gitlab.torproject.org/tpo/core/arti/-/commit/1a89d5c9659d799a84dd3ff00fae530f5c8ba280web

Related

Sources

SourceRecordLicence
CVE ListCVE-2024-35312 changed 2025-02-13CVE Terms of Use
GitHub Advisory DatabaseGHSA-9328-gcfq-p269 changed 2024-11-04CC-BY-4.0
GitHub Advisory DatabaseGHSA-c96h-cxx6-rmg9 changed 2025-03-27CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2024-0339 changed 2026-02-04CC0-1.0
RustSec Advisory DatabaseRUSTSEC-2024-0340 changed 2026-02-04CC0-1.0
NVDCVE-2024-35312 changed 2026-06-17Public domain