CVE-2023-29465
NixOS vulnerability analysis and mitigation

Overview

SageMath FlintQS 1.0 contains a security vulnerability (CVE-2023-29465) discovered in April 2023. The vulnerability stems from the software's reliance on pathnames under TMPDIR (typically world-writable), which allows local users to overwrite files with the privileges of different users who are running FlintQS. The vulnerability affects version 1.0 of the FlintQS package (NVD, CVE).

Technical details

The vulnerability exists due to FlintQS using predictable filenames in temporary directories. The software concatenates the current UID and PID to create filenames, which are supposed to be unique but remain predictable since UIDs and PIDs of processes are usually visible to other users on the machine. When using plain fopen() on these paths, it becomes vulnerable to typical /tmp exploits. The vulnerability has been assigned a CVSS v3.1 Base Score of 5.5 (Medium) with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N (NVD).

Impact

The vulnerability allows local users to perform file overwrite attacks with elevated privileges. For example, an attacker could exploit this vulnerability to overwrite sensitive files with the privileges of any user running FlintQS. A proof of concept demonstrated the ability to overwrite /etc/passwd when FlintQS is run as root (GitHub Issue).

Mitigation and workarounds

The recommended mitigation is to replace FlintQS with FLINT's built-in qsieve_factor() functionality. This change has been implemented in SageMath through pull request #35419, which removes the standalone FlintQS package and replaces it with FLINT's native implementation (GitHub PR).

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