> CVE-2026-25129 [MEDIUM]

« BACK_TO_HOME
PUBLISHED
2026-01-30 21:15
MODIFIED
2026-01-30 21:15
CVSS_SCORE V3
6.7
EPSS (Prob. Exploit)
0.33%
Top 75.4%
DATA SOURCES:
NVD đź”— 2026-01-30 CWE MITRE đź”— 2026-11-01 FIRST EPSS đź”— 2026-10-25 GITHUB đź”— 2026-10-28 OSV đź”— 2026-02-06

> DESCRIPTION

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.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
EXPLOITABILITY
0.8
IMPACT
5.9

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Local (L)
Exploit nécessite un accès local au système
AC (Complexité d'Attaque)
Attack Complexity
High (H)
Conditions spécifiques doivent être réunies pour exploiter
PR (Privilèges Requis)
Privileges Required
Low (L)
Authentifié avec compte utilisateur basique
UI (Interaction Utilisateur)
User Interaction
Required (R)
Nécessite une action utilisateur (clic lien, ouverture fichier, etc.)
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
High (H)
Divulgation totale d'informations
I (Impact Intégrité)
Integrity Impact
High (H)
Modification totale des données possible
A (Impact Disponibilité)
Availability Impact
High (H)
Interruption totale du service possible

> RÉSUMÉ DES IMPACTS

Confidentialité
High
Divulgation totale d'informations
Intégrité
High
Modification totale des données possible
Disponibilité
High
Interruption totale du service possible

> WEAKNESSES

CWE-427

> CWE DETAILED DESCRIPTIONS

CWE-427: Uncontrolled Search Path Element - The product uses a fixed or controlled search path to find resources, but one or more locations in that path can be under the control of unintended actors.

> GITHUB SECURITY ADVISORY

GHSA-4486-gxhx-5mg7 MODERATE

PsySH has Local Privilege Escalation via CWD .psysh.php auto-load

AFFECTED PACKAGES:
COMPOSER / psy/psysh
<= 0.11.22
Fixed in: 0.11.23
COMPOSER / psy/psysh
>= 0.12.0, <= 0.12.18
Fixed in: 0.12.19

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

PsySH has Local Privilege Escalation via CWD .psysh.php auto-load

AFFECTED PACKAGES:
Unknown / Unknown
19 versions affected
ALIASES:
GHSA-4486-gxhx-5mg7

> HISTORIQUE DES MODIFICATIONS

Première apparition
30/01/2026 21:15
Source: NVD
📊 ENRICHISSEMENT 01/02/2026 06:45
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-427: Uncontrolled Search Path Element - The product uses a fixed or controlled search path to find resources, but one or more locations in that path can be under the control of unintended actors.
Total des modifications: 1 Dernière mise à jour: 9 months ago

> REFERENCES

https://github.com/bobthecow/psysh/releases/tag/v0.11.23
https://github.com/bobthecow/psysh/releases/tag/v0.12.19
https://github.com/bobthecow/psysh/security/advisories/GHSA-4486-gxhx-5mg7
« BACK_TO_HOME