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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.1, adjacent network); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-20 · Modified: 2026-07-21
- Aliases: UBUNTU-CVE-2026-39879, DEBIAN-CVE-2026-39879, ALPINE-CVE-2026-39879
- Record: https://cvemate.com/vulnerability/CVE-2026-39879 · JSON: https://cvemate.com/vulnerability/CVE-2026-39879/json

## Description

```text
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
```

## Signals

- CVSS: 7.1 high (v3.1, CVE.org) CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
- EPSS: 0.172%, percentile 6.82%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine syslog-ng (Alpine Linux): \< 4.8.3-r2 \| \< 4.10.2-r2 \| \< 4.11.0-r1 \| \< 4.13.0-r0
- debian syslog-ng (Debian): All versions (No fix recorded) \| \< 4.12.0-1
- ubuntu syslog-ng (Ubuntu): All versions (No fix recorded)
- syslog-ng syslog-ng: \< 4.12

## References

- <https://github.com/syslog-ng/syslog-ng/security/advisories/GHSA-qwf9-6222-m24m>
- <https://ubuntu.com/security/CVE-2026-39879>
- <https://www.cve.org/CVERecord?id=CVE-2026-39879>
- <https://github.com/syslog-ng/syslog-ng/commit/1e872e301436efa5d3fcd54e7628ac82c57698d2>
- <https://github.com/syslog-ng/syslog-ng/commit/1aba7537f0c406090f98a649475acbf517440220>
- <https://github.com/syslog-ng/syslog-ng/commit/4b61a0b1dad69368bc3b93b607141708d0036830>
- <https://github.com/syslog-ng/syslog-ng/commit/4c0aebf7a1c0a8177bdf4fb67803e19dddc3dbf2>
- <https://security-tracker.debian.org/tracker/CVE-2026-39879>
- <https://security.alpinelinux.org/vuln/CVE-2026-39879>

---

Data as of 2026-12-05T04:55:09.118Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
