Vulnerability · Published Jul 20, 2026 · Assigned by GitHub_M

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

High 7.1

In plain English

A high-severity security flaw in syslog-ng from syslog-ng. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 19% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.1High
Exploit odds (30 days)0.3%top 80.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12syslog-ngno fix listedDEBIAN-CVE-2026-39879
Debian:13syslog-ngno fix listedDEBIAN-CVE-2026-39879
Debian:14syslog-ng4.12.0-1DEBIAN-CVE-2026-39879
Ubuntu:22.04:LTSsyslog-ngno fix listedUBUNTU-CVE-2026-39879
Ubuntu:24.04:LTSsyslog-ngno fix listedUBUNTU-CVE-2026-39879
Ubuntu:26.04:LTSsyslog-ngno fix listedUBUNTU-CVE-2026-39879
Ubuntu:26.10syslog-ngno fix listedUBUNTU-CVE-2026-39879

Affected products (as reported)

VendorProductVersions
syslog-ng syslog-ng < 4.12

Weakness: CWE-150 · Vector: CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H

References