{"id":"CVE-2026-24738","published":"2026-01-27T21:08:29Z","modified":"2026-01-28T15:16:31Z","title":"gmrtd ReadFile Vulnerable to Denial of Service via Excessive TLV Length Values","vendor":"gmrtd","product":"gmrtd","tier":"tail","description":{"text":"gmrtd is a Go library for reading Machine Readable Travel Documents (MRTDs). Prior to version 0.17.2, ReadFile accepts TLVs with lengths that can range up to 4GB, which can cause unconstrained resource consumption in both memory and cpu cycles. ReadFile can consume an extended TLV with lengths well outside what would be available in ICs. It can accept something all the way up to 4GB which would take too many iterations in 256 byte chunks, and would also try to allocate memory that might not be available in constrained environments like phones. Or if an API sends data  to ReadFile, the same problem applies. The very small chunked read also locks the goroutine in  accepting data for a very large number of iterations.  projects using the gmrtd library to read files from NFCs can experience extreme slowdowns or memory consumption. A malicious NFC can just behave like the mock transceiver described above and by just sending dummy bytes as each chunk to be read, can make the receiving thread unresponsive and fill up memory on the host system. Version 0.17.2 patches the issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:A/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00281,"percentile":0.21104,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/gmrtd/gmrtd/security/advisories/GHSA-j49h-6577-5xwq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gmrtd/gmrtd/commit/54469a95e5a20a8602ac1457b2110bfeb80c8891","tags":["x_refsource_MISC"]},{"url":"https://github.com/gmrtd/gmrtd/releases/tag/v0.17.2","tags":["x_refsource_MISC"]}],"priority":{"score":8.4,"factors":[{"name":"EPSS percentile","points":4.22},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"gmrtd","affectedVersions":[{"vendor":"gmrtd","product":"gmrtd","versions":["< 0.17.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-01-28T15:16:00.633201Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/gmrtd/gmrtd","vulnerableRanges":["<0.17.2"],"patched":["0.17.2"],"from":["GHSA-j49h-6577-5xwq","GO-2026-4379"],"provenance":"source"}],"summary":{"text":"The gmrtd Go library, which reads Machine Readable Travel Documents, has a flaw in its ReadFile function where it accepts TLV elements with lengths up to 4GB, leading to unbounded consumption of memory and CPU. An attacker positioned within adjacent network range, able to supply data to the reader, can exhaust resources on the host and cause denial of service, and this requires a user to bring a malicious NFC document or device into proximity and interact with the reader, with no authentication needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:11:29Z"},"euvd":{"id":"EUVD-2026-4740","exploited":false,"provenance":"source"}}