# CVE-2021-40391: 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…

- Severity: Critical 10.0 (CVSS:3.0, scored by talos) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.99%, higher than 87% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-11-19T18:53:49.000Z
- Modified: 2026-06-17T04:06:51.043Z
- Weaknesses: CWE-390, CWE-755, CWE-787
- Assigned by: talos

## Description

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.

(As written by CVE List.)

## Affected

- Gerbv: Gerbv 2.7.0 , Gerbv dev (commit b5f1eacd) ,Gerbv forked dev (commit 71493260)
- gerbv_project gerbv: 2.7.0
- debian debian_linux: 9.0
- fedoraproject fedora: 36

## Every score

- talos: CVSS:3.0 10.0 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://www.talosintelligence.com/vulnerability_reports/TALOS-2021-1402> (exploit, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2021/12/msg00003.html> (mailing-list, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TUM5GIUZJ7AVHVCXDZW6ZVCAPV2ISN47/> (vendor-advisory)

## Sources

- CVE List: [CVE-2021-40391](https://www.cve.org/CVERecord?id=CVE-2021-40391), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-40391](https://nvd.nist.gov/vuln/detail/CVE-2021-40391), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-40391 · Whole record: https://cve.day/CVE-2021-40391.json · Rebuilt by cve.day 2026-11-25T22:58:05.684Z
