CVE & CISA-KEV Catalog

CVE-2021-40401

HIGH
8.6
CVSS v3
NVD

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.

How to fix

Remediation Available
gerbvDebian
Fixed in:2.9.2-1CVE-2021-40401
Fixed in:2.9.2-1CVE-2021-40401
Fixed in:2.9.2-1CVE-2021-40401

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredNone
User InteractionRequired
ScopeChanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Exploit Intelligence

1.32%probability of exploitation in 30 days
69thpercentile

Moderate risk: more likely to be exploited than 69% of all known CVEs.

References

Third-Party Advisory1
Other references1

Related Vulnerabilities

Other CWE-252 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2005-4360High7.887%--
CVE-2007-3798Critical9.870%-Fix
CVE-2010-0211Critical9.828%-Fix
CVE-2022-23626High8.59.9%-Fix
CVE-2019-10902High7.54.7%--
CVE-2018-20216High7.53.9%-Fix

Common questions

How do I fix CVE-2021-40401?

Upgrade gerbv on debian 12 to 2.9.2-1 or later.

Is CVE-2021-40401 being actively exploited?

Not that we know of. CVE-2021-40401 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 1.3% is the estimated probability that it will be exploited in the next 30 days. That is higher than 69% of all scored CVEs.

How severe is CVE-2021-40401?

CVE-2021-40401 has a CVSS v3 base score of 8.6, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2021-40401 affect?

Published advisories record a fix for gerbv (Debian). Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2021-40401
CVE-2021-40401 severity badge

Markdown

[![CVE-2021-40401](https://tridentstack.com/cve/badge/CVE-2021-40401.svg)](https://tridentstack.com/cve/CVE-2021-40401)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-40401"><img src="https://tridentstack.com/cve/badge/CVE-2021-40401.svg" alt="CVE-2021-40401"></a>

Check your Linux endpoints for this class of vulnerability

TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.

Patch your fleet freeStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-06-17.