Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-40402

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-40402
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 06:55 UTC · Revision 1

Source evidence

CVE-2021-40402

core-osv · Original source

Published 14 Apr 2022, 20:15 UTC

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.

osv:CVE-2021-40402
Complete source record
{
  "id": "32ae5fdd7e1d7ba24fdb3e759e1f8a8d8503d5ba17dbf40599862712ff9ac83d",
  "url": "https://osv.dev/vulnerability/CVE-2021-40402",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-40402",
    "summary": "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.",
    "evidence": "osv:CVE-2021-40402",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-40402",
      "aliases": [
        "CVE-2021-40402"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/gerbv/gerbv",
              "type": "GIT",
              "events": [
                {
                  "introduced": "3c70dc88260086e303ff8722dc9e6aec73e3b7e2"
                },
                {
                  "last_affected": "e0c64540ff3ede9eabc199c073df8598fb4d12dd"
                }
              ],
              "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.0:dev:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.7.0-dev"
                      },
                      {
                        "last_affected": "2.7.0-dev"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:gerbv_project:gerbv:2.7.1:-:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.7.1-NA"
                      },
                      {
                        "last_affected": "2.7.1-NA"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:gerbv_project:gerbv:2.8.0:-:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.8.0-NA"
                      },
                      {
                        "last_affected": "2.8.0-NA"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.7.0-NA",
            "2.7.1-NA",
            "2.8.0-NA",
            "v2.8.0",
            "v2.8.0-rc.1",
            "gerbv-2-8-0-RC-1",
            "v2.7.0",
            "gerbv-2-7-RELEASE"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-40402.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:46.603655339Z",
      "provider": "osv",
      "references": [
        "https://talosintelligence.com/vulnerability_reports/TALOS-2021-1416"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-40402",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 436370,
  "published_at": "2022-04-14T20:15:08.89+00:00"
}