GNU Screenに環境変数経由でバッファオーバーフローの脆弱性、コード実行のおそれ
Summary
GNU Screenには、HOMEとSTYの環境変数の値が攻撃者に操作されると、グローバルバッファオーバーフローが起きる脆弱性があります。影響を受けるのは5.0.2より前の版で、悪用されるとアプリケーションがクラッシュするほか、任意のコードが実行されるおそれがあります。修正版の5.0.2が公開されているので、速やかに更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
GNU Screenには、HOMEとSTYの環境変数の値が攻撃者に操作されると、グローバルバッファオーバーフローが起きる脆弱性があります。影響を受けるのは5.0.2より前の版で、悪用されるとアプリケーションがクラッシュするほか、任意のコードが実行されるおそれがあります。修正版の5.0.2が公開されているので、速やかに更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| GNUScreen |
< 5.0.2→ 5.0.2 |
5.0.2 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-71409 screen Fix available
- Ubuntu UBUNTU-CVE-2026-71409 screen No fixed version in this record
Original description The description as published by the source.
GNU screen is vulnerable to a global buffer overflow in the SendCmdMessage() function within attacher.c. Due to the use of an unchecked sprintf() call when appending the STY environment variable to the global SocketPath buffer. The vulnerability occurs when GNU screen is executed in an environment where the HOME and STY environment variables contain attacker-controlled values that are sufficiently long. Successful exploitation may result in an application crash or potentially arbitrary code execution.
This issue was fixed in version 5.0.2.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- REDHAT Red Hat
- web cvd@cert.pl
- web cvd@cert.pl
- web cvd@cert.pl
- web cvd@cert.pl
- web nvd.nist.gov
- web github.com