Skip to content
Heist/ feed
Back to feed
HighFix available

gerbv — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2021-40401

A use-after-free vulnerability exists in the RS-274X aperture definition tokenization functionality of Gerbv 2.7.0 and dev (commit b5f1eacd) and Gerbv forked 2.7.1. A specially-crafted gerber file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability.

Products
gerbv
Affected versions
Not specified
Fixed versions
2.9.2-1
CVEs
CVE-2021-40401
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 00:40 UTC · Revision 1

Source evidence

DEBIAN-CVE-2021-40401

core-osv · Original source

Published 4 Feb 2022, 23:15 UTC

A use-after-free vulnerability exists in the RS-274X aperture definition tokenization functionality of Gerbv 2.7.0 and dev (commit b5f1eacd) and Gerbv forked 2.7.1. A specially-crafted gerber file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability.

osv:DEBIAN-CVE-2021-40401

gerbv

Fixed versions: 2.9.2-1

gerbv

Fixed versions: 2.9.2-1

Complete source record
{
  "id": "3e5f92e1789c73961beca8e587cad563283f3648c611ca61851318609ab2ccba",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-40401",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2021-40401",
    "summary": "A use-after-free vulnerability exists in the RS-274X aperture definition tokenization functionality of Gerbv 2.7.0 and dev (commit b5f1eacd) and Gerbv forked 2.7.1. A specially-crafted gerber file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability.",
    "evidence": "osv:DEBIAN-CVE-2021-40401",
    "products": [
      {
        "name": {
          "value": "gerbv",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.9.2-1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "gerbv",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.9.2-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "DEBIAN-CVE-2021-40401",
      "aliases": [
        "DEBIAN-CVE-2021-40401"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.9.2-1"
                }
              ]
            }
          ],
          "package": {
            "name": "gerbv",
            "purl": "pkg:deb/debian/gerbv?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-40401.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.9.2-1"
                }
              ]
            }
          ],
          "package": {
            "name": "gerbv",
            "purl": "pkg:deb/debian/gerbv?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-40401.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-23T18:03:32.804723387Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-40401"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2021-40401"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-40401",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 421868,
  "published_at": "2022-02-04T23:15:11.833+00:00"
}