{"id":"CVE-2021-40391","aliases":["DEBIAN-CVE-2021-40391","DLA-2839-1","EUVD-2021-27568","GHSA-3x4w-8mh5-3xjq","MGASA-2022-0260","UBUNTU-CVE-2021-40391","USN-6209-1","openSUSE-SU-2024:12064-1"],"status":"published","title":"An out-of-bounds write vulnerability exists in the drill format T-code tool number functionality...","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.","severity":{"version":"3.0","score":10,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.02989,"percentile":0.8749,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-390","CWE-755","CWE-787"],"published":"2021-11-19T18:53:49Z","modified":"2026-10-24T10:30:37Z","fixes":[{"ecosystem":"Debian:12","package":"gerbv","fixed_in":["2.7.1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"gerbv","fixed_in":["2.7.1-1"],"sources":["osv"]},{"ecosystem":"Debian:9","package":"gerbv","fixed_in":["2.6.1-2+deb9u1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:14.04:LTS","package":"gerbv","fixed_in":["2.6.0-1ubuntu0.14.04.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"gerbv","fixed_in":["2.6.0-1ubuntu0.16.04.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:18.04:LTS","package":"gerbv","fixed_in":["2.6.1-3ubuntu0.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:20.04:LTS","package":"gerbv","fixed_in":["2.7.0-1ubuntu0.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:22.04:LTS","package":"gerbv","fixed_in":["2.8.2-1ubuntu0.1~esm1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"gerbv","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"gerbv","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.1-1"}]}]},{"source":"osv","ecosystem":"Debian:9","package":"gerbv","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.1-2+deb9u1"}]}],"versions":["2.6.1-2"]},{"source":"osv","ecosystem":"Mageia:8","package":"gerbv","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.3-1.mga8"}]}],"bundled":5},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"gerbv","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.0-1ubuntu0.14.04.1~esm1"}]}],"versions":["2.6.0-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"gerbv","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.0-1ubuntu0.16.04.1~esm1"}]}],"versions":["2.6.0-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"gerbv","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.1-3ubuntu0.1~esm1"}]}],"versions":["2.6.1-2","2.6.1-3"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"gerbv","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.0-1ubuntu0.1"}]}],"versions":["2.7.0-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"gerbv","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.8.2-1ubuntu0.1~esm1"}]}],"versions":["2.7.0-2","2.7.1-1","2.8.0-1","2.8.1-1","2.8.2-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"gerbv","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.0-1ubuntu0.14.04.1~esm1"}]}],"versions":["2.6.0-1"],"bundled":6},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"gerbv","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.0-1ubuntu0.16.04.1~esm1"}]}],"versions":["2.6.0-1"],"bundled":6},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"gerbv","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.1-3ubuntu0.1~esm1"}]}],"versions":["2.6.1-2","2.6.1-3"],"bundled":6},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"gerbv","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.0-1ubuntu0.1"}]}],"versions":["2.7.0-1"],"bundled":6},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"gerbv","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.8.2-1ubuntu0.1~esm1"}]}],"versions":["2.7.0-2","2.7.1-1","2.8.0-1","2.8.1-1","2.8.2-1"],"bundled":6}],"products":[{"vendor":"debian","product":"debian_linux"},{"vendor":"fedoraproject","product":"fedora"},{"vendor":"gerbv","product":"gerbv"},{"vendor":"gerbv_project","product":"gerbv"}],"references":[{"url":"https://www.talosintelligence.com/vulnerability_reports/TALOS-2021-1402","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/12/msg00003.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TUM5GIUZJ7AVHVCXDZW6ZVCAPV2ISN47/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40391"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TUM5GIUZJ7AVHVCXDZW6ZVCAPV2ISN47/"},{"url":"https://github.com/advisories/GHSA-3x4w-8mh5-3xjq"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-40391","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2022-0260.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=30622","tags":["report"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/TUM5GIUZJ7AVHVCXDZW6ZVCAPV2ISN47/","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2021-40391","tags":["report"]},{"url":"https://talosintelligence.com/vulnerability_reports/TALOS-2021-1402","tags":["report"]},{"url":"https://github.com/gerbv/gerbv/commit/9f83950b772b37b49ee188300e444546e6aab17e","tags":["report"]},{"url":"https://github.com/gerbv/gerbv/issues/30","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-6209-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-40391","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-40393","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-40394","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-40400","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-40401","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-40403","tags":["report"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2021-40391","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2021-40393","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2021-40391","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.","status":"published","published":"2021-11-19T18:53:49Z","modified":"2024-08-04T02:44:09.158Z","cvss":[{"version":"3.0","score":10,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"cna"}],"cwes":["CWE-390"],"updated_at":"2026-11-02T14:33:01.495293Z"}],"euvd":[{"id":"EUVD-2021-27568","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.","status":"published","published":"2021-11-19T18:53:49Z","modified":"2024-08-04T02:44:09Z","cvss":[{"version":"3.0","score":10,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-03T03:24:20.862157Z"}],"ghsa":[{"id":"GHSA-3x4w-8mh5-3xjq","title":"An out-of-bounds write vulnerability exists in the drill format T-code tool number functionality...","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.","status":"published","published":"2022-05-24T19:21:06Z","modified":"2023-01-27T05:04:01Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:42:22.530177Z"}],"nvd":[{"id":"CVE-2021-40391","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.","status":"published","published":"2021-11-19T19:15:08.943Z","modified":"2026-06-17T04:06:51.043Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"3.0","score":10,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"secondary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-390","CWE-755","CWE-787"],"updated_at":"2026-11-02T14:07:01.428028Z"}],"osv":[{"id":"CVE-2021-40391","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.","status":"published","published":"2021-11-19T19:15:08.943Z","modified":"2026-10-24T10:30:37.109690987Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:21.249056Z"},{"id":"DEBIAN-CVE-2021-40391","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.","status":"published","published":"2021-11-19T19:15:08.943Z","modified":"2026-10-23T18:04:50.544500337Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:35.521549Z"},{"id":"UBUNTU-CVE-2021-40391","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.","status":"published","published":"2021-11-19T19:15:00Z","modified":"2026-02-04T03:07:06.997538Z","cvss":[{"version":"3.0","score":10,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:54:28.526929Z"},{"id":"DLA-2839-1","title":"gerbv - security update","status":"published","published":"2021-12-03T00:00:00Z","modified":"2026-03-09T01:23:21.41978Z","updated_at":"2026-11-02T15:46:11.189256Z"},{"id":"MGASA-2022-0260","title":"Updated gerbv packages fix security vulnerability","description":"An out-of-bounds write vulnerability exists in the drill format T-code\ntool number functionality of Gerbv 2.7.0, dev (commit b5f1eacd), and the\nforked version of Gerbv (commit 71493260). (CVE-2021-40391)\n\nAn out-of-bounds write vulnerability exists in the RS-274X aperture macro\nvariables handling functionality of Gerbv 2.7.0 and dev (commit b5f1eacd)\nand the forked version of Gerbv (commit 71493260). (CVE-2021-40393,\nCVE-2021-40394)\n\nAn out-of-bounds read vulnerability exists in the RS-274X aperture macro\noutline primitive functionality of Gerbv 2.7.0 and dev (commit b5f1eacd)\nand the forked version of Gerbv (commit d7f42a9a). (CVE-2021-40400)\n\nA use-after-free vulnerability exists in the RS-274X aperture definition\ntokenization functionality of Gerbv 2.7.0 and dev (commit b5f1eacd) and\nGerbv forked 2.7.1. (CVE-2021-40401)\n","status":"published","published":"2022-07-13T20:44:07Z","modified":"2026-04-16T04:41:19.409072664Z","updated_at":"2026-11-02T15:49:41.849028Z"},{"id":"openSUSE-SU-2024:12064-1","title":"gerbv-2.8.2-1.1 on GA media","description":"These are all security issues fixed in the gerbv-2.8.2-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2025-05-07T18:13:12.491269Z","updated_at":"2026-11-02T16:58:35.485255Z"},{"id":"USN-6209-1","title":"Gerbv vulnerabilities","description":"Claudio Bozzato discovered that Gerbv incorrectly handled certain Gerber\nfiles. An attacker could possibly use this issue to crash Gerbv (resulting\nin a denial of service), or execute arbitrary code. This issue only\naffected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, and Ubuntu\n20.04 LTS. (CVE-2021-40391, CVE-2021-40394)\n\nClaudio Bozzato discovered that Gerbv incorrectly handled certain Gerber\nfiles. An attacker could possibly use this issue to disclose information,\ncrash Gerbv (resulting in a denial of service), or execute arbitrary code.\nThis issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04\nLTS, and Ubuntu 20.04 LTS. (CVE-2021-40393)\n\nClaudio Bozzato discovered that Gerbv incorrectly handled certain Gerber\nfiles. An attacker could possibly use this issue to disclose information.\n(CVE-2021-40400, CVE-2021-40403)\n\nClaudio Bozzato discovered that Gerbv incorrectly handled certain Gerber\nfiles. An attacker could possibly use this issue to disclose information,\ncrash Gerbv (resulting in a denial of service), or execute arbitrary code.\n(CVE-2021-40401)\n","status":"published","published":"2023-07-07T09:45:28Z","modified":"2026-06-29T13:50:54.380120107Z","updated_at":"2026-11-02T16:58:16.738762Z"}]}}
