Advisory

GO-2022-0316

Also known as: 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.

Severity

Not rated by the source.

Dates

Published
2022-07-27 20:27 UTC
Modified
2024-05-20 16:03 UTC

Affected packages and fixes

github.com/open-policy-agent/opa

Go · All systems

Affected

  • introduced 0.33.1, fixed 0.37.2 (semver)

Fixed versions

0.37.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences