8000 Releases · pi-hole/FTL · GitHub
[go: up one dir, main page]

Skip to content

Releases

v6.9

Choose a tag to compare

@PromoFaux PromoFaux released this 11 Nov 18:50
2a0fcb7

Security

This release fixes the following security advisories (credit to the reporters named):

High

  • GHSA-pj9m-9623-2g75 (CVSS 7.2): a quote in files.gravity or files.database ended the SQL string in the Teleporter ATTACH statements, and together with Core's gravity.sh led to command execution by an admin. The path is now bound to a prepared statement. Reported by @Pedromdsn. Requires Core v6.6.

Low

  • GHSA-x6xh-vxcm-g8rm (CVSS 3.8): app sessions without webserver.api.app_sudo and CLI sessions could list every API session and end any of them. Reported by @gudangkantong.
  • GHSA-87wp-wm3p-8cxm (CVSS 3.7): IPv4 entries in webserver.acl never matched IPv4 clients on a dual-stack webserver.port such as +80. Reported by @010011110.
  • GHSA-cg4p-5r3r-m54p (CVSS 3.1): a password change through pihole-FTL --config (and so pihole setpassword) could be undone by an API config write at the same time, keeping the old password and its sessions valid. Reported by @010011110.
  • GHSA-fj2f-pgf2-j888 (CVSS 2.2): queries recorded at misc.privacylevel 3 could reach the long-term database once the level was lowered. Reported by @010011110.
  • GHSA-9mh9-95wj-4w4q (CVSS 2.2): crash when the metrics were read while a hosts file reload freed the dnsmasq cache. Needs a valid session. Reported by @010011110.
  • GHSA-9hh4-j8jf-6c96 (CVSS 2.2): use-after-free when a v5 Teleporter import ran while the API read the config. Needs a valid session. Reported by @010011110.

What's Changed

This release backports the fixes that landed on development since v6.8 and updates the embedded dnsmasq (v2.93+42), SQLite (v3.54.1) and the bundled TRE regex engine (current upstream master), again without the v7 work. The TRE update changes how some stored regex filters match, so this is a minor release rather than v6.8.1.

The dnsmasq update carries one change that is not upstream yet, the blockdata_alloc() fix from #3305, which is pending on dnsmasq-discuss.

