{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-39879 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2026-39879 is a high-severity SQL injection vulnerability in syslog-ng, published on 20 Jul 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-39879 and fix it if it is affected.\n\nWhat it is: CVE-2026-39879 is a high-severity SQL injection vulnerability in syslog-ng, published on 20 Jul 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-39879 in the wild and no public exploit code.\n\nAffected product: syslog-ng. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-39879/ (Markdown: https://insights.sbomify.com/CVE-2026-39879/index.md)","id":"CVE-2026-39879","markdown":"https://insights.sbomify.com/CVE-2026-39879/index.md","name":"CVE-2026-39879","record":{"aliases":["BELL-CVE-2026-39879","DEBIAN-CVE-2026-39879","GHSA-qwf9-6222-m24m","UBUNTU-CVE-2026-39879"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"syslog-ng log server","requires_auth":"none","summary":"Attackers can inject SQL commands via untrusted sources in syslog-ng's SQL destination driver, requiring manual configuration to exploit.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H","version":"3.1"},"cwes":[{"id":"CWE-150","name":"Improper Neutralization of Escape, Meta, or Control Sequences"}],"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","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"SQL injection in syslog-ng SQL destionation driver","id":"CVE-2026-39879","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"sql_injection","year":"2026"},"n_packages":0,"n_references":1,"next":{"headline":"Remnawave Backend has a race condition in HWID device limit allows bypassing max devices","id":"CVE-2026-39880"},"packages":[],"prev":{"headline":"Chamilo stored XSS via user registration leads to admin account takeover","id":"CVE-2026-39878"},"products":["syslog-ng"],"published":"2026-07-20","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-21","vendors":["syslog-ng"]},"summary":"Attackers can inject SQL commands via untrusted sources in syslog-ng's SQL destination driver, requiring manual configuration to exploit.","url":"https://insights.sbomify.com/CVE-2026-39879/"}