{"id":"CVE-2026-31069","aliases":["CVE-2026-31069","GHSA-xp6r-8pcc-xv5p"],"related":[],"kind":"vulnerability","state":"published","title":"BillaBear is Vulnerable to SQL Injection in the EventRepository","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-05-19T00:00:00.000Z","modified":"2026-09-10T03:51:07.241Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"2025.01.03"}],"ecosystem":"Packagist","package":"billabear/billabear","purl":"pkg:composer/billabear/billabear","source":"ghsa"}],"references":[{"url":"https://gist.github.com/nedlir/a50725b94650467f0593b8f4009ae19e","tags":["exploit","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/BillaBear/billabear","tags":[],"sources":["cvelist","nvd"]},{"url":"https://gist.github.com/nedlir/2377ba6e7fa2ad957210b52aa8e400d9","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31069","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/billabear/billabear","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-05-20T13:49:12.746Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31069","url":"https://www.cve.org/CVERecord?id=CVE-2026-31069","licence":"CVE Terms of Use","modified":"2026-05-20T13:50:15.527Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xp6r-8pcc-xv5p","url":"https://github.com/advisories/GHSA-xp6r-8pcc-xv5p","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:07.241Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31069","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31069","licence":"Public domain","modified":"2026-07-24T12:10:00.210Z"}],"updatedAt":"2026-11-25T22:59:21.985Z","epss":{"score":0.00365,"percentile":0.32419,"date":"2026-12-01T12:00:22.000Z"}}