CVE-2026-39879: afsql_dd_run_query, syslog-ng · Due to a Missing Sanitization Call
Affects syslog-ngSource GCVE Database
Not known to be exploited · CVSS 7.1 High.
Data as of 24 Nov 2026, 21:15 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 19% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:HExploitation evidence
Disclosed: evidence found.
CVE published 20 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10syslog-ngpkg:deb/ubuntu/syslog-ng?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSsyslog-ngpkg:deb/ubuntu/syslog-ng?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSsyslog-ngpkg:deb/ubuntu/syslog-ng?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSsyslog-ngpkg:deb/ubuntu/syslog-ng?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSsyslog-ngpkg:deb/ubuntu/syslog-ng?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Ubuntu 18.04 LTSsyslog-ngpkg:deb/ubuntu/syslog-ng?arch=source&distro=bionicOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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
References
- ubuntu.com/security/CVE-2026-39879 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-39879 (opens in a new tab)
- github.com/syslog-ng/syslog-ng/security/advisories/GHSA-qwf9-6222-m24m (opens in a new tab)
- github.com/syslog-ng/syslog-ng/commit/1e872e301436efa5d3fcd54e7628ac82c57698d2 (opens in a new tab)
- github.com/syslog-ng/syslog-ng/commit/1aba7537f0c406090f98a649475acbf517440220 (opens in a new tab)
- github.com/syslog-ng/syslog-ng/commit/4b61a0b1dad69368bc3b93b607141708d0036830 (opens in a new tab)
- github.com/syslog-ng/syslog-ng/commit/4c0aebf7a1c0a8177bdf4fb67803e19dddc3dbf2 (opens in a new tab)