| Name | CVE-2026-39879 |
| 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 |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| Debian Bugs | 1143061 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| syslog-ng (PTS) | bullseye | 3.28.1-2+deb11u1 | vulnerable |
| bullseye (security) | 3.28.1-2+deb11u2 | vulnerable | |
| bookworm | 3.38.1-5+deb12u1 | vulnerable | |
| trixie | 4.8.1-5+deb13u1 | vulnerable | |
| forky, sid | 4.8.1-7 | vulnerable |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| syslog-ng | source | (unstable) | (unfixed) | 1143061 |
[trixie] - syslog-ng <no-dsa> (Minor issue)
[bookworm] - syslog-ng <postponed> (Minor issue)
[bullseye] - syslog-ng <postponed> (Minor issue)
https://github.com/syslog-ng/syslog-ng/security/advisories/GHSA-qwf9-6222-m24m
https://github.com/syslog-ng/syslog-ng/commit/1e872e301436efa5d3fcd54e7628ac82c57698d2 (syslog-ng-4.12.0)
https://github.com/syslog-ng/syslog-ng/commit/1aba7537f0c406090f98a649475acbf517440220 (syslog-ng-4.12.0)
https://github.com/syslog-ng/syslog-ng/commit/4b61a0b1dad69368bc3b93b607141708d0036830 (syslog-ng-4.12.0)
https://github.com/syslog-ng/syslog-ng/commit/4c0aebf7a1c0a8177bdf4fb67803e19dddc3dbf2 (syslog-ng-4.12.0)