CVE-2026-31069 Details
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.
A SQL injection vulnerability has been identified in BillaBear's EventRepository component, affecting all versions prior to January 2026. The vulnerability arises because user-controlled input from metric filter names and aggregation properties is directly inserted into SQL queries using sprintf(), without adequate sanitization or proper quoting of identifiers. While filter values are parameterized, the filter identifiers are not. This flaw allows an authenticated attacker with ROLE_ACCOUNT_MANAGER permissions to execute arbitrary SQL commands, potentially leading to a complete compromise of the application's database.
To address this vulnerability, BillaBear should implement proper validation and sanitization of metric filter names to prevent SQL injection. This can be achieved by whitelisting acceptable filter name formats or by using parameterized queries that bind filter names as identifiers rather than concatenating them directly into SQL strings.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 19, 2026CISA-ADP
Assessed May 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gist.github.com/nedlir/a50725b94650467f0593b8f4009ae19e | CISA-ADP | ExploitTechnical Description |
| https://gist.github.com/nedlir/2377ba6e7fa2ad957210b52aa8e400d9 | [email protected] | AdvisoryExploitTechnical Description |
| https://gist.github.com/nedlir/a50725b94650467f0593b8f4009ae19e | [email protected] | ExploitTechnical Description |
| https://github.com/BillaBear/billabear | [email protected] | ProductSource CodeVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| BillaBear | 2025.01.01 (semver) 2025.01.02 (semver) 2025.01.03 (semver) |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 24, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 20, 2026 | CVE Modified | CISA-ADP |
| May 19, 2026 | New CVE Received | [email protected] |
Volerion