# CVE-2026-39879: SQL injection in syslog-ng SQL destionation driver

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:L/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.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-07-20T16:57:32.019Z
- Modified: 2026-07-23T16:04:11.740Z
- Weaknesses: CWE-150
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Due to a missing sanitization call in [`afsql_dd_run_query`](https://github.com/syslog-ng/syslog-ng/blob/649e6e18e3459fb4467000a88dfb12fa97f9719c/modules/afsql/afsql.c#L219), syslog-ng before 4.12 are vulnerable to SQL injection from an untrusted source. This is not part of the default configuration, the SQL driver has to be manually configured.

Fixes are in syslog-ng 4.12, syslog-ng Premium Edition 8.2 and syslog-ng Store Box 7.8

(As written by CVE List.)

## Affected

- syslog-ng syslog-ng: < 4.12

## References

- <https://github.com/syslog-ng/syslog-ng/security/advisories/GHSA-qwf9-6222-m24m>

## Sources

- CVE List: [CVE-2026-39879](https://www.cve.org/CVERecord?id=CVE-2026-39879), CVE Terms of Use, modified 2026-07-21
- NVD: [CVE-2026-39879](https://nvd.nist.gov/vuln/detail/CVE-2026-39879), Public domain, modified 2026-07-23

---

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