← VULNERABILITIES

DHI-j65i-hfj6-jzd3-ygps

### Summary

Unscored
CVSS
—
EPSS
—
Published
2026-11-19
Age
16d old
Modified
2026-11-24
Product
opa-dev

Description

### 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

Sources

  • OSV · first seen 16d ago · CC-BY 4.0

References

JSON