# CVE-2026-126049: Gwenhywfar 5.14.2 Use-After-Free via GWEN_TLV_Buffer_To_DB() Nested BER-TLV Parsing

- Severity: Medium 5.1 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2026-11-10T16:58:04.296Z
- Modified: 2026-11-13T16:18:01.667Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- Martin Preuss Gwenhywfar: from 5.14.2 before 5.14.3

## Every score

- VulnCheck: CVSS:4.0 5.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`
- VulnCheck: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/aqbanking/gwenhywfar/commit/828b34135dfa33fc347a2929caa2f079ffb00738> (patch)
- <https://github.com/aqbanking/gwenhywfar/commit/dc8b80945e877f5bdf2d2ae1b50c928c15e990b0> (patch, release-notes)
- <https://www.aquamaniac.de/rdm/projects/gwenhywfar/files> (product)
- <https://github.com/aqbanking/gwenhywfar/blob/f5c3f9dc56aa20cab85fd149885474239cf68632/src/parser/tlv.c#L651-L672> (technical-description)
- <https://www.vulncheck.com/advisories/gwenhywfar-5.14.2-use-after-free-via-gwen-tlv-buffer-to-db-nested-ber-tlv-parsing> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-126049](https://www.cve.org/CVERecord?id=CVE-2026-126049), CVE Terms of Use, modified 2026-11-13
- NVD: [CVE-2026-126049](https://nvd.nist.gov/vuln/detail/CVE-2026-126049), Public domain, modified 2026-11-13

---

Page: https://cve.day/CVE-2026-126049 · Whole record: https://cve.day/CVE-2026-126049.json · Rebuilt by cve.day 2026-11-25T22:59:49.795Z
