{"id":"MSF-multi--http--gitlab_shell_exec","name":"Gitlab-shell Code Execution","description":"This module takes advantage of the addition of authorized ssh keys in the gitlab-shell functionality of Gitlab. Versions of gitlab-shell prior to 1.7.4 used the ssh key provided directly in a system call resulting in a command injection vulnerability. As this relies on adding an ssh key to an account, valid credentials are required to exploit this vulnerability.","cves":["CVE-2013-4490"],"author":"Brandon Knight","published":"2013-11-04","platform":"Linux,Python,Unix","type":"remote","language":"Ruby","source":"metasploit","sourceUrl":"https://github.com/rapid7/metasploit-framework/blob/90dfbaa741421d0179f9f371109c215d49400444/modules/exploits/multi/http/gitlab_shell_exec.rb","path":"modules/exploits/multi/http/gitlab_shell_exec.rb","revision":"90dfbaa741421d0179f9f371109c215d49400444","filename":"gitlab_shell_exec.rb","vulnerabilities":[{"id":"CVE-2013-4490","state":"PUBLISHED","title":null,"titleSource":null,"description":"The SSH key upload feature (lib/gitlab_keys.rb) in gitlab-shell before 1.7.3, as used in GitLab 5.0 before 5.4.1 and 6.x before 6.2.3, allows remote authenticated users to execute arbitrary commands via shell metacharacters in the public key.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2013-4490","cvss":{"version":"2.0","baseScore":6.5,"severity":"medium","vectorString":"AV:N/AC:L/Au:S/C:P/I:P/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2013-4490"},"updatedAt":"2024-08-06T16:45:14.763Z","retrievedAt":"2026-11-26T11:53:03.675Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/MSF-multi--http--gitlab_shell_exec.png?v=2","url":"https://exploitbin.com/exploits/MSF-multi--http--gitlab_shell_exec","downloadUrl":"https://exploitbin.com/api/v1/exploits/MSF-multi--http--gitlab_shell_exec/download","codeUrl":"https://exploitbin.com/api/v1/exploits/MSF-multi--http--gitlab_shell_exec/code","licenseUrl":"https://exploitbin.com/sources#metasploit"}