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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| syslog-ng | syslog-ng | < 4.12 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | syslog-ng | 4.12.0-1 | — |
| Debian 13 | syslog-ng | No fix yet | — |
| Debian 12 | syslog-ng | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | syslog-ng | No fix yet | — |
| Ubuntu 26.04 LTS | syslog-ng | No fix yet | — |
| Ubuntu 24.04 LTS | syslog-ng | No fix yet | — |
| Ubuntu 22.04 LTS | syslog-ng | No fix yet | — |
| Ubuntu 20.04 LTS | syslog-ng | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | syslog-ng | No fix yet | — |
| Ubuntu 16.04 LTS | syslog-ng | No fix yet | — |
| Ubuntu 14.04 LTS | syslog-ng | No fix yet | — |