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.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-416"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126049.json",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"introduced": "5.14.2"
},
{
"fixed": "5.14.3"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
}
]
}
]
}{
"extracted_events": [
{
"range": [
{
"fixed": "828b34135dfa33fc347a2929caa2f079ffb00738"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "dc8b80945e877f5bdf2d2ae1b50c928c15e990b0"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-126049.json"
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"335281712604939613105583457957185409397",
"42823223876147084458232459262823656804",
"287989837772403066606421038734227543987",
"95681505957865963394610351967840538000"
],
"threshold": 0.9
},
"id": "CVE-2026-126049-4fb99d0e",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/aqbanking/gwenhywfar/commit/828b34135dfa33fc347a2929caa2f079ffb00738",
"target": {
"file": "src/parser/tlv.c"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "164470728705309571243483374959663218215",
"length": 1810
},
"id": "CVE-2026-126049-e8a2f772",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/aqbanking/gwenhywfar/commit/828b34135dfa33fc347a2929caa2f079ffb00738",
"target": {
"file": "src/parser/tlv.c",
"function": "GWEN_TLV_Buffer_To_DB"
}
}
]
"2026-11-14T07:04:12Z"