CVE-2020-28928
NixOS vulnerability analysis and mitigation

Overview

CVE-2020-28928 affects musl libc through version 1.2.1. The vulnerability involves the wcsnrtombs function mishandling particular combinations of destination buffer size and source character limit, which can lead to an invalid write access (buffer overflow) (NVD, Openwall).

Technical details

The vulnerability exists in the wcsnrtombs function implementation in musl libc. The function has multiple bugs in handling destination buffer size when limiting the input character count. This can result in either an infinite loop with no forward progress (no overflow) or writing past the end of the destination buffer. The non-input-limiting form wcsrtombs is not affected by this vulnerability. The issue has been assigned a CVSS v3.1 Base Score of 5.5 (Medium) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

The vulnerability can lead to buffer overflow conditions when the wcsnrtombs function is called with specific combinations of destination buffer size and source character limit parameters. While this function is not used internally in musl and is not widely used, it may affect applications that directly utilize this function (Openwall).

Exploitability

The vulnerability requires local access and low complexity to exploit. It cannot be triggered remotely without authentication. The function must be explicitly called with specific parameter combinations to trigger the vulnerability (NVD).

Mitigation and workarounds

The issue was fixed in musl version 1.2.2, which includes a complete rewrite of the wcsnrtombs implementation. All users of musl 1.2.1 and prior versions should upgrade to version 1.2.2 or apply the provided patch that replaces the complex and erroneous implementation (Openwall, Musl Releases).

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-34191CRITICAL9.1
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2026-32327CRITICAL9.1
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2026-34502HIGH7.5
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2026-34501HIGH7.5
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2025-49506HIGH7.5
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 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