CVE-2026-31069
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
billabear/billabear (Packagist)up to 2025.01.03GitHub Advisory Database

All scores

CISA-ADP8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-89

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

SourceRecordLicence
CVE ListCVE-2026-31069 changed 2026-05-20CVE Terms of Use
GitHub Advisory DatabaseGHSA-xp6r-8pcc-xv5p changed 2026-09-10CC-BY-4.0
NVDCVE-2026-31069 changed 2026-07-24Public domain