CVE-2026-24738 Details
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.
A denial-of-service vulnerability exists in the gmrtd library, specifically in the ReadFile function, prior to version 0.17.2. The issue arises from the function's acceptance of TLV (Tag-Length-Value) data with lengths up to 4GB, leading to excessive consumption of CPU and memory resources. This unbounded length processing can cause applications to hang and become unresponsive, particularly when reading data from NFC sources. The vulnerability can be exploited by a malicious NFC transceiver that sends dummy bytes in small chunks, creating a scenario where the application becomes overwhelmed and unresponsive. This issue has been addressed in version 0.17.2, which enforces strict limits on TLV lengths and improves the handling of file reads to prevent such resource exhaustion.
Users should upgrade to gmrtd version 0.17.2 or later, which addresses the vulnerability by implementing maximum allowable TLV lengths and improving the management of read operations.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 28, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-400 | Uncontrolled Resource Consumption | [email protected] |
| CWE-770 | Allocation of Resources Without Limits or Throttling | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| gmrtd gmrtd | < 0.17.2 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 4, 2026 | Initial Analysis | [email protected] |
| Jan 27, 2026 | New CVE Received | [email protected] |