Vulnerability record · CVE-2018-1000533 · published 26 June 2018
CVE-2018-1000533: GitList searchTree input validation flaw allows PHP code execution
Gitlist · Gitlist
GitList version 0.6 and earlier passes incorrectly sanitized input from the search form into a system function in the searchTree routine. An unauthenticated remote attacker can send a crafted POST request to execute arbitrary code as the PHP user. The issue is fixed in 0.7 via commit 87b8c26b023c3fc37f0796b14bb13710f397b322.
Description
klaussilveira GitList version <= 0.6 contains a Passing incorrectly sanitized input to system function vulnerability in `searchTree` function that can result in Execute any code as PHP user. This attack appear to be exploitable via Send POST request using search form. This vulnerability appears to have been fixed in 0.7 after commit 87b8c26b023c3fc37f0796b14bb13710f397b322.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Automated analysis
critical priorityCVSS 9.8 with no authentication or user interaction required, combined with a very high EPSS score and public exploit references, makes this an urgent remote code execution risk.
What it is
GitList version 0.6 and earlier passes incorrectly sanitized input from the search form into a system function in the searchTree routine. An unauthenticated remote attacker can send a crafted POST request to execute arbitrary code as the PHP user. The issue is fixed in 0.7 via commit 87b8c26b023c3fc37f0796b14bb13710f397b322.
Impact
Successful exploitation gives the attacker arbitrary code execution with the privileges of the PHP process, leading to full compromise of the GitList host and any repositories it serves.
Attack surface
Reached over the network through the GitList search form by sending a POST request; the CVSS vector shows no authentication (PR:N) and no user interaction (UI:N) required.
Exploitation
CISA KEV does not list this CVE, but EPSS is very high (0.72967, 99.4th percentile) and public references include an exploit write-up, indicating meaningful real-world exploitation risk.
What to do
- Upgrade GitList to 0.7 or later, which contains the fix from commit 87b8c26b023c3fc37f0796b14bb13710f397b322.
- If immediate upgrade is not possible, restrict network access to GitList instances to trusted users or place them behind authentication and network controls.
- Run the PHP process under a low-privilege account with no unnecessary filesystem or shell access.
- Review and harden any custom code paths that pass user input to system or shell functions, applying strict allowlist validation.
- Monitor GitList and PHP logs for anomalous search requests containing shell metacharacters.
Detection
- Inspect web server and application logs for POST requests to GitList search endpoints containing shell metacharacters such as ;, |, $(), backticks, or &&.
- Monitor for unexpected child processes spawned by the PHP process (for example sh, bash, curl, wget) on GitList hosts.
- Alert on outbound network connections from the GitList server to unfamiliar hosts, which may indicate post-exploitation activity.
- Use file integrity monitoring on web-accessible directories to detect dropped webshells or modified PHP files.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/klaussilveira/gitlist/commit/87b8c26b023c3fc37f0796b14bb13710f397b322 | PatchThird Party Advisory |
| https://security.szurek.pl/exploit-bypass-php-escapeshellarg-escapeshellcmd.html | ExploitThird Party Advisory |
| https://github.com/klaussilveira/gitlist/commit/87b8c26b023c3fc37f0796b14bb13710f397b322 | PatchThird Party Advisory |
| https://security.szurek.pl/exploit-bypass-php-escapeshellarg-escapeshellcmd.html | ExploitThird Party Advisory |
Track CVE-2018-1000533 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2018-1000533), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.