CVE-2025-23395
JSON

7.3high

Local root exploit via `logfile_reopen()` in screen 5.0.0 with setuid-root bit set

Severity
7.3high CVSS:4.0 by suse
Exploit likelihood
0.30% (higher than 24% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
suse

Description

Screen 5.0.0 when it runs with setuid-root privileges does not drop privileges while operating on a user supplied path. This allows unprivileged users to create files in arbitrary locations with `root` ownership, the invoking user's (real) group ownership and file mode 0644. All data written to the Screen PTY will be logged into this file, allowing to escalate to root privileges

Affected

Product or packageVersionsReported by
screenfrom 5.0 up to 5.0.0CVE List

All scores

suse7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
suse7.3high CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Classification

CWE-271

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

Screen 5.0.0 when it runs with setuid-root privileges does not drop privileges while operating on a user supplied path. This allows unprivileged users to create files in arbitrary locations with `root` ownership, the invoking user's (real) group ownership and file mode 0644. All data written to the Screen PTY will be logged into this file, allowing to escalate to root privileges

NVD (es)

Screen 5.0.0, al ejecutarse con privilegios setuid-root, no pierde privilegios al operar en una ruta proporcionada por el usuario. Esto permite a usuarios sin privilegios crear archivos en ubicaciones arbitrarias con propiedad root, la propiedad del grupo (real) del usuario que los invoca y el modo de archivo 0644. Todos los datos escritos en el PTY de Screen se registrarán en este archivo, lo que permite escalar a privilegios root.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-23395 changed 2025-05-27CVE Terms of Use
NVDCVE-2025-23395 changed 2026-06-17Public domain