| शीर्षक | OSGeo libgeotiff master commit 75cfca539667c6483e796b24b78ecef72e311a1a (commit date 2026-08-11) Stack-based Buffer Overflow |
|---|
| विवरण | A vulnerability was found in libgeotiff master commit 75cfca539667c6483e796b24b78ecef72e311a1a and classified as high 8.8. Affected is the GTIFProj4ToLatLong function of the geotiff_proj4.c component as reached by the listgeo command-line utility (bin/listgeo.c:197 GTIFReportACorner). The manipulation of the ellipsoid semi-major/semi-minor axis values in a crafted GeoTIFF input file leads to a stack-based buffer overflow: an unbounded sprintf() in the inlined helper GTIFProj4AppendEllipsoid() (geotiff_proj4.c:47) appends "+a=%.3f +b=%.3f " with attacker-controlled doubles into the fixed 256-byte stack buffer szLongLat[256] and writes past its end. It is possible to launch the attack remotely by delivering the crafted file; user interaction is required because the file must be processed by listgeo.
Technical Details
- Affected file/function: geotiff_proj4.c / GTIFProj4ToLatLong() with inlined GTIFProj4AppendEllipsoid(); shared helper call sites at geotiff_proj4.c:1342 (GTIFGetProj4Defn) and geotiff_proj4.c:1376 (GTIFProj4FromLatLong)
- Vulnerable parameter: ellipsoid axis values derived from the input file's GeoTIFF keys (rendered with "%.3f")
- Attack vector: Network (crafted file delivered to the party running listgeo)
- Privileges required: None
- Trigger condition: listgeo prints the corner coordinates of a GeoTIFF whose ellipsoid keys carry extreme axis values; AddressSanitizer reports "stack-buffer-overflow, WRITE of size 253" at geotiff_proj4.c:1433 in GTIFProj4ToLatLong, in the 256-byte szLongLat buffer declared at geotiff_proj4.c:1431
Impact
- Confidentiality: High (attacker-influenced stack overwrite; adjacent stack objects coord and tmp are corrupted)
- Integrity: High (write of several hundred attacker-influenced bytes past a stack buffer)
- Availability: High (deterministic process abort/crash)
CVSS v3.1
Score: 8.8 (High)
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Timeline
- Discovered: 2026-11-01
- Vendor notified: [pending] (public GitHub issue planned at https://github.com/OSGeo/libgeotiff/issues)
- Patch released: [pending]
- Public disclosure: [pending]
Countermeasure
Bound the append in GTIFProj4AppendEllipsoid(): check the remaining destination space before formatting or replace sprintf() with snprintf()/a growable string; apply the same hardening to the sibling call sites at geotiff_proj4.c:1342 and :1376. Until a fix is available, avoid running listgeo on untrusted GeoTIFF files.
Note: the prior stack overflow in the same tool (CVE-2014-8330, fixed in 1.4.1) was at a different code site; this is a distinct defect.
|
|---|
| स्रोत | ⚠️ https://github.com/OSGeo/libgeotiff/issues/150 |
|---|
| उपयोगकर्ता | muteki (UID 102683) |
|---|
| सबमिशन | 03/11/2026 02:20 AM (25 दिन पहले) |
|---|
| संयम | 28/11/2026 08:28 AM (25 days later) |
|---|
| स्थिति | स्वीकृत |
|---|
| VulDB प्रविष्टि | 445084 [OSGeo libgeotiff तक 1.7.4 listgeo geotiff_proj4.c GTIFProj4ToLatLong SemiMajor/SemiMinor बफ़र ओवरफ़्लो] |
|---|
| अंक | 20 |
|---|