CVE-2022-23947
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedA stack-based buffer overflow vulnerability exists in the Gerber Viewer gerber and excellon DCodeNumber parsing functionality of KiCad EDA 6.0.1 and master commit de006fc010. A specially-crafted gerber or excellon file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceA stack-based buffer overflow vulnerability exists in the KiCad Gerber Viewer DCodeNumber parsing functionality. Specially-crafted Gerber or Excellon files with malformed DCode numbers can overflow a stack-allocated buffer during parsing, leading to arbitrary code execution.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data= 35= 9.0= 10.0= 11.0= 6.0.1CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Local
- Complexity
- Low
- Privileges
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Determine if KiCad is installedCheck for KiCad installation using your system's package manager or by searching for kicad executable (e.g., 'which kicad', 'dpkg -l | grep kicad', or 'rpm -qa | grep kicad')Affected if KiCad is not installed on the system - no action needed
-
Identify the installed KiCad versionRun 'kicad --version' or check via package manager: 'dpkg -l kicad' for Debian-based systems or 'rpm -q kicad' for RPM-based systemsAffected if The installed version matches or falls within the affected ranges: KiCad 6.0.1, Fedora 35, Debian 9.0/10.0/11.0
-
Check if Gerber Viewer component is accessibleLaunch KiCad and verify if the Gerber Viewer (gerbview) module is available, or check for gerbview executable on the systemAffected if The Gerber Viewer module is present and can be used to open Gerber or Excellon files
-
Confirm usage of the affected parsing functionalityAttempt to open or inspect any Gerber (.gbr, .gtl, .gbs, etc.) or Excellon (.drl, .nc) files using the Gerber Viewer, as the vulnerability triggers during DCodeNumber parsing of these file typesAffected if The user can parse Gerber or Excellon files through the KiCad Gerber Viewer - the vulnerable code path is exercised when these files are opened
A user is affected if they are running an unpatched KiCad installation version 6.0.1 (or the affected Fedora/Debian packages) and use the Gerber Viewer to open Gerber or Excellon files, as the buffer overflow occurs during DCodeNumber parsing of these file formats.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpdate KiCad to the latest version containing the security patch. Until patched, exercise extreme caution when opening Gerber or Excellon files from untrusted sources.
KiCad 6.0.2 or later
- Verify current KiCad version by opening the application and checking Help > About, or run `kicad --version`
- Backup any existing KiCad projects and libraries as a precautionary measure
- Update package repository: On Fedora run `sudo dnf check-update` then `sudo dnf update kicad`, or on Debian/Ubuntu run `sudo apt update` then `sudo apt install --upgrade kicad`
- Alternatively, download KiCad 6.0.2 or later from the official KiCad website: https://www.kicad.org/download/
- Install the updated package or installer
- Restart KiCad and verify the version shows 6.0.2 or higher
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation8.0 h
- Testing4.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,480.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2022-23947 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2022-23947 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data