# CVE-2026-31069: BillaBear is Vulnerable to SQL Injection in the EventRepository

- Severity: High 8.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 32% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-19T00:00:00.000Z
- Modified: 2026-09-10T03:51:07.241Z
- Also known as: GHSA-xp6r-8pcc-xv5p
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- billabear/billabear (Packagist): up to 2025.01.03

## Every score

- CISA-ADP: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://gist.github.com/nedlir/a50725b94650467f0593b8f4009ae19e> (exploit, web)
- <https://github.com/BillaBear/billabear>
- <https://gist.github.com/nedlir/2377ba6e7fa2ad957210b52aa8e400d9> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-31069> (advisory)
- <https://github.com/billabear/billabear> (package)

## Sources

- CVE List: [CVE-2026-31069](https://www.cve.org/CVERecord?id=CVE-2026-31069), CVE Terms of Use, modified 2026-05-20
- GitHub Advisory Database: [GHSA-xp6r-8pcc-xv5p](https://github.com/advisories/GHSA-xp6r-8pcc-xv5p), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-31069](https://nvd.nist.gov/vuln/detail/CVE-2026-31069), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-31069 · Whole record: https://cve.day/CVE-2026-31069.json · Rebuilt by cve.day 2026-11-25T22:59:21.985Z
