Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/open-policy-agent/opa
  4. ›
  5. CVE-2022-28946

CVE-2022-28946: Out of bounds memory access in github.com/open-policy-agent/opa

May 20, 2022 (updated May 25, 2022)

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.

References

  • github.com/advisories/GHSA-x7f3-62pm-9p38
  • github.com/open-policy-agent/opa/commit/e9d3828db670cbe11129885f37f08cbf04935264
  • nvd.nist.gov/vuln/detail/CVE-2022-28946

Code Behaviors & Features

Detect and mitigate CVE-2022-28946 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.40.0

Fixed versions

  • 0.40.0

Solution

Upgrade to version 0.40.0 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Source file

go/github.com/open-policy-agent/opa/CVE-2022-28946.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:06 +0000.