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 applicationsLearn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.
Start learningUpgrade github.com/expr-lang/expr/vm
to version 1.17.0 or higher.
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the parseExpression()
function in parser.go
, due to the unrestricted size of input strings, which can cause the generation of large Abstract Syntax Trees (ASTs). An attacker can crash the application by supplying excessively long deeply nested expression strings.
This vulnerability can be avoided by checking and limiting the length of input expressions before parsing them.