Advisory

GHSA-xp6r-8pcc-xv5p

Also known as: CVE-2026-31069

Summary

BillaBear is Vulnerable to SQL Injection in the EventRepository

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-05-19 18:32 UTC
Modified
2026-09-10 03:51 UTC

Affected packages and fixes

billabear/billabear

Packagist · All systems

Affected

  • introduced 0, last affected 2025.01.03 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences