SecurityContext

CVE-2021-40393: Gerbv - Buffer Overflow

  • Cve: CVE-2021-40393
  • Name: Gerbv - Buffer Overflow
  • Description: An out-of-bounds write vulnerability exists in the RS-274X aperture macro variables handling functionality of Gerbv 2.7.0 and dev (commit b5f1eacd) and the forked version of Gerbv (commit 71493260). A specially-crafted gerber file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability.
  • Impact: Attackers can execute arbitrary code on the system by exploiting this vulnerability through malicious Gerber files.
  • Remediation: Update to the latest version of Gerbv that addresses this issue or apply patches if available.
  • Vulnerability type: out_of_bounds_rw
  • Vulnerability impact: remote_code_execution
  • Requirement type: user_interaction
  • Requirements: Attacker needs to provide a malicious Gerber file
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.0314
  • Epss percentile: 0.88141
  • Assignee: [email protected]
  • Published at: 2021-12-22T19:15:11Z
  • Age in days: 1798
  • Modified at: 2026-06-17T04:06:51Z
  • Public exploits total: 1
  • References total: 4
  • Products total: 2
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-40393
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-119Improper Restriction of Operations within the Bounds of a Memory Buffer
CWE-787Out-of-bounds Write

Public exploits

UrlSourceAdded date
https://talosintelligence.com/vulnerability_reports/TALOS-2021-1404nvd2021-12-22

References

Same in every row:

  • Source: nvd
UrlTags
https://talosintelligence.com/vulnerability_reports/TALOS-2021-1404Exploit, Third Party Advisory
https://www.debian.org/security/2022/dsa-5306Third Party Advisory
https://lists.debian.org/debian-lts-announce/2023/09/msg00040.html
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/37OSNNO5N5FJZP6ZBYRJMML5HYMJQIX7/

Products

ProductAffectedPlatform boundSourcesUrl
gerbv_project:gerbv= 2.7.0nonvd/v1/products/gerbv_project/gerbv
debian:debian_linux= 11.0, = 10.0, = 9.0nonvd/v1/products/debian/debian_linux

Projects

RepositoryLink kindsIndexedUrl
gerbv/gerbvfixyes/v1/repositories/gerbv/gerbv

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2021-12-22
  • Remote: yes
  • Exposed hosts: 4739835
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports