Race Condition Affecting osgeo/gdal package, versions [,3.4.0-RC1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-OSGEOGDAL-6112458
  • published8 Dec 2023
  • disclosed1 Oct 2023
  • creditUnknown

Introduced: 1 Oct 2023

CVE NOT AVAILABLE CWE-362  (opens in a new tab)

How to fix?

Upgrade osgeo/gdal to version 3.4.0-RC1 or higher.

Overview

Affected versions of this package are vulnerable to Race Condition via the MSG driver. This driver looks for a matching "prologue"-file when calling MSGDataset::Open. The filename depends on the satellite number. There are only 4 satellites and all of them are tried until an existing prologue is found. The satellite number is stored as a static variable iCurrentSatellite and each call to Open triggers a loop that modifies this variable. If multiple threads try to open a MSG dataset, the state of iCurrentSatellite is modified in all threads.

CVSS Base Scores

version 3.1