Improvements

  • Regex matching is faster (#3315).
  • gravity.db is only opened again when it changed on disk. This was most of FTL's CPU time while idle (#3323).
  • Partial domain searches also find ABP-style list entries.
  • With DNSSEC, dnsmasq keeps extra TCP slots for its own validation queries, so validation still works when clients use up the TCP connection limit.
  • Control characters in logged configuration values are escaped (#3325).
  • Bash completion for pihole-FTL --config -t and -q (#3339).
  • .diskused works in pihole-FTL sqlite3.
  • Quad9's unfiltered upstream is labelled as validating DNSSEC.

Notable fixes

  • DNSSEC, via dnsmasq: a heap out-of-bounds read in zone_status(), SERVFAIL for deeper wildcard answers (#3161) and lost pipelined TCP answers (#3167).
  • Via dnsmasq: a heap out-of-bounds write in blockdata_read(), a DNS name buffer overflow and an off-by-one in the DHCPv6 FQDN option.
  • Via dnsmasq: a TFTP caching error, an empty CNAME alias from a space before a comma, and a failed realloc in poll_listen().
  • Two config changes through the API at the same time could lose one of them (#3184).
  • A PATCH of webserver.api.excludeDomains or excludeClients could free the array under a running Query Log or top list request (#3244).
  • A TCP worker forked during a config write kept pihole.toml.lock held for up to 300 s, and every config write waited for it.
  • The webserver could spin at 100% CPU and stop accepting connections when two listening sockets became ready at once (#2959, #3301).
  • Via CivetWeb: a HEAD request to a Lua page or the error page got the body, a Teleporter upload with a space in its file name was refused, and an unsatisfiable Range got a 206 instead of a 416 (#3340).
  • A crashed thread could leave FTL hanging instead of exiting, and webserver threads used the non-reentrant getpwuid()/getgrgid() (#3029).
  • /api/info/system reported the host's load inside containers (#3267).
  • FTLCONF_ variables were ignored when FTL started without pihole.toml.
  • A second pihole-FTL rewrote the config before noticing that FTL was already running.
  • Without a password, a link to the dashboard from another site was answered with 403.
  • Queries of DNS type 0 stored by FTL v5 were skipped on import.
  • misc.hide_dnsmasq_warn and misc.hide_connection_error did not hide the warnings from FTL.log (#3003).
  • A malformed password hash in pihole.toml leaked memory on every login attempt, and an app-password login counted twice against the rate limit (#3334).
  • pihole -g started through the API inherited FTL's sockets and stopped when the client stopped reading (#3335).
  • A client whose slot was reused during its name lookup got the old client's name (#3328).
  • An RTC whose time could not be read was never set (#3332).
  • pihole-FTL --config -t required a writable config (#3338), and two misleading log lines on a first start without pihole.toml (#3324).
  • The reply to a duplicate query was logged as unknown, a shared-memory resize race, pihole-FTL wait-for missing lines, and undefined behaviour in the addinfo cache.

Behaviour changes to be aware of

  • Regex filters: an omitted lower bound ({,n}, {,}) now means {0,n} and {0,}. More than three nested approximate-matching groups are rejected, and so is a back-reference inside an unbounded repetition.
  • webserver.acl: IPv4 entries now match IPv4 clients on every port, including dual-stack ones. IPv6 entries other than ::ffff:a.b.c.d only match IPv6 clients, so [::]/0 no longer admits IPv4 clients anywhere.
  • App sessions without webserver.api.app_sudo and CLI sessions get a 403 from GET /api/auth/sessions and DELETE /api/auth/session/{id}. A session can still end itself with DELETE /api/auth.
  • A password set with pihole setpassword or pihole-FTL --config while FTL is running is no longer overwritten by the next config change made through the web interface.
  • dns.cnameRecords entries whose names are not valid domains, or whose TTL does not fit into an int, are rejected (#3256).
  • A request with more than 64 headers is refused instead of losing the rest of them (#3340).
  • /api/info/system answers with an error instead of zeros when the load averages cannot be read.
  • DELETE /api/dhcp/leases/{ip} answers 503 instead of 400 when the resolver did not get to it in time (#3333).
  • With misc.readOnly, a missing pihole.toml is still written.

Full Changelog: v6.8...v6.9

Pi-hole FTL v6.8

Choose a tag to compare

@PromoFaux PromoFaux released this 17 Oct 11:10
29c8b13

Security

This release fixes the following security advisories (credit to the reporters named):

High

Medium

Low

What's Changed

This is a minor release rather than v6.7.2: there are enough visible behaviour changes that a patch version would undersell it. It backports the bug fixes that landed on development since v6.7.1 and updates the embedded dnsmasq (v2.93+30) and SQLite (v3.53.3).

Improvements

  • The live log is now stored as a ring buffer instead of moving the whole buffer for every new line, which costs far less CPU per cached answer.
  • Internationalised domain names on lists are converted to punycode with libidn2 and block, instead of being rejected as invalid.
  • Long-term statistics are grouped before joining the name tables (faster), and two unused in-memory indexes are gone, saving about 22 MB per million queries.

Notable fixes

  • Flushing the logs deleted the whole long-term history, not only the last 24 hours, and moved the graph a day into the future.
  • Crashes with 257+ alias-clients, with a no-longer-forced FTLCONF_ array, and with database.DBinterval = 0.
  • Group and list changes not reaching a client until the next reload, stale forced replies, and missing EDE on the first block.
  • A file path containing + (or any other printable ASCII) was reset to its default on start-up.
  • An open redirect in the .lp compatibility redirect, and / ignoring webserver.serve_all.
  • Pi-hole's own certificate for a custom webserver.domain was never renewed, and a domain longer than 64 characters ended up as an oversized CN.
  • The empty-DS DNSSEC loop, via dnsmasq, plus its double-free and information disclosure fixes.
  • An API session could enable misc.readOnly through a Teleporter archive, and pihole.toml.lock failed on NFS.
  • Any LAN client could make FTL add a new PTR record for every spelling of its own address until a restart.
  • The CLI password file and pihole-tmp.db were briefly or permanently readable by everyone.
  • On ARM and RISC-V the MAC address of a new device was never looked up at query time, so its MAC-based groups only applied later.
  • Raising misc.privacylevel at runtime did not cover domains and clients already seen, and an ntp.sync.interval above about 24.8 days made the NTP client sync back to back.
  • DNS stalls on list reloads and rate limiting, GC double processing, lost queries at shutdown, and wrong long-term statistics.
  • Old queries were never deleted from pihole-FTL.db on a host that restarts FTL at least once a day.
  • dhcp-discover printed the DNSSL labels of Router Advertisements unescaped.
  • Clients without a MAC address (e.g. a WireGuard peer) stayed in the default group until the next list reload, because the groups of a new client were resolved before its interface was known.
  • The load check counted only the CPUs a container was limited to, while /proc/loadavg shows the host's load, so the long-term load warning fired spuriously and /api/info/system inflated the load percentage in LXC/Docker with fewer cores. FTL now counts all present host CPUs.
  • FTLCONF_files_log_ftl was not used for log lines on early startup.

Behaviour changes to be aware of

  • Invalid values found in pihole.toml are rejected and reset to the default: database.DBinterval of 0, a webserver.tls.cert below the webroot, a non-base32 webserver.api.totp_secret, relative paths for files FTL writes, and a files.tmp_db that names another file Pi-hole keeps (e.g. pihole-FTL.db). A webserver.api.maxHistory above 86400 is reduced to 86400. A list (e.g. dns.hosts) now loses only its invalid entries instead of being reset as a whole.
  • With webserver.serve_all = false, / under a host other than webserver.domain now returns a 404, so a custom index.html in the webroot no longer shows up at http://<ip>/. Behind a proxy that does not strip webserver.paths.prefix, the prefixed path returns a 404 as well.
  • A renewed self-signed certificate comes with a new CA, so an imported tls_ca.crt has to be imported again.
  • FTL no longer hands a symbolic link (e.g. pihole-FTL.db or FTL.log linked to another disk) to the pihole user, and warns about it on every start. Such a target has to be owned by pihole already.
  • When FTL runs as root it only changes ownership or permissions of regular files directly in /etc/pihole and /var/log/pihole, and refuses a symbolic link as log file (including files.log.dnsmasq). Started as pihole, a linked log file keeps working.
  • A blocking timer on an unchanged status now switches to the opposite mode when it expires.
  • The host's own interfaces show up in the network table, and shutdown may wait up to 30 seconds for a busy database 10000 thread.
  • dnsmasq adds the option4: syntax and DHCPv6 vendor classes.
  • Changing ntp.sync.interval restarts FTL, ntp.sync.count = 0 is rejected, and POST /api/action/gravity answers 409 while a run is in progress.
  • Queries older than database.maxDBdays are deleted in the first night after a start, 10000 at a time. A database that kept growing will lose its whole backlog in the first night after the update.
  • A v5 Teleporter import replaces the upstreams, reverse servers and excluded domains/clients instead of adding to them.

Full Changelog: v6.7.1...v6.8

Pi-hole FTL v6.7.1

Choose a tag to compare

@DL6ER DL6ER released this 19 Sep 19:14
0bf029b

Security Fixes

Behavior changes

  • misc.dnsmasq_lines and webserver.advancedOpts can no longer be changed through the API or the web interface. They can still be set in pihole.toml, through environment variables and with pihole-FTL --config.
  • Wrong-method API requests now return 405 with an Allow header, and OPTIONS names only the methods of the endpoint that fits the URI best.
  • The CAP_NET_RAW startup warning is gone, dnsmasq reports it when it actually needs the capability.
  • database.maxDBdays is an unsigned value now. A negative value kept the queries forever and is migrated to 4294967295, which continues to do so.

Fixes of note

  • pi.hole and the local host name were answered with NODATA until restart once the interface cache went stale (#3050)
  • An infinite loop in the dnsmasq config test when debug.config is enabled
  • Webserver workers spinning at 100% CPU in the mbedTLS debug callback (#3106)
  • Async-signal-safety in the real-time signal handler and the TCP worker terminator
  • Query indices that went stale while the shared memory lock was released, and a domain lookup that gave up at once when a list change was being committed
  • Database connection leaks and counter skew, gravity regex and search-term handling, config write races, API error paths and response correctness
  • Memory-safety hardening in the netlink parsers, get_api_string(), base64_decode_update() and arp-scan

Full Changelog: v6.7...v6.7.1

v6.7

Choose a tag to compare

@PromoFaux PromoFaux released this 06 Jul 20:10
fa65a88

Security Fixes

What's Changed

New Contributors

Full Changelog: v6.6.2...v6.7

Pi-hole FTL v6.6.2

Choose a tag to compare

@DL6ER DL6ER released this 11 May 19:45
82c58cc

dnsmasq security update

This release imports six upstream dnsmasq security fixes, covering all publicly disclosed CVEs against the dnsmasq 2.92/2.93 line. Patches are taken verbatim from https://thekelleys.org.uk/dnsmasq/CVE/

CVEs fixed

  • CVE-2026-2291 — Heap OOB write in struct bigname. The on-heap namebuffer was sized for the wire form of a domain name (MAXDNAME) rather than its escaped internal form (MAXDNAME*2 + 1). A remote peer that can send or answer DNS queries could cause a large out-of-bounds write on the heap. Reported by Andrew S. Fasano.

  • CVE-2026-4890 — DNSSEC denial of service via NSEC bitmap parsing.The window-iteration step omitted the 2-byte window header, so a crafted NSEC record with bitmap_length == 0 produced an infinite loop and dnsmasq stopped answering queries. Reachable before RRSIG validation,so no valid signatures are required to trigger it. Reported by Royce M.

  • CVE-2026-4891 — DNSSEC crash via crafted RRSIG. A packet declaring an rdlen smaller than the fixed RRSIG header plus signer's name produced a negative signature length and a subsequent crash. Reported by Royce M.

  • CVE-2026-4892 — Privileged buffer overflow in the DHCP helper.When --dhcp-script is configured, hex-encoded DHCPv6 client identifiers (up to 65535 bytes) were written into a 5131-byte buffer in the root-privileged helper. Reported by Royce M.

  • CVE-2026-4893 — EDNS Client Subnet validation bypass. With--add-subnet enabled, process_reply() passed the OPT record length(~23 bytes) to check_source() instead of the packet length, causing every internal bounds check to fail and the validation routine to always return success. ECS source validation per RFC 7871 §9.2 was effectively disabled. Reported by Royce M.

  • CVE-2026-5172 — Heap OOB read in extract_addresses(). A mismatched RR rdlen allowed extract_name() to advance past the computed end of the record, underflowing the remaining-bytes calculation and producing a large OOB read with certain crash.Reported by Hugo Martinez Ray.

Upgrade impact

All six fixes are minimal, self-contained changes to the embedded dnsmasq sources. No FTL-side configuration or API changes; users should see no observable behavior change beyond the closed vulnerabilities.

Fix dnsmasq CVE publications by @DL6ER in #2888

This furthermore indirectly fixes #2871 due to pi-hole/docker-base-images#158

Full Changelog: v6.6.1...v6.6.2

v6.6.1

Choose a tag to compare

@PromoFaux PromoFaux released this 24 Apr 21:35
e1b4c1d

What's Changed

  • Add new GET /api/config/_properties endpoint by @DL6ER in #2356
  • Fix thread-safety issues causing SIGSEGV under concurrent API load by @DL6ER in #2835
  • fix: fix rare race condition for SHM strings in API handlers by @DL6ER in #2833
  • Accept punycode domains that libidn2 rejects under IDNA2008 by @DL6ER in #2838
  • Improve shutdown diagnostics to identify SIGTERM source by @DL6ER in #2839
  • Resolve empty backtraces when addr2line is not installed by @DL6ER in #2831
  • Improve thread-safety for concurrent API requests by @DL6ER in #2847
  • Don't skip device lookup when resolver.macNames is disabled by @DL6ER in #2846
  • Fix linker error when compiling w/o optimization by @aeolio in #2850
  • Clarify dns.blockESNI wording by @darkexplosiveqwx in #2784
  • Preserve log file path config when fopen fails by @DL6ER in #2834

Security advisories

New Contributors

Full Changelog: v6.6...v6.6.1

v6.6

Choose a tag to compare

@PromoFaux PromoFaux released this 03 Apr 16:42
71b6fc6

What's Changed

  • Fix possible resolver issue on armv5tel by @DL6ER in #2781
  • Introduce CMake options for optional dependencies by @aeolio in #2795
  • Fix build without mbedtls [v2] by @aeolio in #2796
  • Fix overTime data when database.DBimport = false by @DL6ER in #2788
  • Fix cross-compilation issues w/ custom toolchain by @aeolio in #2797
  • Add new option for controling name resolution via MAC address by @DL6ER in #2790
  • Fix obtaining client groups by name by @DL6ER in #2791
  • Ensure API sessions are restored before starting the HTTP server by @DL6ER in #2803
  • Add form-action 'self' to Content-Security-Policy by @yubiuser in #2804
  • Add query_frequency to /padd endpoint by @yubiuser in #2806
  • Guard query-count counters against unsigned underflow by @DL6ER in #2815
  • Add universal crash backtrace via _Unwind_Backtrace by @DL6ER in #2811
  • config: show totp_secret presence in CLI output by @DL6ER in #2813
  • Fix client count inflation for rate-limited queries by @DL6ER in #2814
  • Fix stack buffer overflow in get_process_name() by @DL6ER in #2821
  • Do not restart FTL while pihole -g is still ongoing by @DL6ER in #2419

Security Advisories

New Contributors

Full Changelog: v6.5...v6.6

v6.5

Choose a tag to compare

@PromoFaux PromoFaux released this 17 Feb 20:20
f888309

What's Changed

  • Tweak undocumented wait-for option subtly by @DL6ER in #2707
  • update gravity - improve domain validation processing speed by @rrobgill in #2710
  • Update embedded SQLite3 to 3.51.1 by @DL6ER in #2731
  • Update embedded dnsmasq to 2.92rc1 by @DL6ER in #2730
  • Fix documentation - Do not use equal sign with pihole-FTL --config command by @rdwebdesign in #2736
  • Add dns.cache.rrtype by @Manakuremati in #2740
  • Enhancements to the documentation markdown generator by @PromoFaux in #2741
  • Network Overview - obtain MAC and hostname from dhcp.leases by @rrobgill in #2727
  • fix: make get_domains parameters optional by @tien in #2278
  • Escape unprintable characters in invalid host names by @DL6ER in #2601
  • Implement better allOf handling in API verifier by @DL6ER in #2745
  • Update build containers to Alpine 3.23 by @DL6ER in #2743
  • Add option to hide network connection errors by @DL6ER in #2749
  • Harden default Content Security Policy (CSP) by @Erasure5959 in #2754
  • Fix computation of NTP server's root delay by @DL6ER in #2760
  • Teleporter: Fix for custom gravity.db path by @DL6ER in #2758
  • Upgrade embedded Lua to 5.5 by @DL6ER in #2626
  • Add missing [forwarded] property in GET /api/history/database by @DL6ER in #2750
  • Update SQLite3 to 3.51.2 by @DL6ER in #2761
  • Low-memory hardware optimizations by @DL6ER in #2757
  • Reduce startup delay by @DL6ER in #2725
  • home.arpa and internal TLDs may be non-local without revServer by @DL6ER in #2772

New Contributors

Full Changelog: v6.4.1...v6.5

v6.4.1

Choose a tag to compare

@PromoFaux PromoFaux released this 27 Nov 18:20
8d1add8

Nothing to see here - accidentally tagged the wrong commit for the big 6.4 release. Content is exactly the same as v6.4

What's Changed

  • Fix API specs and example for dns.upstreams in config.yaml by @rdwebdesign in #2696
  • gravity update - silently discard unicode BOM if present by @rrobgill in #2702
  • Update embedded SQLite to 3.51.0 by @DL6ER in #2704
  • Get earliest query timestamp from database by @PromoFaux in #2706
  • Increase buffer length for query string by @mwoolweaver in #2709
  • Reduce DNS resolver locking during database interaction by @DL6ER in #2700
  • Make colour output optional in streaming gravity API call by @PromoFaux in #2718
  • api/dhcp/leases Allow for hwaddr > 48 bits by @rrobgill in #2724
  • Add rate-limiting for TOTP validation by @DL6ER in #2719
  • Implement simple partial matching for regex in /api/search/{domain} by @DL6ER in #2705
  • Performance optimizations: string processing, memory management, and compiler flags by @Copilot in #2571
  • Fix authentication redirect when webhome is / (fixes #2518) by @averyvigolo in #2610
  • Reduce database locking and add timing debug setting by @DL6ER in #2688

New Contributors

Full Changelog: v6.3.3...v6.4.1

v6.4

Choose a tag to compare

@PromoFaux PromoFaux released this 27 Nov 18:02
3a2647d

What's Changed

  • Fix API specs and example for dns.upstreams in config.yaml by @rdwebdesign in #2696
  • gravity update - silently discard unicode BOM if present by @rrobgill in #2702
  • Update embedded SQLite to 3.51.0 by @DL6ER in #2704
  • Get earliest query timestamp from database by @PromoFaux in #2706
  • Increase buffer length for query string by @mwoolweaver in #2709
  • Reduce DNS resolver locking during database interaction by @DL6ER in #2700
  • Make colour output optional in streaming gravity API call by @PromoFaux in #2718
  • api/dhcp/leases Allow for hwaddr > 48 bits by @rrobgill in #2724
  • Add rate-limiting for TOTP validation by @DL6ER in #2719
  • Implement simple partial matching for regex in /api/search/{domain} by @DL6ER in #2705
  • Performance optimizations: string processing, memory management, and compiler flags by @Copilot in #2571
  • Fix authentication redirect when webhome is / (fixes #2518) by @averyvigolo in #2610
  • Reduce database locking and add timing debug setting by @DL6ER in #2688

New Contributors

Full Changelog: v6.3.3...v6.4

0