RepoManagerに認証済みの利用者からOSコマンドを実行される脆弱性
Summary
RepoManagerの5.13.3より前のバージョンには、GPG鍵の削除処理におけるOSコマンドインジェクションの脆弱性があります。認証済みの利用者が細工した鍵の識別子を送ると、Webサーバーの実行権限でOSコマンドを実行され、秘密情報の窃取やパッケージの改ざんにつながるおそれがあります。修正版の5.13.3で解消されているため、5.13.3以降へのアップデートをおすすめします。
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.
RepoManagerの5.13.3より前のバージョンには、GPG鍵の削除処理におけるOSコマンドインジェクションの脆弱性があります。認証済みの利用者が細工した鍵の識別子を送ると、Webサーバーの実行権限でOSコマンドを実行され、秘密情報の窃取やパッケージの改ざんにつながるおそれがあります。修正版の5.13.3で解消されているため、5.13.3以降へのアップデートをおすすめします。
Original description The description as published by the source.
RepoManager is a self-hosted deb/rpm package repository. Prior to 5.13.3, an authenticated user can supply a user-controlled, array-valued GPG key identifier to the key deletion action. Validate::string() filters HTML characters but not shell metacharacters. The user-controlled identifier reaches the delete action without shell-safe encoding. controllers/Gpg.php contains the vulnerable deletion path. Process::execute() passes the command string through proc_open() and /bin/sh -c, allowing the attacker to execute arbitrary OS commands as the web/PHP process. This can expose secrets or poison packages. Authentication is required, but the advisory makes an administrator-only restriction conditional on the intended access policy and does not establish an administrator role as a prerequisite. Fixed in 5.13.3.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- patch github.com
- web github.com