CVE-2020-11958: 
NixOS vulnerability analysis and mitigation

Overview

re2c version 1.3, a tool for generating C-based recognizers from regular expressions, was found to contain a heap-based buffer overflow vulnerability in the Scanner::fill function within parse/scanner.cc. The vulnerability was discovered by Agostino Sarubbo on April 17, 2020, and was assigned CVE-2020-11958. The issue was promptly fixed by the upstream maintainers on the same day (Gentoo Blog).

Technical details

The vulnerability is triggered when processing a specially crafted file containing a very long lexeme that doesn't fit into the buffer, forcing buffer reallocation. The crash was caused by an incorrect calculation of the shift offset, which was smaller than necessary. As a consequence, the data from buffer start and up to the beginning of the current lexeme was not discarded, resulting in less free space for new data than expected. The vulnerability has a CVSS 3.1 Base Score of 7.8 (High) (Ubuntu Security).

Impact

If successfully exploited, this vulnerability could allow an attacker to execute arbitrary code or cause a Denial of Service condition. The heap buffer overflow could potentially lead to system compromise when processing maliciously crafted input files (Gentoo Security, Ubuntu USN).

Exploitability

The vulnerability can be triggered by processing a specially crafted file through the re2c command line tool. A proof of concept demonstrating the heap buffer overflow has been documented using AddressSanitizer, showing the exact location and nature of the overflow (Gentoo Blog).

Mitigation and workarounds

The vulnerability was fixed in re2c version 2.0 through a commit that corrected the shift offset calculation. Users are advised to upgrade to version 1.3-r1 or later. For Ubuntu users, updates were released for Ubuntu 19.10 (version 1.2.1-1ubuntu0.1) and Ubuntu 20.04 LTS (version 1.3-1ubuntu0.1) (Github Commit, Ubuntu USN).

Additional resources


Source: This report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-106016CRITICAL9.8
  • NixOS logoNixOS
  • firefox
NoYesOct 06, 2026
CVE-2026-104048HIGH8.1
  • NixOS logoNixOS
  • libsss_sudo
NoYesOct 06, 2026
CVE-2026-104047MEDIUM5.3
  • NixOS logoNixOS
  • libipa_hbac
NoYesOct 06, 2026
CVE-2026-105758MEDIUM5.3
  • NixOS logoNixOS
  • vllm
NoYesOct 05, 2026
CVE-2026-105922LOW2.1
  • NixOS logoNixOS
  • vllm
NoNoOct 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