Stack buffer overflow in Gwenhywfar TLV decoding can crash applications
Key facts
- Attack vector
- Physical
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-121 and the CVSS impact.
Summary
Gwenhywfar from 4.99.8beta before 5.14.2 contains a stack-based buffer overflow (CWE-121) in GWEN_TLV_Buffer_To_DB() when it decodes BER-TLV tags into a fixed 128-byte buffer. A malicious chip card can supply a record with about 127 or more tag continuation bytes or a truncated multi-byte tag, such as an EF_SSD file read by libchipcard's ZKA driver, which crashes the application.
Written with Claude Haiku 5.5 from the sources below · 2026-11-11
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Martin Preuss | Gwenhywfar | 4.99.8beta to before 5.14.2 | 5.14.2 | Patch available | CNA |
- Gwenhywfar VendorMartin Preuss Affected 4.99.8beta to before 5.14.2 Fixed in 5.14.2 Patch available CNA
Remediation
Update Gwenhywfar to version 5.14.2 or later, which fixes the flaw.
Written with Claude Haiku 5.5 from the sources below · 2026-11-11
- Fix · CNA Gwenhywfar (Martin Preuss) Fixed in 5.14.2
Timeline
- 2026-11-10 Threatist record created from CVE-2026-126048
- 2026-11-10 Alias added: GHSA-p2q4-gvgq-p985
- 2026-11-14 CISA SSVC decision points changed
References
Patch 2
More Martin Preuss vulnerabilities
- TI-2026-87884 Use-after-free in Gwenhywfar BER-TLV parsing CVSS 4.0MEDIUM 5.1
Sources
- CVE-2026-126048 · CVE Program
- CVE-2026-126048 · NVD
- FIRST EPSS
- GHSA-p2q4-gvgq-p985 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences