CVE-2023-23589
NixOS vulnerability analysis and mitigation

Overview

The SafeSocks option in Tor before 0.4.7.13 contains a logic error (CVE-2023-23589, also known as TROVE-2022-002) discovered in January 2023. This vulnerability affects the SOCKS protocol implementation where the unsafe SOCKS4 protocol can be used but not the safe SOCKS4a protocol (Tor Commit, NVD).

Technical details

The vulnerability stems from an inverted logic in the SOCKS protocol implementation. The issue was introduced in commit 9155e084, where the code incorrectly processes SOCKS4 and SOCKS4a requests. When SafeSocks is set to 1, the system does the opposite of what it should, ensuring users make only unsafe requests instead of safe ones. The vulnerability has a CVSS v3.1 base score of 6.5 (MEDIUM) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N (NVD).

Impact

The vulnerability leads to DNS leaks that occur under a configuration intended to guard against such possibilities. Users configuring SOCKS4 applications that don't support SOCKS4a would be led to believe their traffic is fully secured, when DNS requests are actually being leaked. Additionally, users configuring applications that support SOCKS4a could be misled into selecting SOCKS4 instead, as Tor will error out if they try to use the safe configuration (Tor Issue).

Mitigation and workarounds

The vulnerability was fixed in Tor version 0.4.7.13. Users are strongly recommended to upgrade to this version or later. Various distributions have released security updates including Debian (version 0.4.5.16-1 for bullseye), Fedora (version 0.4.7.13-1), and Gentoo (version >= 0.4.7.13) (Debian Advisory, Fedora Update, Gentoo Advisory).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-48606HIGH7.8
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48639HIGH7.3
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48625HIGH7
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48608MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48569MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management