Katalog CVE

CVE-2026-84243

WysokieCVSS 7.0
Opublikowano: Zaktualizowano: Przetłumaczono: NVD NIST

Prawdopodobieństwo exploitacji (EPSS)

Niskie ryzyko
0.30%

Percentyl 22 - wyżej niż 22% wszystkich znanych CVE

Streszczenie

Podatność w bibliotece GNU C Library (glibc) w wersji 2.0 i późniejszych dotyczy funkcji gettext, które akceptują wpisy zmiennej środowiskowej LANGUAGE zawierające '/' lub równe '..'. Pozwala to atakującemu na załadowanie spreparowanego pliku katalogu komunikatów (.mo) z dowolnej lokalizacji w systemie plików, co może doprowadzić do awarii programu lub wykonania dowolnego kodu z uprawnieniami programu. Podatność nie jest objęta wcześniejszą poprawką CVE-2014-0475, która dotyczyła innych zmiennych środowiskowych.

Ocena ryzyka

Organizacja może być narażona na wykonanie dowolnego kodu lub awarię aplikacji, jeśli atakujący ma możliwość ustawienia zmiennych LANGUAGE i LANG/LC_ALL w środowisku programu korzystającego z gettext, np. przez serwer SSH z dyrektywą AcceptEnv. Może to pozwolić na obejście ograniczeń konta i eskalację uprawnień.

Rekomendacja

Zaktualizuj GNU C Library do wersji zawierającej poprawkę dla CVE-2026-84243. Dodatkowo ogranicz akceptowanie zmiennych LANGUAGE i LANG/LC_ALL z niezaufanych źródeł (np. wyłącz lub zawęź AcceptEnv w SSH) oraz upewnij się, że katalogi z katalogami komunikatów są niedostępne do zapisu dla użytkowników.

Inne podatności w GNU C Library

Zobacz wszystkie
Oryginalny opis (angielski, źródło NVD)

The gettext family of functions in the GNU C Library version 2.0 and later accept LANGUAGE environment variable entries that contain '/' or that are equal to "..", unless the program is setuid or setgid (AT_SECURE). An attacker who can set LANGUAGE in the environment of a program that uses gettext can make it load a message catalog (.mo file) from an arbitrary location in the file system. A crafted .mo file can crash the program through out-of-range offsets, or supply translations whose format directives do not match the arguments passed by the program. That causes undefined behaviour in the printf family of functions and may allow arbitrary code execution with the privileges of the program. The safety of message catalogs relies on them being installed in trusted, read-only locations, and the directory traversal bypasses this. The fix for CVE-2014-0475 rejects ".." path components in locale names passed to setlocale or taken from the LC_ALL, LC_* and LANG environment variables. gettext reads LANGUAGE directly and appends each colon-separated entry to the message catalog directory, so that fix did not cover LANGUAGE. LANGUAGE is only used when the LC_MESSAGES locale is not "C", "C.<encoding>" or "POSIX", so the attacker must also be able to select another installed locale, for example through LANG or LC_ALL. Exploitation also requires that the attacker can place the crafted file in a location readable by the target program, and that the environment crosses a trust boundary without the program running as AT_SECURE. An example is an SSH server that accepts LANGUAGE and LANG from clients through the AcceptEnv directive and restricts an account to a forced command; the attacker may use this to escape the restriction.

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS