{"id":"DHI-j65i-hfj6-jzd3-ygps","aliases":[],"title":"### Summary","originalDescription":"### Summary **Incorrect number comparison in OPA can cause wrong policy decisions, including wrongful authorization.** Affected numbers have a decimal point followed only by zeros, and an integer part that ends in zero (`100.0`, `1000.00`). OPA strips these trailing zeros before comparing, including the zeros in the integer part, so `100.0` is treated as equal to `1`, `1000.00` to `1`, and `20.0` to `2`. The comparison goes wrong when the stripped value exactly matches the other operand. Numbers such as `105.0`, `100.5` and `100` are not affected. ### Details #### Which numbers are affected A number is affected if it has a decimal point followed only by zeros, and an integer part that ends in zero (`100.0`, `1000.00`). Stripping `100.0`, `1000.00`, `20.0` and `30400.0` yields `1`, `1`, `2` and `304`. Numbers whose integer part does not end in zero (`105.0`), whose decimal part contains a non-zero digit (`100.5`, `10.50`), or that have no decimal point (`100`) are not affected. The comparison is wrong only if the stripped value exactly matches the other operand: `100.0` is mistaken for `1`, but not for `10` or `2`. The comparison is symmetric, so the affected number may be on either","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":null,"exploitDb":null},"affected":[],"references":[{"url":"https://scout.docker.com/v/DHI-j65i-hfj6-jzd3-ygps","type":"advisory"},{"url":"https://github.com/open-policy-agent/opa/security/advisories/GHSA-pf4h-74fx-87r6","type":"advisory"}],"sources":[{"name":"osv","at":"2026-11-24T22:20:03.508Z","url":"https://osv.dev/vulnerability/DHI-j65i-hfj6-jzd3-ygps","license":"CC-BY 4.0","firstSeenAt":"2026-11-19T02:57:10.904Z"}],"firstSeenAt":"2026-11-19T02:57:10.904Z","publishedAt":"2026-11-19T02:33:49.000Z","modifiedAt":"2026-11-24T22:15:10.759Z"}