LiveActive security incident?Get immediate response
CVE Record

CVE-2021-40400: An out-of-bounds read vulnerability exists in the RS-274X aperture macro outline primitive functionality of...

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.

CriticalCVSS 9.3Not KEV-listedUpdated
Glexia's TakeAutomated analysiscritical

Security readout for executives and security teams

Plain-English summary

CVE-2021-40400 affects Gerbv, a Gerber file viewer/parser used in PCB workflows. A malicious Gerber file can trigger an out-of-bounds read, potentially causing information disclosure and severe application impact. The provided sources do not show active exploitation or a named patch.

Executive priority

Prioritize this where Gerber files enter from outside the organization or support revenue-critical PCB workflows. Treat internet-facing or automated file-processing paths as urgent. Internal-only desktop use is still important but depends on trust boundaries and file sources.

Technical view

The flaw is an out-of-bounds read in RS-274X aperture macro outline primitive handling in Gerbv 2.7.0, Gerbv dev commit b5f1eacd, and a forked Gerbv commit d7f42a9a. CVSS 3.0 is 9.3 with low attack complexity, no privileges, changed scope, low confidentiality impact, and high availability impact.

Likely exposure

Exposure is most likely where Gerbv or the named fork processes Gerber files from customers, suppliers, public uploads, email attachments, or automated PCB pipelines. Confirm exact versions and commits before treating a system as affected.

Exploitation context

The bundle says an attacker can provide a specially crafted Gerber file to trigger the issue. It does not cite known exploitation, and KEV status is false. No weaponized details or public exploit status are provided in the supplied sources.

Researcher notes

Evidence supports the affected versions, parser area, and malicious-file trigger. The supplied bundle does not name a fixed version, workaround, exploit availability, or exploitation in the wild. Remediation should be tied to current Gerbv project guidance before closure.

Mitigation direction

  • Inventory Gerbv and forked Gerbv usage across PCB workflows.
  • Check project or vendor guidance for fixed releases or commits.
  • Avoid processing untrusted Gerber files with affected builds.
  • Isolate unavoidable Gerber parsing from sensitive systems and data.
  • Restrict file intake to trusted business channels where possible.

Validation and detection

  • Confirm whether Gerbv 2.7.0 is installed anywhere.
  • Check dev builds for commit b5f1eacd or fork commit d7f42a9a.
  • Map systems that accept Gerber files from external parties.
  • Review crash reports around Gerber file parsing workflows.
  • Document whether compensating isolation controls are in place.
Prepared
Confidence
medium
Sources
3

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-119: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-40400 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Critical
CVSS
9.3 (3.0)
Known Exploited
No
Published

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
2Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
9.3CVSS 3.0CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:H3.94.7Primary CVE score

Vulnerability scoring details

Base CVSS 3.0 score

9.3Critical
CVSS 3.0 vector shape for CVE-2021-40400Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
GerbvGerbv2.7.0, dev (commit b5f1eacd)Listed
GerbvGerbv forkeddev (commit d7f42a9a)Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.