CVE-2026-39879

NameCVE-2026-39879
DescriptionDue 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
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
syslog-ng (PTS)bullseye3.28.1-2+deb11u1vulnerable
bullseye (security)3.28.1-2+deb11u2vulnerable
bookworm3.38.1-5+deb12u1vulnerable
trixie4.8.1-5+deb13u1vulnerable
forky, sid4.8.1-7vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
syslog-ngsource(unstable)(unfixed)

Notes

https://github.com/syslog-ng/syslog-ng/security/advisories/GHSA-qwf9-6222-m24m
https://github.com/syslog-ng/syslog-ng/commit/1e872e301436efa5d3fcd54e7628ac82c57698d2 (syslog-ng-4.12.0)
https://github.com/syslog-ng/syslog-ng/commit/1aba7537f0c406090f98a649475acbf517440220 (syslog-ng-4.12.0)
https://github.com/syslog-ng/syslog-ng/commit/4b61a0b1dad69368bc3b93b607141708d0036830 (syslog-ng-4.12.0)
https://github.com/syslog-ng/syslog-ng/commit/4c0aebf7a1c0a8177bdf4fb67803e19dddc3dbf2 (syslog-ng-4.12.0)

Search for package or bug name: Reporting problems