CVE-2021-38172
NixOS vulnerability analysis and mitigation

Overview

perM 0.4.0 contains a Buffer Overflow vulnerability related to strncpy functionality. The vulnerability was discovered in August 2021 and was initially fixed in version 0.4.0-7 by Debian. The affected software is the perM package, which is an efficient mapping tool for short reads with periodic spaced seeds (Debian Bug, Debian Med).

Technical details

The vulnerability is classified as a classic buffer overflow (CWE-120) with a CVSS v3.1 Base Score of 9.8 (CRITICAL) and vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. The issue was discovered when enabling hardening options, particularly -D_FORTIFY_SOURCE=2, which revealed buffer overflow errors in several instances of strcpy and sprintf functions (Debian Med).

Impact

The vulnerability could allow attackers to cause buffer overflows, potentially leading to program crashes and arbitrary code execution. The high CVSS score of 9.8 indicates critical severity with potential for complete compromise of system confidentiality, integrity, and availability (NVD).

Mitigation and workarounds

The vulnerability was fixed in version 0.4.0-7 of the perM package through a patch that addresses the buffer overflow issues. The fix involved proper buffer size handling and replacement of unsafe string functions. However, it's worth noting that the upstream project appears to be inactive, with no response from the original developers (Debian Bug).

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-69264CRITICAL9.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69263HIGH8.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69262HIGH7.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-20807MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2026-21885MEDIUM6.5
  • NixOSNixOS
  • miniflux
NoYesJan 08, 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