CVE-2020-24331
NixOS vulnerability analysis and mitigation

Overview

An issue was discovered in TrouSerS through 0.3.14, identified as CVE-2020-24331. The vulnerability exists when the tcsd daemon is started with root privileges, where the tss user retains read and write access to the /etc/tcsd.conf file, which contains various settings related to this daemon. This vulnerability was discovered and reported in August 2020 (OSS Security).

Technical details

The vulnerability stems from improper privilege management in the TrouSerS implementation. The configuration file /etc/tcsd.conf is required by the tcsd daemon to be owned by tss:tss with mode 0600, allowing the unprivileged tss user to modify all daemon-related settings, including critical paths like system_ps_file. The issue has been assigned a CVSS v3.1 base score of 7.8 (HIGH) with vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

The vulnerability allows the unprivileged tss user to modify daemon settings through the configuration file, which could lead to unauthorized access to system resources and potential security compromises. Since the configuration file contains various daemon settings, an attacker could manipulate these settings to affect the daemon's behavior and potentially compromise system security (SUSE Bugzilla).

Mitigation and workarounds

The recommended mitigation is to run the tcsd daemon as the tss:tss user and group directly, rather than relying on the privilege drop logic implemented in the daemon. This requires setting up a udev rule to pass ownership of the /dev/tpm0 device to the tss user. For systems where this is not possible, the configuration file /etc/tcsd.conf should be owned by root:tss with mode 0640 to prevent unauthorized modifications. A patch has been released that adds O_NOFOLLOW to prevent symlink attacks and implements proper privilege dropping (Fedora Update).

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-2026-68981HIGH8.8
  • NixOS logoNixOS
  • cpe:2.3:a:apache:nifi
NoYesAug 03, 2026
CVE-2026-69153MEDIUM6.3
  • JavaScript logoJavaScript
  • unleash-server
NoYesAug 03, 2026
CVE-2026-68979MEDIUM5.9
  • NixOS logoNixOS
  • cpe:2.3:a:apache:nifi
NoYesAug 03, 2026
CVE-2026-64640MEDIUM5.3
  • Python logoPython
  • polaris
NoYesAug 06, 2026
CVE-2026-68980LOW2.3
  • NixOS logoNixOS
  • cpe:2.3:a:apache:nifi
NoYesAug 03, 2026

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