CVE-2023-34204
NixOS vulnerability analysis and mitigation

Overview

imapsync through version 2.229 contains a security vulnerability related to predictable file paths usage. The software uses predictable paths under /tmp and /var/tmp in its default mode of operation. Since both these directories are typically world-writable, this creates a security risk where an attacker can modify imapsync's cache and overwrite files belonging to the user who runs it (NVD, GitHub Issue).

Technical details

The vulnerability stems from the software's use of predictable file paths in world-writable directories (/tmp and /var/tmp). The issue affects multiple components including the PID file (imapsync.pid), imapsynccache directory, CGITMPDIRTOP, and CGIHASHFILE. The vulnerability has been assigned a CVSS v3.1 Base Score of 6.5 (MEDIUM) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N (NVD).

Impact

An attacker can exploit this vulnerability to modify imapsync's cache and overwrite files belonging to the user running the application. In a proof-of-concept demonstration, an attacker could create a symlink from /tmp/imapsync.pid to another file (such as /etc/passwd), causing imapsync to overwrite the target file when run with elevated privileges (GitHub Issue).

Mitigation and workarounds

For Linux systems, enabling the fs.protected_symlinks sysctl option can provide some protection against symlink-based attacks. However, this does not address the fundamental security issue. The proper solution would involve using secure temporary file creation methods such as mkstemp() in C or File::Temp in Perl (GitHub Issue).

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-48625HIGH7
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48608MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48569MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-65799MEDIUM4.3
  • NixOSNixOS
  • memos
NoYesDec 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