{"cve":"CVE-2026-24738","nvd":{"published":"2026-01-27T21:16:03.117","modified":"2026-06-17T10:23:30.700","status":"Analyzed","description":"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.","cvss_v4":{"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","score":5.9},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":6.5},"cwes":["CWE-400","CWE-770"],"references":["https://github.com/gmrtd/gmrtd/commit/54469a95e5a20a8602ac1457b2110bfeb80c8891","https://github.com/gmrtd/gmrtd/releases/tag/v0.17.2","https://github.com/gmrtd/gmrtd/security/advisories/GHSA-j49h-6577-5xwq"],"products":["gmrtd:gmrtd"],"source":"nvd","synced_at":"2026-10-19T22:21:16.563232421+00:00"},"epss":{"cve":"CVE-2026-24738","score":0.00281,"percentile":0.20656,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-j49h-6577-5xwq","url":"https://osv.dev/vulnerability/GHSA-j49h-6577-5xwq","summary":"gmrtd ReadFile Vulnerable to Denial of Service via Excessive TLV Length Values","modified":"2026-02-03T03:05:45.673223Z","packages":[{"ecosystem":"Go","name":"github.com/gmrtd/gmrtd","purl":"pkg:golang/github.com/gmrtd/gmrtd","ranges":["<0.17.2"],"fixed":["0.17.2"]}]},{"id":"GO-2026-4379","url":"https://osv.dev/vulnerability/GO-2026-4379","summary":"gmrtd ReadFile Vulnerable to Denial of Service via Excessive TLV Length Values in github.com/gmrtd/gmrtd","modified":"2026-03-03T04:57:55.473225Z","packages":[{"ecosystem":"Go","name":"github.com/gmrtd/gmrtd","purl":"pkg:golang/github.com/gmrtd/gmrtd","ranges":["<0.17.2"],"fixed":["0.17.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}