Skip to content
Fencer Vulns
high 7.5

CVE-2022-28946 json

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

published 2022-05-19 4 y ago modified 2026-09-10 1 mo ago also GHSA-x7f3-62pm-9p38 , GO-2022-0587 , EUVD-2022-5738

cvss
7.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.0%
EPSS 1.0% chance of exploitation in 30 days, percentile 64%
public exploits
0
none known

Summary

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.

Patch / fix

  • go github.com/open-policy-agent/opa 0.40.0
  • trivy openSUSE Tumbleweed 0.28.0-1.1
  • starboard openSUSE Tumbleweed 0.15.6-1.1
  • trivy Package Hub 15 SP3, openSUSE Leap 15.3 0.30.4-bp153.8.1
  • trivy Package Hub 15 SP4, openSUSE Leap 15.4 0.28.0-bp154.2.3.1

opensuse advisories openSUSE-SU-2024:12102-1openSUSE-SU-2024:12128-1openSUSE-SU-2022:10094-1openSUSE-SU-2022:10022-1

Exploit prediction

1.04% chance of exploitation in the next 30 days, higher than 64% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:N/I:N/A:P
GitHub 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected packages

ecosystem package affected fixed in
go github.com/open-policy-agent/opa
<0.40.0
0.40.0

Classification

Weakness
  • CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.