Skip to main content

syslog-ng EUVDEUVD-2026-46031

| CVE-2026-39879 HIGH
Improper Neutralization of Escape, Meta, or Control Sequences (CWE-150)
2026-07-20 GitHub_M
7.1
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach syslog-ng network listener
  2. Delivery
    Send log message with SQL metacharacters
  3. Exploit
    Value templated into afsql query unsanitized
  4. Execution
    Injected SQL executes on logging database
  5. Impact
    Corrupt log data or crash DB service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Escape character neutralization
Exploitation Conditions

Exploitation requires that the target has manually configured syslog-ng's afsql SQL destination driver (sql() destination) to write logs into a database - this is explicitly NOT part of the default configuration and is the primary limiting factor. The attacker must additionally be able to deliver an untrusted log message into that pipeline (the 'untrusted source' named in the advisory), and per the CVSS vector reach the daemon over an adjacent network path (AV:A) with no authentication (PR:N) and no user interaction (UI:N). Deployments running default syslog-ng without the SQL driver, or that only ingest logs from trusted local sources, are not exploitable.

Impact

The vendor CVSS 3.1 vector (AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H, base 7.1) indicates an adjacent, low-complexity, unauthenticated path with no confidentiality loss but low integrity and high availability impact - consistent with malformed SQL corrupting inserts or crashing/locking the database rather than exfiltrating data. The single most important mitigating signal is stated in the description itself: this is NOT the default configuration - the afsql SQL driver must be manually configured - which sharply narrows the real-world attack surface below what the 7.1 score suggests. No EPSS score was provided, there is no CISA KEV entry, and no POC has been supplied, so all three exploitation-likelihood signals are either absent or negative. One tension worth flagging: the vendor rates C:N even though SQL injection can often enable data reads via subqueries - this may reflect the specific INSERT-oriented code path, but defenders using a database that shares the SQLi surface with sensitive tables should independently verify confidentiality exposure. Net: a genuine, patch-worthy flaw for the subset of operators using afsql, but low urgency for the majority running default configurations.

Exploit ScenarioDerived

An organization configures syslog-ng with the afsql driver to store logs in a database and accepts syslog messages from network hosts. An attacker who can send log lines to that collector embeds SQL control characters in a message field (e.g., hostname or program name) that is templated into the INSERT statement, causing the injected SQL to execute against the logging database and corrupt data or disrupt the logging service. No public POC has been identified at time of analysis, and successful exploitation requires the non-default SQL driver to be enabled.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 20, 2026

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).

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.

Affected VersionsENISA

syslog-ng < 4.12

Affected Packages

euvd syslog_ng fix: 4.12

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

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.

Know when Syslog Ng gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 7.1 HIGH
AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
vuln.today AI 6.5 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
SUSE HIGH
Red Hat 7.1 HIGH

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Adjacent
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
High

Lifecycle Timeline

2
Patch available
Jul 20, 2026 - 18:18 EUVD
CVE Published
Jul 20, 2026 - 16:57 cve.org
HIGH 7.1

DescriptionCVE.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

Executive ViewAI

Why It Matters

syslog-ng's SQL destination driver (versions before 4.12) is vulnerable to SQL injection when processing untrusted log sources, risking unauthorized database modifications and logging service disruption. No vendor-released patch identified at time of analysis. Organizations using this feature face immediate data integrity and availability risks requiring interim protective measures.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: disable the SQL destination driver if not operationally critical; if required, restrict log sources to trusted internal hosts only, enforce strict network segmentation between syslog-ng and the SQL database backend, implement input filtering and validation to sanitize log data before SQL processing, establish enhanced monitoring of SQL database activity for unauthorized queries, and monitor syslog-ng service logs for anomalous behavior or injection attempts.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
High
syslog-ng is a widely deployed enterprise Unix/Linux logging daemon
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Controlled
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

Vendor StatusVendor

SUSE

Severity: Important

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy