Vulnerability · Published Jan 27, 2026 · Assigned by GitHub_M

CVE-2026-24738gmrtd ReadFile Vulnerable to Denial of Service via Excessive TLV Length Values

Medium 5.9

In plain English

A medium-severity resource allocation without limits in gmrtd from gmrtd. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 21% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)5.9Medium
Exploit odds (30 days)0.3%top 79.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/gmrtd/gmrtd0.17.2GHSA-j49h-6577-5xwq
Gogithub.com/gmrtd/gmrtd0.17.2GO-2026-4379

Affected products (as reported)

VendorProductVersions
gmrtd gmrtd < 0.17.2

Weakness: CWE-770, CWE-400 · 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

References