Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPresent malicious BER-TLV chip card locally
-
ExploitParser fails on nested record contents
-
ExecutionFreed GWEN_DB node reused and attached to parent
-
ImpactHeap corruption and application crash
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires delivering a constructed BER-TLV record whose nested record has unparseable contents to GWEN_TLV_Buffer_To_DB(), so that the parse-failure branch frees the nested GWEN_DB node and then adds the freed node to the parent instead of returning. A realistic delivery path named in the description is a malicious chip card read through libchipcard. Limiting factors: the attack vector is Physical (AV:P), meaning the attacker must get the malicious TLV data to the local parser rather than reach it over a network; no authentication is involved (PR:N) and no user interaction is required (UI:N); and impact is limited to availability/heap corruption (VA:H) with no confidentiality or integrity impact. |
| Impact | This is a genuine memory-corruption bug but a low-priority one in real-world risk terms, and the signals are consistent rather than conflicting. The CVSS 4.0 vector (AV:P/AC:L/AT:N/PR:N/UI:N) scores only 5.1 because the attack vector is Physical: the malicious BER-TLV data has to reach the parser through local means such as a crafted chip card read by libchipcard, which sharply limits scalability versus a network-reachable flaw. Impact is confined to availability (VA:H) with no confidentiality or integrity impact (VC:N/VI:N), so the realistic outcome is heap corruption and application crash rather than data theft; whether the use-after-free is further exploitable for code execution is not established by the sources. There is no CISA KEV listing and no EPSS score was supplied, so there is no evidence of active or probable exploitation - exploitation status is 'no public exploit identified at time of analysis.' The vulnerability was reported by VulnCheck and a vendor patch exists, and the publisher priority label is 'this_month,' which matches a patch-on-a-normal-cadence posture rather than an emergency. Note one metadata inconsistency: the input carries an 'Information Disclosure' tag, but the CVSS vector sets VC:N (no confidentiality impact) and the description is pure memory corruption/availability - treat the disclosure framing as unsupported. |
| Exploit ScenarioDerived | An attacker crafts a BER-TLV record whose nested record contains unparseable contents and presents it to a Gwenhywfar-based application - for example by having libchipcard read a malicious smart card. When parsing of the nested record's contents fails, the code frees the nested GWEN_DB node but then adds that freed node to the parent instead of returning, producing a heap use-after-free that corrupts memory and typically crashes the application. No public exploit code is identified; the Physical attack vector means the attacker must get the malicious TLV data to the local parser. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 10, 2026
A heap use-after-free in Gwenhywfar's BER-TLV parser (GWEN_TLV_Buffer_To_DB() in src/parser/tlv.c) allows a crafted TLV record with unparseable nested contents to corrupt heap memory, with availability impact. The flaw is reachable only through local delivery of the malformed data - the description names a malicious chip card read via libchipcard - which is why it is scored CVSS 4.0 5.1 / assessed CVSS 3.1 AV:P with high availability impact and no confidentiality or integrity impact. No public exploit code has been identified at time of analysis and there is no KEV listing; vendor-supplied fixes are available as upstream commits (828b34135dfa33fc347a2929caa2f079ffb00738 and dc8b80945e877f5bdf2d2ae1b50c928c15e990b0), though no tagged release version is given in the supplied data.
RemediationAI
Apply the vendor-supplied upstream fixes, commits 828b34135dfa33fc347a2929caa2f079ffb00738 and dc8b80945e877f5bdf2d2ae1b50c928c15e990b0 (https://github.com/aqbanking/gwenhywfar/commit/828b34135dfa33fc347a2929caa2f079ffb00738 and https://github.com/aqbanking/gwenhywfar/commit/dc8b80945e877f5bdf2d2ae1b50c928c15e990b0), which add the missing return after GWEN_DB_Group_free(dbTLV); patched release tarballs should be taken from https://www.aquamaniac.de/rdm/projects/gwenhywfar/files, and distributions carrying Gwenhywfar should be checked for a backport of that fix since the supplied data does not name a released fixed version number. Because the assessed attack vector is physical/local - the malformed BER-TLV must reach the parser, for example via a chip card read through libchipcard - the practical interim control is to avoid processing cards or TLV data from untrusted sources on hosts running affected builds until the commit is applied; the sources describe no other workaround, so updating remains the complete fix.
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 a supporting library used by the aqbanking/libchipcard stack; its src/parser/tlv.c implements BER-TLV decoding, converting raw tag-length-value buffers into GWEN_DB record trees. In GWEN_TLV_Buffer_To_DB(), when parsing of a nested TLV record's contents fails, the error path calls GWEN_DB_Group_free(dbTLV) to release the nested GWEN_DB node but then continues processing and attaches that already-freed node to the parent record instead of returning - a classic CWE-416 use-after-free that leaves the parent tree holding a dangling pointer and corrupts heap state on subsequent access. The upstream fix is a one-line control-flow correction adding return rv; immediately after the free, so the failed nested record is not linked into the parent. The CPE cpe:2.3:a:martin_preuss:gwenhywfar:*:*:*:*:*:*:*:* indicates the affected component is the Gwenhywfar library itself; the advisory names version 5.14.2, and the parser is exercised by consumers such as libchipcard when reading chip cards, which is the delivery path cited in the description. The trigger conditions beyond the malformed nested TLV are not described in the available sources.
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
Malicious TLV data must reach a local parser (e.g. a chip card), so AV:P; no auth or interaction (PR:N/UI:N); impact is heap-corruption crash only, so C:N/I:N/A:H.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Gwenhywfar 5.14.2 contains a heap use-after-free vulnerability in GWEN_TLV_Buffer_To_DB() in src/parser/tlv.c, which frees a nested record's GWEN_DB node when parsing of its contents fails but continues processing and adds the freed node to the parent instead of returning. Attackers can supply a constructed BER-TLV record with unparseable contents, such as via a malicious chip card read by libchipcard, to corrupt heap memory.
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
Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-121407
GHSA-q838-74px-f7cc
NVD
CVE.org
EPSS
Exploit-DB