CVE-2021-40391

Source
https://cve.org/CVERecord?id=CVE-2021-40391
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-40391.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-40391
Downstream
Related
Published
2021-11-19T19:15:08Z
Modified
2026-10-20T10:53:55Z
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":  [
        {
            "cpes":  [
                "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "range":  [
                        {
                            "introduced":  "9.0"
                        },
                        {
                            "last_affected":  "9.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.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.0:forked_dev:*:*:*:*:*:*",
            "range":  [
                {
                    "introduced":  "2.7.0-forked_dev"
                },
                {
                    "last_affected":  "2.7.0-forked_dev"
                }
            ],
            "source":  "CPE_STRING"
        }
    ]
}

Affected versions

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

Database specific

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