CVE Catalog
EnglishPolski(English translation not available - showing Polish)

CVE-2025-29786

High
Published: Translated: NVD NIST

Summary

Expr to język wyrażeń oraz ocena wyrażeń dla Go. Przed wersją 1.17.0, parser wyrażeń Expr, gdy otrzyma nieograniczony ciąg wejściowy, próbuje skompilować cały ciąg i generować węzeł drzewa składniowego (AST) dla każdej części wyrażenia, co może prowadzić do nadmiernego zużycia pamięci i awarii procesu z powodu braku pamięci.

Risk Assessment

Ryzyko dla organizacji polega na tym, że nieograniczone wejście może prowadzić do awarii aplikacji z powodu nadmiernego zużycia pamięci, co może wpłynąć na dostępność usług.

Recommendation

Zaleca się aktualizację do najnowszej wersji biblioteki Expr, która wprowadza ograniczenia dotyczące liczby węzłów AST oraz zużycia pamięci podczas parsowania, aby zapobiec problemom z pamięcią.

Related vulnerabilities

Original NVD description (English source)

Expr is an expression language and expression evaluation for Go. Prior to version 1.17.0, if the Expr expression parser is given an unbounded input string, it will attempt to compile the entire string and generate an Abstract Syntax Tree (AST) node for each part of the expression. In scenarios where input size isn’t limited, a malicious or inadvertent extremely large expression can consume excessive memory as the parser builds a huge AST. This can ultimately lead to*excessive memory usage and an Out-Of-Memory (OOM) crash of the process. This issue is relatively uncommon and will only manifest when there are no restrictions on the input size, i.e. the expression length is allowed to grow arbitrarily large. In typical use cases where inputs are bounded or validated, this problem would not occur. The problem has been patched in the latest versions of the Expr library. The fix introduces compile-time limits on the number of AST nodes and memory usage during parsing, preventing any single e

Vulnerability data from NVD (NIST) · CISA KEV · EPSS