CVE-2022-36085
Protection bypass in github.com/open-policy-agent/opa
7.4
HIGH
CVSS 3.1
EPSS 1.4%
Description
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.
How to fix CVE-2022-36085
To remediate CVE-2022-36085, upgrade the affected package to a fixed version below.
- —upgrade to 0.43.1 or later
- —upgrade to 0.44.0 or later
Is CVE-2022-36085 being exploited?
Low — EPSS is 1.4%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- >= 0.40.0, < 0.43.1
- >= 0.40.0, < 0.44.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.4 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |