# Pi-hole Core v5.18 released to fix an Authenticated Arbitrary File Read with root privileges vulnerability

**URL:** <https://discourse.pi-hole.net/t/pi-hole-core-v5-18-released-to-fix-an-authenticated-arbitrary-file-read-with-root-privileges-vulnerability/69221>\
**Category:** Announcements\
**Created:** [March 27, 2024, 6:16pm UTC](https://discourse.pi-hole.net/t/pi-hole-core-v5-18-released-to-fix-an-authenticated-arbitrary-file-read-with-root-privileges-vulnerability/69221 "2024-03-27T18:16:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PromoFaux](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/promofaux/32/1545_2.png) [@PromoFaux](https://discourse.pi-hole.net/u/PromoFaux)\
**Post date:** [March 27, 2024, 6:16pm UTC](https://discourse.pi-hole.net/t/pi-hole-core-v5-18-released-to-fix-an-authenticated-arbitrary-file-read-with-root-privileges-vulnerability/69221/1 "2024-03-27T18:16:51Z")

</div>

Originally published at: [Pi-hole Core v5.18 released to fix an Authenticated Arbitrary File Read with root privileges vulnerability – Pi-hole](https://pi-hole.net/blog/2024/03/27/pi-hole-core-v5-18-released-to-fix-an-authenticated-arbitrary-file-read-with-root-privileges-vulnerability/)

A vulnerability was recently discovered in Pi-hole’s gravity script that would allow for any system file to be arbitrarily read and presented to an authenticated user on the web interface.

This release mitigates the vulnerability by limiting gravity’s ability to read local file’s to only those that are explicitly readable by anyone on the system.

More information can be found here: [https://github.com/pi-hole/pi-hole/security/advisories/GHSA-95g6-7q26-mp9x](https://github.com/pi-hole/pi-hole/security/advisories/GHSA-95g6-7q26-mp9x)

Many thanks to Github User [@T0X1Cx](https://github.com/T0X1Cx) for their responsible (and detailed!) disclosure of this vulnerability.

As a reminder, potential issues can be reported to us either through Github’s vulnerability reporting tools or by emailing us on [disclosure@pi-hole.net](mailto:disclosure@pi-hole.net)

#### What’s Changed

- Drop Fedora 36 and add Fedora 39 to the test suite by [![](https://discourse.pi-hole.net/uploads/default/original/3X/f/8/f82c3b418a8aced28f1df53131f967dbadef1872.png)@yubiuser](https://github.com/yubiuser) in [#5568](https://github.com/pi-hole/pi-hole/pull/5568)
- [Vulnerability Fix] Only use local files (file://) when they have explicit permissions a+r by [![](https://discourse.pi-hole.net/uploads/default/original/3X/b/c/bc71caa8887537f6dbd33f26e1841d7dccf91b04.jpeg)@DL6ER](https://github.com/DL6ER) [9dd138b](https://github.com/pi-hole/pi-hole/commit/9dd138b03348f24a001d60f27e29c8c62af28871)

**Full Changelog** : [v5.17.3...v5.18](https://github.com/pi-hole/pi-hole/compare/v5.17.3...v5.18)

---

<div class="post-metadata">

**Author:** ![PromoFaux](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/promofaux/32/1545_2.png) [@PromoFaux](https://discourse.pi-hole.net/u/PromoFaux)\
**Post date:** [March 27, 2024, 6:24pm UTC](https://discourse.pi-hole.net/t/pi-hole-core-v5-18-released-to-fix-an-authenticated-arbitrary-file-read-with-root-privileges-vulnerability/69221/2 "2024-03-27T18:24:40Z")

</div>

Listed on March 27, 2024, 6:24pm UTC


