| { |
| "schema_version": "1.3.1", |
| "id": "GO-2022-0316", |
| "modified": "0001-01-01T00:00:00Z", |
| "published": "2022-07-27T20:27:33Z", |
| "aliases": [ |
| "CVE-2022-23628", |
| "GHSA-hcw3-j74m-qc58" |
| ], |
| "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.", |
| "affected": [ |
| { |
| "package": { |
| "name": "github.com/open-policy-agent/opa", |
| "ecosystem": "Go" |
| }, |
| "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" |
| ] |
| } |
| ] |
| } |
| } |
| ], |
| "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" |
| } |
| ], |
| "database_specific": { |
| "url": "https://pkg.go.dev/vuln/GO-2022-0316" |
| } |
| } |