Advisory

GO-2022-0978

Also known as: CVE-2022-36085, GHSA-f524-rf33-2jjr

Summary

Protection bypass in github.com/open-policy-agent/opa

Details

Open Policy Agent (OPA) is an open source, general-purpose policy engine. The Rego compiler provides a (deprecated) WithUnsafeBuiltins function, which allows users to provide a set of built-in functions that should be deemed unsafe and rejected by the compiler if encountered in the policy compilation stage.

A bypass of this protection is possible when using the "with" keyword to mock a built-in function that isn't taken into account by WithUnsafeBuiltins.

Severity

Not rated by the source.

Dates

Published
2022-09-13 17:40 UTC
Modified
2024-05-20 16:03 UTC

Affected packages and fixes

github.com/open-policy-agent/opa

Go · All systems

Affected

  • introduced 0.40.0, fixed 0.44.0 (semver)

Fixed versions

0.44.0

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