Go Vulnerability Database
GO-2022-0316
Incorrect calculation in github.com/open-policy-agent/opa
Details
Pretty-printing an AST that contains synthetic nodes can change the logic of some statements by reordering array literals.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/open-policy-agent/opa | From 0.33.1 before 0.37.2 (fixed in 0.37.2) |