CVEfocus › CVE database › CVE-2026-39879

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

CVSS 7.1 HighEPSS 0.3% (higher than 12% of CVEs)Published 2026-07-20Updated 2026-07-21Assigner: GitHub_M

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

CWE-150

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
7Fix pending
3Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10syslog-ngFix pendingUBUNTU-CVE-2026-39879
Ubuntu 26.04syslog-ngUnder investigationUBUNTU-CVE-2026-39879
Ubuntu 24.04syslog-ngUnder investigationUBUNTU-CVE-2026-39879
Ubuntu 22.04syslog-ngUnder investigationUBUNTU-CVE-2026-39879
Ubuntu 20.04syslog-ngFix pendingUBUNTU-CVE-2026-39879
Ubuntu 18.04syslog-ngFix pendingUBUNTU-CVE-2026-39879
Ubuntu 16.04syslog-ngFix pendingUBUNTU-CVE-2026-39879
Ubuntu 14.04syslog-ngFix pendingUBUNTU-CVE-2026-39879
Debian 14syslog-ngFixed4.12.0-1DEBIAN-CVE-2026-39879
Debian 13syslog-ngFix pendingDEBIAN-CVE-2026-39879
Debian 12syslog-ngFix pendingDEBIAN-CVE-2026-39879

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.