cvedb.io
CVE-2022-23628
MEDIUM · CVSS 6.3
EPSS exploitation probability: 0%
Published 2022-02-09T22:15:07.597 · Last modified 2026-06-17T04:30:31.040

Summary

OPA is an open source, general-purpose policy engine. Under certain conditions, pretty-printing an abstract syntax tree (AST) that contains synthetic nodes could change the logic of some statements by reordering array literals. Example of policies impacted are those that parse and compare web paths. **All of these** three conditions have to be met to create an adverse effect: 1. An AST of Rego had to be **created programmatically** such that it ends up containing terms without a location (such as wildcard variables). 2. The AST had to be **pretty-printed** using the `github.com/open-policy-agent/opa/format` package. 3. The result of the pretty-printing had to be **parsed and evaluated again** via an OPA instance using the bundles, or the Golang packages. If any of these three conditions ar

Affected products

openpolicyagent — open_policy_agent

Does this affect you?

Add your gear to cvedb and we'll alert you only when openpolicyagent ships something exploited.

Check my exposure →

References

This product uses data from the NVD API but is not endorsed or certified by the NVD. Informational only; not professional security advice.