Intel

AIKIDO-2025-10970

github.com/open-policy-agent/opa is vulnerable to Memory Allocation with Excessive Size Value

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Dec 23, 2025
December 23, 2025

30

CVE Score

Low

Memory Allocation with Excessive Size Value

Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to Memory Exhaustion via a forged Gzip Header. A crafted HTTP request containing a malicious gzip header sent to any of OPA's HTTP endpoints could cause the service to allocate excessive memory, leading to an out-of-memory (OOM) process exit and denial of service. An attacker can exploit this by sending a direct HTTP request to the OPA server, which is effective before any token-based authentication or authorization checks are applied, making it a potent vector if OPA is directly accessible on a network. The issue was addressed by implementing a proper size check on the decompressed payload during gzip handling.

How do I fix this?

Upgrade github.com/open-policy-agent/opa library to patch version.

Who does this affect?

You're affected if you are using a version which is within vulnerability ranges.

Versions

0.1.0 - 1.11.0

Fixed in 1.11.1

Background info

github.com/open-policy-agent/opa is vulnerable to Memory Allocation with Excessive Size Value in versions 0.1.0 - 1.11.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea