High
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-40401
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 04:58 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-40401
Complete source record
{
"id": "2e07fbd56d2d455384cfc9f9fc7a2120c8aac1483a2b2a0b73d0cfbd9e906dd8",
"url": "https://osv.dev/vulnerability/CVE-2021-40401",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-40401",
"summary": "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.",
"evidence": "osv:CVE-2021-40401",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-40401",
"aliases": [
"CVE-2021-40401"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/gerbv/gerbv",
"type": "GIT",
"events": [
{
"introduced": "3c70dc88260086e303ff8722dc9e6aec73e3b7e2"
},
{
"last_affected": "96e82fe9c1f235e2b8eb9422ab4659c188d96b75"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:gerbv_project:gerbv:2.7.0:-:*:*:*:*:*:*",
"range": [
{
"introduced": "2.7.0-NA"
},
{
"last_affected": "2.7.0-NA"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:gerbv_project:gerbv:2.7.1:forked_dev:*:*:*:*:*:*",
"range": [
{
"introduced": "2.7.1-forked_dev"
},
{
"last_affected": "2.7.1-forked_dev"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"2.7.0-NA",
"2.7.1-forked_dev",
"v2.7.1",
"gerbv-2-7-1-RELEASE",
"v2.7.0",
"gerbv-2-7-RELEASE"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-40401.json"
}
}
],
"modified": "2026-10-24T10:30:23.509631019Z",
"provider": "osv",
"references": [
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TUM5GIUZJ7AVHVCXDZW6ZVCAPV2ISN47/",
"https://www.debian.org/security/2022/dsa-5306",
"https://talosintelligence.com/vulnerability_reports/TALOS-2021-1415"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*"
],
"vendor_product": "debian:debian_linux",
"extracted_events": [
{
"range": [
{
"introduced": "11.0"
},
{
"last_affected": "11.0"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*"
],
"vendor_product": "fedoraproject:fedora",
"extracted_events": [
{
"range": [
{
"introduced": "36"
},
{
"last_affected": "36"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2021-40401",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 430932,
"published_at": "2022-02-04T23:15:11.833+00:00"
}