Vulnerabilities / CVE-2021-40391

critical

CVE-2021-40391

An out-of-bounds write vulnerability exists in the drill format T-code ...

Published Modified CWE 390, 755, 787
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Ubuntu (medium).

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.

Affected packages and fixed versions

SourcePackageFixed in
debian 10gerbv2.7.0-1+deb10u1
debian 11gerbv2.7.0-2+deb11u1
debian 12gerbv2.7.1-1
debian 13gerbv2.7.1-1
debian 9gerbv2.6.1-2+deb9u1
echogerbv2.7.1-1
rapidfort ubuntu 20.04gerbv0:2.10.0-1build2
rapidfort ubuntu 22.04gerbv0:2.10.0-1build2
rapidfort ubuntu 24.04gerbv0:2.10.0-1build2
ubuntu 14.04-ESMgerbv2.6.0-1ubuntu0.14.04.1~esm1
ubuntu 16.04-ESMgerbv2.6.0-1ubuntu0.16.04.1~esm1
ubuntu 18.04-ESMgerbv2.6.1-3ubuntu0.1~esm1
Show all 15 entries from 15 sources
SourcePackageFixed in
debian 10gerbv2.7.0-1+deb10u1
debian 11gerbv2.7.0-2+deb11u1
debian 12gerbv2.7.1-1
debian 13gerbv2.7.1-1
debian 9gerbv2.6.1-2+deb9u1
echogerbv2.7.1-1
rapidfort ubuntu 20.04gerbv0:2.10.0-1build2
rapidfort ubuntu 22.04gerbv0:2.10.0-1build2
rapidfort ubuntu 24.04gerbv0:2.10.0-1build2
ubuntu 14.04-ESMgerbv2.6.0-1ubuntu0.14.04.1~esm1
ubuntu 16.04-ESMgerbv2.6.0-1ubuntu0.16.04.1~esm1
ubuntu 18.04-ESMgerbv2.6.1-3ubuntu0.1~esm1
ubuntu 20.04gerbv2.7.0-1ubuntu0.1
ubuntu 20.04-ESMgerbv2.7.0-1ubuntu0.1
ubuntu 22.04gerbvno fix listed

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.