inih before r63 Stack Buffer Under-Read in ini_parse_stream Discard Loop
- State
- Published
- Severity
- 4.8 Medium
- Published
- Nov 2, 2026
- Updated
- Nov 6, 2026
- Reserved
- Nov 2, 2026
Description
inih before r63 contains a one-byte stack buffer under-read in ini_parse_stream() in ini.c that allows attackers to read abyss[-1] via an embedded NUL byte after an overlong line. Attackers can supply an INI file or string with a line of at least INI_MAX_LINE-1 bytes followed by a NUL byte, causing undefined behavior reported by memory sanitizers.
| Product | Versions |
|---|---|
| inih benhoyt | before r63 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 4.8 Medium | VulnCheck | |
| 3.1 | 3.3 Low | VulnCheck |
Weaknesses
- CWE-127 Buffer Under-read
References
- https://github.com/benhoyt/inih/pull/206Issue TrackerPatch
- https://github.com/benhoyt/inih/issues/223Issue Tracker
- https://github.com/benhoyt/inih/commit/8e06f6b77b5d4471bdc6d85ada81b67d37354a5cPatch
- https://github.com/benhoyt/inih/blob/r62/ini.c#L162-L169Technical Details
- inih r63 Release NotesRelease Notes
- https://hackmd.io/@haindpwn/inih-long-line-discard-oob-readTechnical Details
- VulnCheck Advisory: inih before r63 Stack Buffer Under-Read in ini_parse_stream Discard LoopThird-Party Advisory
- https://hackmd.io/@haindpwn/cve-2025-71450-inih-long-line-discard-oob-read#Detailed-attack-stepsExploit
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.