{
  "id": "CVE-2026-39879",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-39879",
  "published_at": "2026-07-20T16:57:32.019Z",
  "title": "SQL injection in syslog-ng SQL destionation driver",
  "vendor": "syslog-ng",
  "product": "syslog-ng",
  "cvss": {
    "score": 7.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.\n\nFixes are in syslog-ng 4.12, syslog-ng Premium Edition 8.2 and syslog-ng Store Box 7.8",
  "cwe": "CWE-150",
  "cvss_by_source": {
    "cna": 7.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "syslog-ng",
        "product": "syslog-ng",
        "ranges": [
          "\u003c 4.12"
        ],
        "fixed_in": [
          "4.12"
        ]
      }
    ],
    "upgrade": [
      "Upgrade syslog-ng to 4.12 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/syslog-ng/syslog-ng/security/advisories/GHSA-qwf9-6222-m24m"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
