All advisories

Security advisoryCVE-2026-126048

Gwenhywfar 4.99.8beta before 5.14.2 Stack Buffer Overflow via GWEN_TLV_Buffer_To_DB()

Published:

Severity
Medium5.1
Vulnerability type
Stack-based Buffer Overflow (CWE-121)
Fixed in
Gwenhywfar 5.14.2
Credit
Discovered by Deus Rex Research
Published

CVSS 4.0 vector5.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

CVSS 3.1 vector4.6 Medium

CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Description

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.

Affected versions

Gwenhywfar>= 4.99.8beta, < 5.14.2

Remediation

Fixed in Gwenhywfar 5.14.2. View the upstream fix (opens in a new tab)

References

Advisories may be reused freely, without charge or registration.

To report a vulnerability in Deus Rex, contact disclosure@cyrex.tech.