SecurityContext

CVE-2021-39503: PHPMyWind - Remote Code Execution

  • Cve: CVE-2021-39503
  • Name: PHPMyWind - Remote Code Execution
  • Description: PHPMyWind 5.6 is vulnerable to Remote Code Execution. Becase input is filtered without "<, >, ?, =, `,...." In WriteConfig() function, an attacker can inject php code to /include/config.cache.php file.
  • Impact: Attackers can execute arbitrary PHP code on the server, leading to full system compromise.
  • Remediation: Apply input validation and sanitization, and update to the latest version if available.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.2
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.0282
  • Epss percentile: 0.86919
  • Assignee: [email protected]
  • Published at: 2021-09-07T20:15:08Z
  • Age in days: 1904
  • Modified at: 2026-06-17T04:03:44Z
  • Public exploits total: 2
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-39503
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-94Improper Control of Generation of Code

Public exploits

UrlSourceAdded date
https://github.com/KietNA-HPT/CVEnvd2021-09-07
https://github.com/gaozhifeng/PHPMyWind/issues/15nvd2021-09-07

References

UrlSourceTags
https://github.com/KietNA-HPT/CVEnvdExploit, Third Party Advisory
https://github.com/gaozhifeng/PHPMyWind/issues/15nvdExploit, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
phpmywind:phpmywind= 5.6nonvd/v1/products/phpmywind/phpmywind

Projects

RepositoryLink kindsIndexedUrl
gaozhifeng/PHPMyWindissuesyes/v1/repositories/gaozhifeng/PHPMyWind

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 2
  • Public exploit first date: 2021-09-07
  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts