8.8high
BillaBear is Vulnerable to SQL Injection in the EventRepository
- Severity
- 8.8high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.48% (higher than 34% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-xp6r-8pcc-xv5p
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| billabear/billabear (Packagist) | up to 2025.01.03 | GitHub Advisory Database |
All scores
| CISA-ADP | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
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.
NVD (es)
BillaBear (todas las versiones anteriores a enero de 2026) contiene una vulnerabilidad de inyección SQL en el EventRepository. La entrada controlada por el usuario de los nombres de los filtros de métricas y las propiedades de agregación se interpola directamente en las consultas SQL utilizando sprintf() sin una sanitización adecuada o el entrecomillado de identificadores. Aunque los valores de los filtros están parametrizados, los identificadores de los filtros (claves) no lo están. Un atacante autenticado con permisos ROLE_ACCOUNT_MANAGER puede explotar esto para ejecutar comandos SQL arbitrarios.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-31069 changed 2026-05-20 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-xp6r-8pcc-xv5p changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-31069 changed 2026-07-24 | Public domain |