LiveActive security incident?Get immediate response
CVE Record

CVE-2021-40402: An out-of-bounds read vulnerability exists in the RS-274X aperture macro multiple outline primitives functi...

An out-of-bounds read vulnerability exists in the RS-274X aperture macro multiple outline primitives functionality of Gerbv 2.7.0 and dev (commit b5f1eacd), and Gerbv forked 2.7.1 and 2.8.0. 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 analysishigh

Security readout for executives and security teams

Plain-English summary

Gerbv can read past expected memory while processing a specially crafted Gerber RS-274X file. This can disclose information and may cause high availability impact. The business risk is concentrated where Gerbv processes untrusted PCB design files, especially automated intake or review workflows.

Executive priority

Prioritize remediation where Gerbv touches external design files or automated intake pipelines. The vulnerability is rated critical by CVSS, but the provided sources do not show active exploitation or a named fix.

Technical view

CVE-2021-40402 is an out-of-bounds read in Gerbv RS-274X aperture macro multiple outline primitives handling. Reported affected versions are Gerbv 2.7.0, dev commit b5f1eacd, and forked 2.7.1 and 2.8.0. The source bundle cites CVSS 3.0 score 9.3 and CWE-755.

Likely exposure

Exposure is likely in engineering, PCB review, manufacturing, or CI workflows using affected Gerbv builds to parse Gerber files from customers, suppliers, or public submissions.

Exploitation context

The bundle says an attacker can provide a malicious Gerber file to trigger the issue. It does not cite CISA KEV listing or other evidence of active exploitation.

Researcher notes

Evidence is limited to the CVE bundle and Talos reference. Treat affected-version matching carefully because the bundle distinguishes upstream Gerbv and forked releases. Do not assume other versions are affected without vendor confirmation.

Mitigation direction

  • Inventory Gerbv usage across workstations, servers, CI jobs, and manufacturing pipelines.
  • Avoid processing untrusted Gerber files with affected versions.
  • Check Gerbv and Talos guidance for fixed versions or vendor-recommended mitigations.
  • Run Gerbv file processing in isolated, least-privilege environments.
  • Add file provenance controls for supplier or customer Gerber uploads.

Validation and detection

  • Confirm installed Gerbv versions against 2.7.0, dev b5f1eacd, 2.7.1, and 2.8.0 forked builds.
  • Identify workflows where Gerbv parses externally supplied RS-274X Gerber files.
  • Review crash, parser error, and memory-fault logs around Gerber file processing.
  • Verify mitigations by checking version inventory and isolation controls.
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-755: 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-40402 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-40402Attack 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 forked2.7.1, 2.8.0Listed
Weakness

CWE details

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

CWE-755 · source CWE mapping

Improper Handling of Exceptional Conditions

Improper Handling of Exceptional Conditions represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.