CVE-2021-40401

Source
https://cve.org/CVERecord?id=CVE-2021-40401
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-40401.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-40401
Downstream
Related
Published
2022-02-04T23:15:11Z
Modified
2026-10-16T02:51:26Z
Severity
  • 8.6 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

Database specific
{
    "unresolved_ranges": [
        {
            "cpes": [
                "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*"
            ],
            "extracted_events": [
                {
                    "range": [
                        {
                            "introduced": "11.0"
                        },
                        {
                            "last_affected": "11.0"
                        }
                    ],
                    "source": "CPE_STRING"
                }
            ],
            "vendor_product": "debian:debian_linux"
        },
        {
            "cpes": [
                "cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*"
            ],
            "extracted_events": [
                {
                    "range": [
                        {
                            "introduced": "36"
                        },
                        {
                            "last_affected": "36"
                        }
                    ],
                    "source": "CPE_STRING"
                }
            ],
            "vendor_product": "fedoraproject:fedora"
        }
    ]
}
References

Affected packages

Git / github.com/gerbv/gerbv

Affected ranges

Type
GIT
Repo
https://github.com/gerbv/gerbv
Events
Database specific
Show details
{
    "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.1:forked_dev:*:*:*:*:*:*",
            "range": [
                {
                    "introduced": "2.7.1-forked_dev"
                },
                {
                    "last_affected": "2.7.1-forked_dev"
                }
            ],
            "source": "CPE_STRING"
        }
    ]
}

Affected versions

2.*
2.7.0-NA
2.7.1-forked_dev
Other
gerbv-2-7-1-RELEASE
gerbv-2-7-RELEASE
v2.*
v2.7.0
v2.7.1

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-40401.json"