Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious chip card EF_SSD record
-
ExploitVictim inserts card, ZKA driver reads record
-
ExecutionTag continuation bytes overflow 128-byte stack buffer
-
ImpactCrash 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
EUVD-2026-121406
GHSA-p2q4-gvgq-p985
NVD
CVE.org
EPSS
Exploit-DB