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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 12.25% (percentile 97, 2026-11-26)
- **CWE:** CWE-284
- **Aliases:** EDB-51705
- **Published:** 2022-12-22T23:17:19.812Z
- **Modified:** 2026-06-17T04:30:16.493Z

## Who should check

- Anyone running pi-hole AdminLTE \< 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.

## Affected and fixed versions

- pi-hole AdminLTE: \< 5.17 (cvelist)

## Mitigation

- Upgrade AdminLTE to 5.17 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-23513. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-23513.md
Affected: pi-hole AdminLTE < 5.17
Fixed in: pi-hole AdminLTE 5.17

Steps:
1. Search this machine and project for pi-hole AdminLTE: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-23513 being exploited?

There is no confirmed exploitation: CVE-2022-23513 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 12.25% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-23513?

Medium: CVSS 5.3 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2022-23513?

pi-hole AdminLTE \< 5.17.

### Is there a fix for CVE-2022-23513?

Yes. Fixed in pi-hole AdminLTE 5.17. Upgrade AdminLTE to 5.17 or later.

### How do I check if I'm affected by CVE-2022-23513?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-23513>
- Exploit-DB: Exploit metadata (ID and link only) from the Exploit Database <https://www.exploit-db.com/exploits/51705>

HTML: <https://flawdb.com/CVE-2022-23513> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-23513>
