Read the docs

Use-after-free in Gwenhywfar BER-TLV parsing

Priority LOW 23CWE-416Published · Updated

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-416 and the CVSS impact.

Summary

Gwenhywfar 5.14.2 contains a heap use-after-free flaw in GWEN_TLV_Buffer_To_DB() in src/parser/tlv.c. The function frees a nested record's GWEN_DB node when parsing its contents fails, then keeps processing and adds the freed node to the parent instead of returning. An attacker can supply a constructed BER-TLV record with unparseable contents, such as via a malicious chip card read by libchipcard, to corrupt heap memory (CWE-416).

Written with Claude Haiku 5.5 from the sources below · 2026-11-11

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00194 9th percentileScored 2026-11-16
Fix Fixed Gwenhywfar (Martin Preuss): 5.14.3

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

VendorProductAffected versionsFixed inStatusSource
Martin PreussGwenhywfar5.14.2 to before 5.14.35.14.3Patch availableCNA
  • Gwenhywfar VendorMartin Preuss Affected 5.14.2 to before 5.14.3 Fixed in 5.14.3 Patch available CNA

Remediation

Update Gwenhywfar to version 5.14.3, which fixes the flaw in affected versions from 5.14.2 before 5.14.3.

Written with Claude Haiku 5.5 from the sources below · 2026-11-11

  • Fix · CNA Gwenhywfar (Martin Preuss) Fixed in 5.14.3

Timeline

  1. 2026-11-10 Threatist record created from CVE-2026-126049
  2. 2026-11-10 Alias added: GHSA-q838-74px-f7cc
  3. 2026-11-13 CISA SSVC decision points changed

References

  • TI-2026-87883 Stack buffer overflow in Gwenhywfar TLV decoding can crash applications CVSS 4.0MEDIUM 5.1

Sources