CVE-2026-25129
CVE-2026-25129 · PsySH has Local Privilege Escalation via CWD .psysh.php auto-load
Esta página presenta datos de fuentes públicas de vulnerabilidades. Consulta el aviso original antes de actualizar.
PsySH is a runtime developer console, interactive debugger, and REPL for PHP. Prior to versions 0.11.23 and 0.12.19, PsySH automatically loads and executes a `.psysh.php` file from the Current Working Directory (CWD) on startup. If an attacker can write to a directory that a victim later uses as their CWD when launching PsySH, the attacker can trigger arbitrary code execution in the victim's context. When the victim runs PsySH with elevated privileges (e.g., root), this results in local privilege escalation. This is a CWD configuration poisoning issue leading to arbitrary code execution in the victim user’s context. If a privileged user (e.g., root, a CI runner, or an ops/debug account) launches PsySH with CWD set to an attacker-writable directory containing a malicious `.psysh.php`, the attacker can execute commands with that privileged user’s permissions, resulting in local privilege escalation. Downstream consumers that embed PsySH inherit this risk. For example, Laravel Tinker (`php artisan tinker`) uses PsySH. If a privileged user runs Tinker while their shell is in an attacker-writable directory, the `.psysh.php` auto-load behavior can be abused in the same way to execute attacker-controlled code under the victim’s privileges. Versions 0.11.23 and 0.12.19 patch the issue.
CVSS 6.7 · Media · EPSS 0,3% · Corrección disponible
- Publicación
- Actualización
Pila tecnológica: php
Productos y versiones afectados
psysh
- Versiones
- < 0.11.23: Afectada
- >= 0.12.0, < 0.12.19: Afectada
Sin corrección publicada
psy/psysh Packagist
- Versiones
- v0.12.0
- v0.12.1
- v0.12.10
- v0.12.11
- v0.12.12
- v0.12.13
- v0.12.14
- v0.12.15
- v0.12.16
- v0.12.17
- v0.12.18
- v0.12.2
- v0.12.3
- v0.12.4
- v0.12.5
- v0.12.6
- v0.12.7
- v0.12.8
- v0.12.9
- Intervalos de versiones afectados
- ECOSYSTEM: ≥ 0.12.0, < 0.12.19
Actualiza a 0.12.19
psy/psysh Packagist
- Versiones
- v0.1.0
- v0.1.1
- v0.1.10
- v0.1.11
- v0.1.12
- v0.1.2
- v0.1.3
- v0.1.4
- v0.1.5
- v0.1.6
- v0.1.7
- v0.1.8
- v0.1.9
- v0.10.0
- v0.10.10
- v0.10.11
- v0.10.12
- v0.10.2
- v0.10.3
- v0.10.4
- v0.10.5
- v0.10.6
- v0.10.7
- v0.10.8
- v0.10.9
- v0.11.0
- v0.11.1
- v0.11.10
- v0.11.11
- v0.11.12
- v0.11.13
- v0.11.14
- v0.11.15
- v0.11.16
- v0.11.17
- v0.11.18
- v0.11.19
- v0.11.2
- v0.11.20
- v0.11.21
- v0.11.22
- v0.11.3
- v0.11.4
- v0.11.5
- v0.11.6
- v0.11.7
- v0.11.8
- v0.11.9
- v0.2.0
- v0.2.1
- v0.3.0
- v0.3.1
- v0.3.2
- v0.3.3
- v0.3.4
- v0.3.5
- v0.4.0
- v0.4.1
- v0.4.2
- v0.4.3
- v0.4.4
- v0.5.0
- v0.5.1
- v0.5.2
- v0.6.0
- v0.6.1
- v0.7.0
- v0.7.1
- v0.7.2
- v0.8.0
- v0.8.1
- v0.8.10
- v0.8.11
- v0.8.12
- v0.8.13
- v0.8.14
- v0.8.15
- v0.8.16
- v0.8.17
- v0.8.18
- v0.8.2
- v0.8.3
- v0.8.4
- v0.8.5
- v0.8.6
- v0.8.7
- v0.8.8
- v0.8.9
- v0.9.0
- v0.9.1
- v0.9.11
- v0.9.12
- v0.9.2
- v0.9.3
- v0.9.4
- v0.9.5
- v0.9.6
- v0.9.7
- v0.9.8
- v0.9.9
- Intervalos de versiones afectados
- ECOSYSTEM: < 0.11.23
Actualiza a 0.11.23