CVE-2026-11526
KrytyczneCVSS 9.8Prawdopodobieństwo exploitacji (EPSS)
Podwyższone ryzykoPercentyl 69 - wyżej niż 69% wszystkich znanych CVE
Streszczenie
Biblioteka GD dla Perla przed wersją 2.86 zawiera podatność na wstrzykiwanie poleceń systemu operacyjnego i nadpisywanie plików w funkcji _make_filehandle. Funkcja ta otwiera argument będący nazwą pliku za pomocą dwuargumentowej funkcji open() Perla, która interpretuje prefiksy takie jak '| cmd' jako potok, co pozwala na wykonanie dowolnych poleceń lub nadpisanie plików.
Ocena ryzyka
Atakujący może przekazać nieufną nazwę pliku do konstruktorów GD::Image, co skutkuje wykonaniem dowolnych poleceń lub zniszczeniem plików z uprawnieniami procesu.
Rekomendacja
Należy zaktualizować bibliotekę GD do wersji 2.86 lub nowszej oraz unikać przekazywania nieufnych danych jako nazw plików do funkcji GD::Image.
Oryginalny opis (angielski, źródło NVD)
GD versions before 2.86 for Perl allow OS command injection and file overwrite via a 2-arg open() of filename arguments in _make_filehandle. GD::Image::_make_filehandle opens a filename argument with Perl's 2-arg open(), so a filename that begins or ends with a pipe ("| cmd", "cmd |") or begins with a redirect ("> path", ">> path") is run as a command or redirect rather than opened as a file. _make_filehandle is the single open path behind every filename-accepting constructor (new, newFromPng, newFromJpeg, and the rest); the in-memory *Data variants do not open a path and are unaffected. Any caller that forwards untrusted input to one of these constructors as a pathname can run an arbitrary command or truncate a file under the process UID.

