Severity by source
AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
Log data is typically network-delivered from untrusted senders (AV:N) needing no auth (PR:N), but the non-default afsql SQL driver must be configured (AC:H); impact is DB integrity and availability, not confidentiality.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
3DescriptionCVE.org
Due to a missing sanitization call in afsql_dd_run_query, 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
AnalysisAI
SQL injection in syslog-ng versions before 4.12 (also fixed in Premium Edition 8.2 and Store Box 7.8) allows an attacker who controls an untrusted log source to inject SQL through log data processed by the afsql SQL destination driver, because afsql_dd_run_query omits a required sanitization call. Exploitation only affects deployments that have manually configured the SQL driver, and there is no public exploit identified at time of analysis and no CISA KEV listing. The rated impact centers on integrity of the backing database and availability of the logging pipeline (CVSS 7.1).
Technical ContextAI
syslog-ng is a widely used log collection and routing daemon; the affected component is its afsql destination driver (modules/afsql/afsql.c), which forwards received log messages into a relational database backend (e.g., MySQL/PostgreSQL/SQLite) using template-expanded SQL statements. The root cause is CWE-150 (Improper Neutralization of Escape, Meta, or Control Sequences): the afsql_dd_run_query function builds and executes a query from log-derived values without invoking the escaping/sanitization routine, so attacker-controlled fields from an incoming log message are interpreted as SQL syntax rather than data. Because log content routinely originates from remote, untrusted syslog senders, any field mapped into the SQL columns becomes an injection vector when the SQL driver is enabled.
RemediationAI
Vendor-released patch: upgrade to syslog-ng 4.12 (Open Source Edition), syslog-ng Premium Edition 8.2, or syslog-ng Store Box 7.8, which add the missing sanitization in afsql_dd_run_query; see the advisory at https://github.com/syslog-ng/syslog-ng/security/advisories/GHSA-qwf9-6222-m24m. If immediate patching is not possible, the highest-value compensating control is to disable or remove the afsql SQL destination driver from the configuration, since the vulnerability is inert without it - the trade-off is losing direct database logging, which can be replaced by writing to files or a message queue and loading into the database out-of-band. Where the SQL destination must remain enabled, restrict which senders can reach the syslog-ng listener (firewall the syslog TCP/UDP/RELP/network ports to trusted log sources only) and, at the database layer, run syslog-ng's DB account with least privilege (INSERT-only to a dedicated logging schema, no DROP/ALTER/cross-table access) so that any residual injection cannot pivot beyond the log tables; the trade-off is that legitimate log sources behind untrusted network segments may need relays or authenticated transport.
A UNIX Symbolic Link (Symlink) Following vulnerability in the packaging of syslog-ng of SUSE Linux Enterprise Debuginfo
syslog-ng is an enhanced log daemo. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authe
Vendor StatusVendor
SUSE
Severity: ImportantShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-46031