{"id":"CVE-2026-126049","published":"2026-11-10T16:58:04Z","modified":"2026-11-13T15:27:55Z","title":"Gwenhywfar 5.14.2 Use-After-Free via GWEN_TLV_Buffer_To_DB() Nested BER-TLV Parsing","vendor":"Martin Preuss","product":"Gwenhywfar","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.6,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00194,"percentile":0.09265,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://github.com/aqbanking/gwenhywfar/commit/828b34135dfa33fc347a2929caa2f079ffb00738","tags":["patch"]},{"url":"https://github.com/aqbanking/gwenhywfar/commit/dc8b80945e877f5bdf2d2ae1b50c928c15e990b0","tags":["release-notes","patch"]},{"url":"https://www.aquamaniac.de/rdm/projects/gwenhywfar/files","tags":["product"]},{"url":"https://github.com/aqbanking/gwenhywfar/blob/f5c3f9dc56aa20cab85fd149885474239cf68632/src/parser/tlv.c#L651-L672","tags":["technical-description"]},{"url":"https://www.vulncheck.com/advisories/gwenhywfar-5.14.2-use-after-free-via-gwen-tlv-buffer-to-db-nested-ber-tlv-parsing","tags":["third-party-advisory"]}],"priority":{"score":5.1,"factors":[{"name":"EPSS percentile","points":1.85},{"name":"CVSS severity","points":3.22}]},"vendorSlug":"martin-preuss","affectedVersions":[{"vendor":"Martin Preuss","product":"Gwenhywfar","versions":[">= 5.14.2, < 5.14.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-13T15:27:41.189264Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-121407","exploited":false,"provenance":"source"}}