Skip to content
Fencer Vulns
critical 9.3

CVE-2021-40400 json

An out-of-bounds read vulnerability exists in the RS-274X aperture macro outline primitive functionality of Gerbv 2.7.0 and dev (commit b5f…

published 2022-04-14 4 y ago modified 2026-06-17 4 mo ago also EUVD-2021-27577

cvss
9.3
version 3.0, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.3%
EPSS 1.3% chance of exploitation in 30 days, percentile 70%
public exploits
0
none known

Summary

An out-of-bounds read vulnerability exists in the RS-274X aperture macro outline primitive functionality of Gerbv 2.7.0 and dev (commit b5f1eacd) and the forked version of Gerbv (commit d7f42a9a). A specially-crafted Gerber file can lead to information disclosure. An attacker can provide a malicious file to trigger this vulnerability.

Patch / fix

  • gerbv Debian 13, Debian 12 2.9.2-1

debian advisories DEBIAN-CVE-2021-40400

  • 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-40400

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

CISA SSVC

Exploitation
Proof of concept is public
Automatable
yes
Technical impact
partial
Assessed
18 mo ago

Exploit prediction

1.29% chance of exploitation in the next 30 days, higher than 70% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • talosintelligence.com https://talosintelligence.com/vulnerability_reports/TALOS-2021-1413 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.0 9.3 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:H
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:P/I:N/A:N

Affected products

  • Gerbv Gerbv
  • Gerbv Gerbv forked

Classification

Weakness
  • CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
  • CWE-125 Out-of-bounds Read

References

Sources

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.