{"id":"GO-2022-0316","summary":"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.","aliases":["CVE-2022-23628","GHSA-hcw3-j74m-qc58"],"modified":"2024-05-20T16:03:47Z","published":"2022-07-27T20:27:33Z","database_specific":{"url":"https://pkg.go.dev/vuln/GO-2022-0316","review_status":"REVIEWED"},"references":[{"type":"ADVISORY","url":"https://github.com/open-policy-agent/opa/security/advisories/GHSA-hcw3-j74m-qc58"},{"type":"FIX","url":"https://github.com/open-policy-agent/opa/commit/932e4ffc37a590ace79e9b75ca4340288c220239"},{"type":"WEB","url":"https://github.com/open-policy-agent/opa/commit/2bd8edab9e10e2dc9cf76ae8335ced0c224f3055"}],"affected":[{"package":{"name":"github.com/open-policy-agent/opa","ecosystem":"Go","purl":"pkg:golang/github.com/open-policy-agent/opa"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.33.1"},{"fixed":"0.37.2"}]}],"ecosystem_specific":{"imports":[{"path":"github.com/open-policy-agent/opa/format","symbols":["Ast","MustAst","Source","groupIterable"]}]},"database_specific":{"source":"https://vuln.go.dev/ID/GO-2022-0316.json"}}],"schema_version":"1.7.3"}