CVE-2018-12613
A public proof of concept exists; no exploitation attested.
- Published2018-06-21
- Fixed in4.8.2
- WeaknessCWE-287
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
An issue was discovered in phpMyAdmin 4.8.x before 4.8.2, in which an attacker can include (view and potentially execute) files on the server. The vulnerability comes from a portion of code where pages are redirected and loaded within phpMyAdmin, and an improper test for whitelisted pages. An attacker must be authenticated, except in the "$cfg['AllowArbitraryServer'] = true" case (where an attacker can specify any host he/she is already in control of, and execute arbitrary code on phpMyAdmin) and the "$cfg['ServerDefault'] = 0" case (which bypasses the login requirement and runs the vulnerable code without any authentication).
Timeline
dates in UTC- 2018-06-21Exploit-DB entryExploit-DB
- 2018-06-2120:29CVE publishedNVD
Observed activity
isMalicious corpus · updated 2026-11-03 21:37 UTCBlock these indicators
- Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2018-12613?format=txt
- CSV export: https://api.ismalicious.com/edl/cve/CVE-2018-12613?format=csv
- TAXII collection of exploited CVEs
- The EDL and CSV take an API key on the Pro plan.
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 4.8 | ≥ 4.8.0, < 4.8.2 | 4.8.2 | NVD |
| 4.8 | ≥ 4.8, < 4.8.2 | 4.8.2 | OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- phpmyadminCleanStartall versions · fixed in 4.8.2-r0
- phpmyadminAlpine:v3.24from 4.8.0 · fixed in 4.8.2-r0
- phpmyadminAlpine:v3.23from 4.8.0 · fixed in 4.8.2-r0
- phpmyadminAlpine:v3.22from 4.8.0 · fixed in 4.8.2-r0
- phpmyadminAlpine:v3.21from 4.8.0 · fixed in 4.8.2-r0
- phpmyadminAlpine:v3.20from 4.8.0 · fixed in 4.8.2-r0
- phpmyadminAlpine:v3.19from 4.8.0 · fixed in 4.8.2-r0
- phpmyadminAlpine:v3.18from 4.8.0 · fixed in 4.8.2-r0
11 more package ranges on OSV.dev
Vendor advisories
- CVE-2018-12613 Red Hat Product Security
phpMyAdmin: Multiple security issues fixed in 4.8.4
Fix
- Update Phpmyadmin to 4.8.2
Advisories and patches
- www.phpmyadmin.netVendor Advisory
Detection
read 2026-11-03 22:42 UTC- Nuclei template
- available ProjectDiscovery
- Proof-of-concept repositories
- 4 repositories, unverified0x00-0x00/CVE-2018-12613ivanitlearning/CVE-2018-12613eastmountyxz/CVE-2018-12613-phpMyAdminCyberCTF/vulhub-phpmyadmin-cve-2018-12613 PoC-in-GitHub
- Metasploit modules
- 1 moduleexploit/multi/http/phpmyadmin_lfi_rcerank: goodModule metadata: Metasploit Framework, © Rapid7, Inc., BSD-3-Clause. Metasploit Framework
Sources
- NVDCVSS 3.18.8read 2026-10-23
- NVDCVSS 2.06.5read 2026-10-23
- NVDweakness (CWE)CWE-287read 2026-10-23
- FIRST EPSSEPSS score98.4 %read 2026-11-03
- PoC-in-GitHubproof of concept4read 2026-11-03
- Exploit-DBdetectionread 2026-11-03
- ProjectDiscoverydetectionread 2026-11-03
- Metasploit FrameworkMetasploit modules1known since 2026-11-01
- OSVaffected packages—
- GitHub AdvisoriesadvisoryHIGH2024-04-24
Identifiers
- EUVD-2022-5695same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-x394-g9j8-x7mfsame flawGitHub Advisory Database · CC-BY-4.0
- exploit/multi/http/phpmyadmin_lfi_rceexploit moduleMetasploit Framework © Rapid7 · BSD-3-Clause
- openSUSE-SU-2024:11171-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Published
- 2018-06-21
- Last Modified
- 2026-06-17
- NVD status
- Modified
- GitHub Advisory
- GHSA-x394-g9j8-x7mf
Frequently asked questions
What is CVE-2018-12613?
Is CVE-2018-12613 actively exploited?
What is the CVSS score for CVE-2018-12613?
Running phpmyadmin/phpmyadmin? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- Exploit-DB · Exploit-DB terms of service · terms restrict redistribution
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-x394-g9j8-x7mf
- Metasploit Framework · BSD-3-Clause
- Nuclei templates · MIT
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0