CVE-2021-44512
Linux Debian vulnerability analysis and mitigation

Overview

World-writable permissions on the /tmp/tmate/sessions directory in tmate-ssh-server 2.3.0 were identified as a security vulnerability (CVE-2021-44512). The vulnerability was discovered and disclosed in December 2021, affecting the tmate terminal sharing software's server component. This security issue impacts systems running tmate-ssh-server version 2.3.0 and earlier (NVD, OSS Security).

Technical details

The vulnerability stems from incorrect permission assignments on the /tmp/tmate/sessions directory, which was configured with world-writable permissions. The CVSS v3.1 base score is 7.0 (HIGH) with the vector string CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H. The vulnerability is classified under CWE-732 (Incorrect Permission Assignment for Critical Resource). The issue specifically relates to the directory permissions being set to world-writable, allowing unauthorized access to session handling mechanisms (NVD).

Impact

The vulnerability allows local attackers to compromise the integrity of session handling or obtain read-write session IDs from read-only session symlinks in the affected directory. This could potentially lead to unauthorized access to terminal sessions and compromise of session security (NVD, OSS Security).

Mitigation and workarounds

The vulnerability was addressed in upstream commit 1c020d1f, which hardened the /tmp/tmate directory permissions. The fix involves changing the directory permissions from world-writable (0703) to more restrictive permissions (0700) and implementing proper ownership checks for the directories (GitHub Patch).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-59030HIGH7.5
  • Linux DebianLinux Debian
  • pdns-recursor
NoYesDec 09, 2025
CVE-2025-59029MEDIUM5.3
  • Linux DebianLinux Debian
  • pdns-recursor
NoYesDec 09, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-devel
NoYesDec 09, 2025
CVE-2025-40343N/AN/A
  • Linux KernelLinux Kernel
  • bpftool
NoYesDec 09, 2025
CVE-2025-40342N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-trace
NoYesDec 09, 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