{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-39849 exists.","fix":"No fix has been published for CVE-2026-39849 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-39849 is a high-severity command injection vulnerability in pi-hole FTL, published on 5 May 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-39849 and fix it if it is affected.\n\nWhat it is: CVE-2026-39849 is a high-severity command injection vulnerability in pi-hole FTL, published on 5 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-39849 exists.\n\nAffected product: pi-hole FTL. 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-39849/ (Markdown: https://insights.sbomify.com/CVE-2026-39849/index.md)","id":"CVE-2026-39849","markdown":"https://insights.sbomify.com/CVE-2026-39849/index.md","name":"CVE-2026-39849","record":{"aliases":["GHSA-9cqv-839p-gpq2"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Pi-hole FTL","requires_auth":"low_privilege","summary":"Remote attackers can execute arbitrary commands on Pi-hole hosts by injecting newlines into the DNS interface configuration, especially when no admin password is set.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"ftldns","vendor":"pi-hole"}],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-93","name":"Improper Neutralization of CRLF Sequences"}],"description":"Pi-hole FTL is the core engine of the Pi-hole network-level advertisement and tracker blocker. In versions before 6.6.1, the `dns.interface` configuration field in Pi-hole FTL accepted newline characters without validation, allowing an attacker to inject arbitrary directives into the generated dnsmasq configuration file. On installations with no admin password set (the default for many deployments), the configuration API is fully accessible without credentials, allowing a network-adjacent attacker to inject the payload, enable the built-in DHCP server, and achieve arbitrary command execution on the host the next time any device on the network requests a DHCP lease. The injected value is persisted to /etc/pihole/pihole.toml and survives restarts. The strncpy in the code path limits the total interface field to 31 bytes, but payloads such as wlan0\\ndhcp-script=/tmp/p fit within this constraint. The dnsmasq config validation introduced in FTL 6.6 only checks syntactic validity, so valid directives injected via newline pass validation successfully. This issue has been fixed in version 6.6.1.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"Pi-hole FTL remote code execution via newline injection in dns.interface configuration","id":"CVE-2026-39849","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":0,"n_references":3,"next":{"headline":"Yii 2: Local file inclusion via view parameter name collision","id":"CVE-2026-39850"},"packages":[],"prev":{"headline":"Dockyard's Unauthenticated Cron Endpoint in Dockyard Enables Container Enumeration and Database Manipulation","id":"CVE-2026-39848"},"products":["FTL"],"published":"2026-05-05","related":[{"cvss_score":8.8,"headline":"Pi-hole FTL affected by Remote Code Execution (RCE) via dns.upstreams Newline Injection","id":"CVE-2026-35517","kev_date_added":null,"published":"2026-04-07"},{"cvss_score":8.8,"headline":"Pi-hole FTL affected by Remote Code Execution (RCE) via dns.cnameRecords Newline Injection","id":"CVE-2026-35518","kev_date_added":null,"published":"2026-04-07"},{"cvss_score":8.8,"headline":"Pi-hole FTL affected by Remote Code Execution (RCE) via dns.hostRecord Newline Injection","id":"CVE-2026-35519","kev_date_added":null,"published":"2026-04-07"},{"cvss_score":8.8,"headline":"Pi-hole FTL affected by Remote Code Execution (RCE) via dhcp.leaseTime Newline Injection","id":"CVE-2026-35520","kev_date_added":null,"published":"2026-04-07"},{"cvss_score":8.8,"headline":"Pi-hole FTL affected by Remote Code Execution (RCE) via dhcp.hosts Newline Injection","id":"CVE-2026-35521","kev_date_added":null,"published":"2026-04-07"},{"cvss_score":7.6,"headline":"Stored DOM XSS in Pi-hole Admin Web Interface","id":"CVE-2021-29448","kev_date_added":null,"published":"2021-04-15"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-05-08","vendors":["pi-hole"]},"summary":"Remote attackers can execute arbitrary commands on Pi-hole hosts by injecting newlines into the DNS interface configuration, especially when no admin password is set.","url":"https://insights.sbomify.com/CVE-2026-39849/"}