CVE-2021-40391

Source
https://cve.org/CVERecord?id=CVE-2021-40391
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-40391.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-40391
Downstream
Related
Published
2021-11-19T19:15:08.943Z
Modified
2026-07-07T08:51:43.247816808Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

An out-of-bounds write vulnerability exists in the drill format T-code tool number functionality of Gerbv 2.7.0, dev (commit b5f1eacd), and the forked version of Gerbv (commit 71493260). A specially-crafted drill file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability.

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

Affected packages

Git / github.com/gerbv/gerbv

Affected ranges

Type
GIT
Repo
https://github.com/gerbv/gerbv
Events
Database specific
{
    "source": "CPE_STRING",
    "cpe": [
        "cpe:2.3:a:gerbv_project:gerbv:2.7.0:-:*:*:*:*:*:*",
        "cpe:2.3:a:gerbv_project:gerbv:2.7.0:dev:*:*:*:*:*:*",
        "cpe:2.3:a:gerbv_project:gerbv:2.7.0:forked_dev:*:*:*:*:*:*"
    ],
    "extracted_events": [
        {
            "introduced": "2.7.0-NA"
        },
        {
            "last_affected": "2.7.0-NA"
        },
        {
            "introduced": "2.7.0-dev"
        },
        {
            "last_affected": "2.7.0-dev"
        },
        {
            "introduced": "2.7.0-forked_dev"
        },
        {
            "last_affected": "2.7.0-forked_dev"
        }
    ]
}

Affected versions

2.*
2.7.0-NA
Other
gerbv-2-7-RELEASE
v2.*
v2.7.0

Database specific

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