{"uuid": "12af28c2-439e-4e1c-9dae-5468f60dc869", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "CVE-2022-43781", "type": "seen", "source": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/bitbucket_env_var_rce.rb", "content": "{\"aliases\": [], \"arch\": \"cmd, x86, x64\", \"author\": [\"Ry0taK\", \"y4er\", \"Shelby Pace\"], \"autofilter_ports\": [80, 8080, 443, 8000, 8888, 8880, 8008, 3000, 8443], \"autofilter_services\": [\"http\", \"https\"], \"check\": true, \"default_credential\": false, \"description\": \"For various versions of Bitbucket, there is an authenticated command injection\\n          vulnerability that can be exploited by injecting environment\\n          variables into a user name. This module achieves remote code execution\\n          as the `atlbitbucket` user by injecting the `GIT_EXTERNAL_DIFF` environment\\n          variable, a null character as a delimiter, and arbitrary code into a user's\\n          user name. The value (payload) of the `GIT_EXTERNAL_DIFF` environment variable\\n          will be run once the Bitbucket application is coerced into generating a diff.\\n\\n          This module requires at least admin credentials, as admins and above\\n          only have the option to change their user name.\", \"disclosure_date\": \"2022-11-16\", \"fullname\": \"exploit/multi/http/bitbucket_env_var_rce\", \"is_install_path\": true, \"mod_time\": \"2026-04-22 11:57:58 +0000\", \"name\": \"Bitbucket Environment Variable RCE\", \"needs_cleanup\": null, \"notes\": {\"Reliability\": [\"repeatable-session\"], \"SideEffects\": [\"artifacts-on-disk\", \"ioc-in-logs\"], \"Stability\": [\"crash-safe\"]}, \"path\": \"/modules/exploits/multi/http/bitbucket_env_var_rce.rb\", \"platform\": \"Linux,Unix,Windows\", \"post_auth\": true, \"rank\": 600, \"ref_name\": \"multi/http/bitbucket_env_var_rce\", \"references\": [\"URL-https://y4er.com/posts/cve-2022-43781-bitbucket-server-rce/\", \"URL-https://confluence.atlassian.com/bitbucketserver/bitbucket-server-and-data-center-security-advisory-2022-11-16-1180141667.html\", \"CVE-2022-43781\"], \"rport\": 7990, \"session_types\": false, \"targets\": [\"Linux Command\", \"Linux Dropper\", \"Windows Dropper\"], \"type\": \"exploit\"}", "creation_timestamp": "2026-09-08T06:49:42.828124Z"}