Katalog CVE

CVE-2026-82735

ŚrednieCVSS 5.9
Opublikowano: Zaktualizowano: Przetłumaczono: NVD NIST

Prawdopodobieństwo exploitacji (EPSS)

Niskie ryzyko
0.14%

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

Streszczenie

Podatność na niekontrolowane zużycie zasobów w bibliotece ash pozwala atakującemu wymusić wykonanie kosztownego wyrażenia regularnego na danych wejściowych, które powinny zostać odrzucone przez ograniczenia długości. Walidacja typu Ash.Type.String.apply_constraints/2 nie sprawdzała ograniczeń długości przed zastosowaniem wzorca :match, co umożliwiało katastrofalną ocenę wyrażenia regularnego na dużych danych wejściowych. Poprawka pomija wzorzec :match, gdy ograniczenie długości jest naruszone.

Ocena ryzyka

Atakujący może spowodować znaczne obciążenie procesora na serwerze, prowadząc do odmowy usługi (DoS) poprzez wysyłanie odpowiednio spreparowanych żądań.

Rekomendacja

Zaktualizuj bibliotekę ash do wersji 3.32.2 lub nowszej, aby wyeliminować podatność.

Inne podatności w ash

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

Uncontrolled Resource Consumption vulnerability in ash-project ash allows an attacker to force an expensive regular expression to run on input that a length constraint should have already rejected. Ash.Type.String.apply_constraints/2 (lib/ash/type/string.ex) evaluated the :match regex regardless of the min_length and max_length constraints on the same attribute. Because the length check did not gate the regex, an over-length value that the length constraint rejects still had the pattern applied to it, so the length limit that would otherwise bound the work never constrained the regex input. Against a backtracking pattern this yields catastrophic regex evaluation on attacker-sized input, and even a linear pattern runs on arbitrarily large input, consuming CPU per request. The fix skips the :match regex whenever a length constraint is violated, making the two checks order-independent. This issue affects ash: from 0.10.0 before 3.32.2.

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