CVE-2021-40393 json
An out-of-bounds write vulnerability exists in the RS-274X aperture macro variables handling functionality of Gerbv 2.7.0 and dev (commit b…
published 2021-12-22 4 y ago modified 2026-06-17 4 mo ago also EUVD-2021-27570
- cvss
- 10.0
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.1%
- EPSS 3.1% chance of exploitation in 30 days, percentile 87%
- public exploits
- 0
- none known
Summary
An out-of-bounds write vulnerability exists in the RS-274X aperture macro variables handling functionality of Gerbv 2.7.0 and dev (commit b5f1eacd) and the forked version of Gerbv (commit 71493260). A specially-crafted gerber file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability.
Patch / fix
- gerbv Debian 13, Debian 12 2.8.2-1
debian advisories DEBIAN-CVE-2021-40393
- gerbv Ubuntu 20.04 LTS 2.7.0-1ubuntu0.1
- gerbv Ubuntu Pro 14.04 LTS 2.6.0-1ubuntu0.14.04.1~esm1
- gerbv Ubuntu Pro 16.04 LTS 2.6.0-1ubuntu0.16.04.1~esm1
- gerbv Ubuntu Pro 18.04 LTS 2.6.1-3ubuntu0.1~esm1
- gerbv Ubuntu Pro 22.04 LTS 2.8.2-1ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2021-40393
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-40393 updated cvss 9.8
gerbv: Gerbv RS-274X format aperture macro variables out-of-bounds write vulnerability
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
3.14% chance of exploitation in the next 30 days, higher than 87% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- talosintelligence.com https://talosintelligence.com/vulnerability_reports/TALOS-2021-1404 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 10.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected products
- n/a Gerbv
Classification
References
-
talosintelligence.com
/vulnerability_reports/TALOS-2021-1404
exploit, third-party-advisory
-
debian.org
/security/2022/dsa-5306
vendor-advisory, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/37OSNNO5N5FJZP6ZBYRJMML5HYMJQIX7/
vendor-advisory
-
lists.debian.org
/debian-lts-announce/2023/09/msg00040.html
mailing-list
Sources
- CVE List CVE-2021-40393
- NVD CVE-2021-40393
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.