CVE-2026-31069

Published May 19, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

An SQL Injection flaw resides in the EventRepository of BillaBear. User‑controlled metric filter names and aggregation property identifiers are embedded directly into SQL queries via sprintf without proper sanitization or identifier quoting. Although filter values are parameterized, the filter keys are not, allowing an attacker to inject arbitrary SQL statements. The vulnerability is exploitable by any authenticated user holding the ROLE_ACCOUNT_MANAGER permission, which can lead to unauthorized data retrieval, modification, or deletion within the database.

Affected Systems

The issue affects all BillaBear deployments using versions released before January 2026. No other vendor or product versions are listed as impacted.

Risk and Exploitability

The CVSS score is 8.8, indicating high severity. The EPSS score is <1%, reflecting a low probability of exploitation, but a privileged attacker with the ROLE_ACCOUNT_MANAGER role can use the business‑logic API endpoints that accept metric filters to inject malicious SQL. The vulnerability is not listed in the CISA KEV catalog.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade BillaBear to a release issued on or after January 2026 to contain the patched EventRepository code.
  • Restrict users granted ROLE_ACCOUNT_MANAGER to only the minimal set of actions required for their duties, ideally removing the ability to apply arbitrary metric filters.
  • Implement server‑side validation and sanitization for all metric filter names and aggregation property identifiers, ensuring they are escaped or quoted properly before insertion into SQL statements.

Generated by OpenCVE AI on May 20, 2026 at 15:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-xp6r-8pcc-xv5p BillaBear is Vulnerable to SQL Injection in the EventRepository
History
Type Values Removed Values Added
Title Unsanitized Metric Filters Enable SQL Injection in BillaBear EventRepository
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Billabear
Billabear billabear
Vendors & Products Billabear
Billabear billabear
Type Values Removed Values Added
Title Unsanitized Metric Filters Enable SQL Injection in BillaBear EventRepository
Weaknesses CWE-89
Type Values Removed Values Added
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
Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
May 20, 2026, 1:50 PM
Reserved
Mar 9, 2026, 12:00 AM
Status
Deferred
Published
May 19, 2026, 4:16 PM
Modified
Jul 24, 2026, 12:10 PM