VDB
Sign up
HIGH7.5

GHSA-x7f3-62pm-9p38

Out of bounds memory access in github.com/open-policy-agent/opa

Quick fix

GHSA-x7f3-62pm-9p38 — github.com/open-policy-agent/opa: upgrade to the fixed version with the command below.

go get github.com/open-policy-agent/opa@v0.40.0

Details

An issue in the component ast/parser.go of Open Policy Agent v0.39.0 causes the application to incorrectly interpret every expression, causing a Denial of Service (DoS) via triggering out-of-range memory access.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/github.com/open-policy-agent/opa
Introduced in: 0Fixed in: 0.40.0
Fixgo get github.com/open-policy-agent/opa@v0.40.0

References