CVE-2020-21680
NixOS vulnerability analysis and mitigation

Overview

A stack-based buffer overflow vulnerability exists in the put_arrow() component in genpict2e.c of fig2dev version 3.2.7b. The vulnerability is identified as CVE-2020-21680 and affects the fig2dev software when converting a xfig file into pict2e format (NVD).

Technical details

The vulnerability occurs in the putarrow() function at line 1191 in genpict2e.c when attempting to draw an arrow head with zero length. The issue arises because the direction of the arrow is computed as the chord rather than the tangent between the tip and back of the arrow head. When the arrow length is zero, the start and end points coincide, causing calcarrow() to return prematurely with an invalid number of points set to 0, leading to a stack buffer overflow (SourceForge Issue).

Impact

When exploited, this vulnerability allows attackers to cause a denial of service (DoS) condition via converting a xfig file into pict2e format (NVD).

Mitigation and workarounds

The issue was fixed in commit [100e27] where arcs with arrow heads that have a length of zero are now drawn using the tangent instead of a secant to the arc. This provides a proper handling of zero-length arrow heads (SourceForge 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-12819HIGH8.1
  • NixOSNixOS
  • pgbouncer
NoYesDec 03, 2025
CVE-2025-20777MEDIUM6.7
  • NixOSNixOS
  • android
NoNoDec 02, 2025
CVE-2025-65105MEDIUM5.3
  • NixOSNixOS
  • apptainer
NoYesDec 02, 2025
CVE-2025-20789MEDIUM4.4
  • NixOSNixOS
  • android
NoNoDec 02, 2025
CVE-2025-20788MEDIUM4.4
  • NixOSNixOS
  • android
NoNoDec 02, 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