Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-40394

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.

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

Source evidence

CVE-2021-40394

core-osv · Original source

Published 22 Dec 2021, 19:15 UTC

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.

osv:CVE-2021-40394
Complete source record
{
  "id": "39957a3d454b035f3d1db76982808ce6f35ad29266624a849a15f8af0c9607bb",
  "url": "https://osv.dev/vulnerability/CVE-2021-40394",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-40394",
    "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.",
    "evidence": "osv:CVE-2021-40394",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2021-40394",
      "aliases": [
        "CVE-2021-40394"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/gerbv/gerbv",
              "type": "GIT",
              "events": [
                {
                  "introduced": "3c70dc88260086e303ff8722dc9e6aec73e3b7e2"
                },
                {
                  "last_affected": "3c70dc88260086e303ff8722dc9e6aec73e3b7e2"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:gerbv_project:gerbv:2.7.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.7.0"
                      },
                      {
                        "last_affected": "2.7.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.7.0",
            "v2.7.0",
            "gerbv-2-7-RELEASE"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-40394.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:17.311819205Z",
      "provider": "osv",
      "references": [
        "https://lists.debian.org/debian-lts-announce/2023/09/msg00040.html",
        "https://www.debian.org/security/2022/dsa-5306",
        "https://talosintelligence.com/vulnerability_reports/TALOS-2021-1404"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "9.0"
                  },
                  {
                    "last_affected": "9.0"
                  },
                  {
                    "introduced": "10.0"
                  },
                  {
                    "last_affected": "10.0"
                  },
                  {
                    "introduced": "11.0"
                  },
                  {
                    "last_affected": "11.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-40394",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 429537,
  "published_at": "2021-12-22T19:15:11.46+00:00"
}