Skip to main content

Gwenhywfar EUVDEUVD-2026-121406

| CVE-2026-126048 MEDIUM
Stack-based Buffer Overflow (CWE-121)
2026-11-10 VulnCheck GHSA-p2q4-gvgq-p985
5.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious chip card EF_SSD record
  2. Exploit
    Victim inserts card, ZKA driver reads record
  3. Execution
    Tag continuation bytes overflow 128-byte stack buffer
  4. Impact
    Crash banking application (DoS)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires an attacker-supplied malicious smart card whose EF_SSD file carries a BER-TLV tag with ~127+ continuation bytes or a truncated multi-byte tag, parsed by an application that links Gwenhywfar (versions 4.99.8beta through pre-5.14.2) and reads the card through libchipcard's ZKA driver. Limiting factors: the attack vector is Physical (AV:P) - the victim must insert/read the crafted card; impact is limited to crashing the application (availability only, no confidentiality/integrity impact and no code execution claimed); and only software built on the vulnerable Gwenhywfar TLV parser invoked on this card data is affected.

Impact

This is a genuinely low-to-medium priority issue despite the stack-based buffer overflow classification (CWE-121). The CVSS 4.0 vector (AV:P/AC:L/AT:N/PR:N/UI:N) scores 5.1 (medium) and is dominated by the Physical attack vector and an availability-only impact (VA:H; VC:N/VI:N): the description and the vendor source diff both characterize the outcome as 'to crash the application' - i.e., denial of service, not code execution. No EPSS score was provided in the input and the CVE is not on CISA KEV, so there is no confirmed active exploitation. No PoC or exploit reference is present among the sources (only patches, the vendor file index, a source-line pointer, and the VulnCheck advisory), so the exploitation status is: no public exploit identified at time of analysis. The vuln.today decision label is 'this_month', consistent with a patch-available medium-severity flaw rather than an emergency. One caveat defenders should note: the bug class is a stack buffer overflow, which can in principle enable more than a crash, but neither the description nor the source evidence claims memory corruption beyond crashing - treat the impact as DoS unless the vendor states otherwise.

Exploit ScenarioDerived

An attacker crafts a malicious chip card whose EF_SSD file contains a BER-TLV record with roughly 127 or more tag continuation bytes (or a truncated multi-byte tag). When a victim inserts the card and an application using Gwenhywfar via libchipcard's ZKA driver reads and parses the record, GWEN_TLV_Buffer_To_DB() writes two hex characters per tag byte past the end of the fixed 128-byte stack buffer, crashing the application. Exploitation requires physical delivery of the malicious card (AV:P); no public exploit code was identified.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 10, 2026

A stack-based buffer overflow in Gwenhywfar's BER-TLV decoder (GWEN_TLV_Buffer_To_DB() in src/parser/tlv.c) lets a crafted tag crash any application built on the library, affecting releases from 4.99.8beta up to (but not including) 5.14.2. The realistic path is a malicious chip card whose EF_SSD file is read through libchipcard's ZKA driver and carries a tag with roughly 127 or more continuation bytes or a truncated multi-byte tag; because the attack vector is physical (the victim must insert or present the card), impact is limited to denial of service - no confidentiality, integrity, or code-execution impact is claimed. Upstream fix commits are published and version 5.14.2 is listed as the fixed release; no public exploit code or confirmed active exploitation (CISA KEV) was identified at time of analysis.

RemediationAI

Upgrade Gwenhywfar to 5.14.2 or later, which contains the bounded tag handling introduced in the upstream fix commits https://github.com/aqbanking/gwenhywfar/commit/ed8e2f8cdc27fd5c1b629cf9c1f6b93b2e009757 and https://github.com/aqbanking/gwenhywfar/commit/6b50388e6b4a96f02d3d56e1d7747405fa881f39; release archives are published at https://www.aquamaniac.de/rdm/projects/gwenhywfar/files, and applications embedding the library (including libchipcard consumers) must be rebuilt against the patched version because the fix lives in the linked library rather than the host application. No vendor-documented workaround is provided; the only complete fix is updating. As a stop-gap where upgrading is not yet possible, avoid processing EF_SSD data from untrusted or externally supplied cards through the ZKA driver - disable or restrict card-based workflows to known/controlled cards - accepting that this removes smart-card functionality, and treat any resulting crash of a card-aware application as evidence the vulnerable parser was reached.

Affected VersionsENISA

Gwenhywfar 4.99.8beta <5.14.2

Affected Packages

euvd gwenhywfar fix: 5.14.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Gwenhywfar is the base C library used by the AqBanking/GnuCash-adjacent ecosystem to talk to German banking hardware, and its TLV parser implements BER-TLV (the ASN.1-style tag/length/value encoding used by smart cards). In GWEN_TLV_Buffer_To_DB(), the tag field is read byte by byte from a GWEN_BUFFER; any byte greater than 127 signals that another tag byte follows, so a long run of continuation bytes drives the loop many times. The pre-fix code stored the tag in a fixed char tag[128] and expanded each input byte with hex2char(), which writes two ASCII characters per byte into a buffer that was advanced only one position per iteration, with no check that room remained - a classic CWE-121 stack-based buffer overflow. The upstream commits (ed8e2f8cdc27fd5c1b629cf9c1f6b93b2e009757 and 6b50388e6b4a96f02d3d56e1d7747405fa881f39) replace hex2char() with _writeByteAsHex(), enlarge the buffer to uint8_t tag[129], advance tag_len by two per byte, and only write when (tag_len+3)<=sizeof(tag), so a truncated or over-long multi-byte tag terminates the loop instead of overrunning the stack. The overflow damages stack memory only, which is why availability (A:H) is the sole assessed impact.

Know when Gwenhywfar gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 5.1 MEDIUM
CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 4.6 MEDIUM

Exploitation needs physical delivery of a malicious chip card (AV:P) with no privileges or special complexity, and the evidence shows only an application crash, so C:N/I:N/A:H.

3.1 AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:P/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Physical
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

Gwenhywfar 4.99.8beta before 5.14.2 contains a stack-based buffer overflow in GWEN_TLV_Buffer_To_DB() in src/parser/tlv.c when decoding BER-TLV tags into a fixed 128-byte buffer. Attackers can supply a record with about 127 or more tag continuation bytes or a truncated multi-byte tag, such as via a malicious chip card's EF_SSD file read by libchipcard's ZKA driver, to crash the application.

Threat Intelligence Overview

EPSS Score
0.2%
Top 87% exploitable
Prevalence
Low
niche banking/smart-card library (AqBanking/libchipcard HBCI stack), mostly German online banking
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy