SCA: security update for github.com/open-policy-agent/opa (GHSA-f524-rf33-2jjr)

critical Tenable Cloud Security Plugin ID 414268

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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 as such rejected — by the compiler if encountered in the policy compilation
stage. A bypass of this protection has been found, where the use of the `with` keyword to mock such a
built-in function (a feature introduced in OPA v0.40.0), isn’t taken into account by `WithUnsafeBuiltins`.
Multiple conditions need to be met in order to create an adverse effect. Version 0.43.1 contains a patch
for this issue. As a workaround, avoid using the `WithUnsafeBuiltins` function and use the `capabilities`
feature instead. (CVE-2022-36085)

See Also

https://github.com/advisories/GHSA-f524-rf33-2jjr

Plugin Details

Severity: Critical

ID: 414268

Version: Revision 1.4

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.12

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2022-36085

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 9/16/2022

Vulnerability Publication Date: 9/8/2022

Reference Information

CVE: CVE-2022-36085

cwe: CWE-20