# CVE-2021-40401

## Summary

- **CVE ID:** CVE-2021-40401
- **Severity:** CRITICAL
- **CVSS Score:** 10 (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:H)
- **CWE:** CWE-252
- **Published:** Feb 4, 2022
- **Last Modified:** Mar 13, 2026

## Description

A use-after-free vulnerability exists in the RS-274X aperture definition tokenization functionality of Gerbv 2.7.0 and dev (commit b5f1eacd) and Gerbv forked 2.7.1. A specially-crafted gerber file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability.

## Affected Products

- n/a — Gerbv (Gerbv 2.7.0 ,Gerbv forked 2.7.1 ,Gerbv dev (commit b5f1eacd))

## References

- [CNA](https://talosintelligence.com/vulnerability_reports/TALOS-2021-1415)
- [CNA](https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TUM5GIUZJ7AVHVCXDZW6ZVCAPV2ISN47/)
- [CNA](https://www.debian.org/security/2022/dsa-5306)

## Exploitation Prediction (EPSS)

- **EPSS Score:** 0.27%
- **EPSS Percentile:** 50.1

---
_Exported from OnDuty AI Vulnerability Intelligence on 2026-09-17._