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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.9
- **CVSS:** 5.9 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: Passive; Confidentiality impact: None; Integrity impact: None; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.36% (percentile 22, 2026-11-28)
- **CWE:** CWE-770, CWE-400
- **Aliases:** GHSA-j49h-6577-5xwq, GO-2026-4379
- **Published:** 2026-01-27T00:57:19.000Z
- **Modified:** 2026-06-17T10:23:30.700Z

## Who should check

- Projects that depend on Go package github.com/gmrtd/gmrtd (\< 0.17.2)
- Anyone running gmrtd \< 0.17.2

## 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 and fixed versions

- Go `github.com/gmrtd/gmrtd`: affected \< 0.17.2; fixed 0.17.2 (osv)
- gmrtd: \< 0.17.2 (cvelist)

## Mitigation

- Upgrade github.com/gmrtd/gmrtd to 0.17.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-24738. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-24738.md
Affected: github.com/gmrtd/gmrtd < 0.17.2
Fixed in: 0.17.2

Steps:
1. Search this machine and project for github.com/gmrtd/gmrtd (Go), gmrtd: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-24738 being exploited?

There is no confirmed exploitation: CVE-2026-24738 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.36% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-24738?

Medium: CVSS 5.9 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-24738?

github.com/gmrtd/gmrtd \< 0.17.2.

### Is there a fix for CVE-2026-24738?

Yes. Fixed in 0.17.2. Upgrade github.com/gmrtd/gmrtd to 0.17.2 or later.

### How do I check if I'm affected by CVE-2026-24738?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/gmrtd/gmrtd/security/advisories/GHSA-j49h-6577-5xwq>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-24738>
- patch: <https://github.com/gmrtd/gmrtd/commit/54469a95e5a20a8602ac1457b2110bfeb80c8891>
- other: <https://github.com/gmrtd/gmrtd/releases/tag/v0.17.2>
- other: <https://github.com/gmrtd/gmrtd>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-24738>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-j49h-6577-5xwq> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2026-4379> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-24738> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-24738>
