You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
In GDAL 3.1.0 through 3.13.0, scanForGeometryContainers in the netCDF driver … #525297
In GDAL 3.1.0 through 3.13.0, scanForGeometryContainers in the netCDF driver allows code execution via a stack-based buffer overflow. It reads a geometry attribute into a fixed-size stack buffer without validating the attribute length. The attacker embeds the exploit as an oversized geometry attribute in a crafted NetCDF file. This achieves arbitrary code execution on the server running GDAL. This is in frmts/netcdf/netcdfsg.cpp.
@NixOS/geospatial 3.13.1 was landed on unstable but from what I can see 26.05 is still at 3.12.4 and was not patched for this issue. Is it fine to backport the upgrade to 3.13.1 or do we need to patch the 3.12.4 version we have in 26.05?
Answer : "The only maintained branch currently is 3.13". So I'd vote for a backport of 3.13, but I guess we can also maintain that patch on top of 3.12 if it applies cleanly. WDYT @imincik?
Answer : "The only maintained branch currently is 3.13". So I'd vote for a backport of 3.13, but I guess we can also maintain that patch on top of 3.12 if it applies cleanly. WDYT @imincik?
I would prefer patch for 3.12. I recently added few patches
Activity
LeSuisse commentedon Jul 17, 2026
@NixOS/geospatial 3.13.1 was landed on unstable but from what I can see 26.05 is still at 3.12.4 and was not patched for this issue. Is it fine to backport the upgrade to 3.13.1 or do we need to patch the 3.12.4 version we have in 26.05?
autra commentedon Jul 17, 2026
I've asked upstream. If upstream doesn't backport, I'd be in favor of backporting 3.13, if it doesn't cause other issues.
autra commentedon Jul 17, 2026
Answer : "The only maintained branch currently is 3.13". So I'd vote for a backport of 3.13, but I guess we can also maintain that patch on top of 3.12 if it applies cleanly. WDYT @imincik?
imincik commentedon Jul 20, 2026
I would prefer patch for 3.12. I recently added few patches
gdal: add patch for buffer overflow in netCDF driver
imincik commentedon Jul 20, 2026
@LeSuisse @autra , please review #543748