CVE-2026-39879
published high CVSS 3.1 · 7.1SQL injection in syslog-ng SQL destionation driver
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| syslog-ng | — | syslog-ng< 4.12 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | syslog-ng | Fixed | 4.13.0-r0 | Package fix record |
| Alpine Linux | v3.21 | syslog-ng | Fixed | 4.8.3-r2 | Package fix record |
| Alpine Linux | v3.22 | syslog-ng | Fixed | 4.8.3-r2 | Package fix record |
| Alpine Linux | v3.23 | syslog-ng | Fixed | 4.10.2-r2 | Package fix record |
| Alpine Linux | v3.24 | syslog-ng | Fixed | 4.11.0-r1 | Package fix record |
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
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| syslog-ng | syslog-ng | < 4.12 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-150 CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences
References
1Provider assertions
2GitHub_M · cna
SQL injection in syslog-ng SQL destionation driver
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9bc65c8f5d4188646f6b0487ca1644930a56ece2ff170bfdbcc51cf5d6715804
- Ingested
- 23 Sep 2026, 09:12:25 UTC
- Source record
- Official CVE record