Is it possible to exploit php curl?

I have been working on a project and I wonder if its possible to exploit curl_exec function while in php. Scenario: I have the php script that checks a domain for me, but the curl is not secured, can it be exploited via the request, ex: script.php?action=websiteup&token=apikey&target=EVIL CODE HERE , I have googled around but did not find anything that could answer my question, found some theories but nothing helped me.


case "websiteup":              $  ch = curl_init($  _GET['target']);             curl_setopt_array($  ch, array(                 CURLOPT_RETURNTRANSFER => true,                 CURLOPT_HTTPHEADER     => array(                 ),                 CURLOPT_TIMEOUT        => 15,                 CURLOPT_CUSTOMREQUEST  => "HEAD",                 CURLOPT_REFERER        => $  _GET['target'],                 CURLOPT_USERAGENT      => "Mozilla/5.0 ;Windows NT 6.1; WOW64; AppleWebKit/537.36 ;KHTML, like Gecko; Chrome/39.0.2171.95 Safari/537.36",             ));             curl_exec($  ch);              $  response['message'] = array(                 "code" => curl_getinfo($  ch, CURLINFO_HTTP_CODE),                 "time" => curl_getinfo($  ch, CURLINFO_CONNECT_TIME),             ); 

Any ideas how can it be exploited and secured ?