GO-2022-0316

Source
https://pkg.go.dev/vuln/GO-2022-0316
Import Source
https://vuln.go.dev/ID/GO-2022-0316.json
JSON Data
https://api.test.osv.dev/v1/vulns/GO-2022-0316
Aliases
Published
2022-07-27T20:27:33Z
Modified
2024-05-20T16:03:47Z
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.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2022-0316"
}
References

Affected packages

Go / github.com/open-policy-agent/opa

Package

Name
github.com/open-policy-agent/opa
View open source insights on deps.dev
Purl
pkg:golang/github.com/open-policy-agent/opa

Affected 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"
            ]
        }
    ]
}