CVE-2026-31069

high

Description

BillaBear (all versions prior to Jan 2026) contains a SQL Injection vulnerability in the EventRepository. User-controlled input from metric filter names and aggregation properties is directly interpolated into SQL queries using sprintf() without proper sanitization or identifier quoting. Although filter values are parameterized, the filter identifiers (keys) are not. An authenticated attacker with ROLE_ACCOUNT_MANAGER permissions can exploit this to execute arbitrary SQL commands.

References

https://github.com/BillaBear/billabear

https://gist.github.com/nedlir/a50725b94650467f0593b8f4009ae19e

https://gist.github.com/nedlir/2377ba6e7fa2ad957210b52aa8e400d9

Details

Source: Mitre, NVD

Published: 2026-05-19

Updated: 2026-05-19

Risk Information

CVSS v2

Base Score: 6.5

Vector: CVSS2#AV:N/AC:L/Au:S/C:P/I:P/A:P

Severity: Medium

CVSS v3

Base Score: 8.8

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Severity: High