{"id":27698,"date":"2025-11-26T04:45:05","date_gmt":"2025-11-26T04:45:05","guid":{"rendered":"http:\/\/localhost\/?p=27698"},"modified":"2025-11-26T04:45:05","modified_gmt":"2025-11-26T04:45:05","slug":"curl-infinite-loop-issue-in-the-state-machine-of-the-curl-project","status":"publish","type":"post","link":"https:\/\/zero.redgem.net\/?p=27698","title":{"rendered":"curl: Infinite loop issue in the state machine of the curl project_H1:3442060"},"content":{"rendered":"<p>{&#8220;lastseen&#8221;:&#8221;2025-11-26T10:25:50&#8243;,&#8221;description&#8221;:&#8221;## Summary:\\n\\nVulnerability impact: When curl attempts to download files from a malicious FTP server, it triggers an infinite loop in the code execution.\\n\\nI discovered this issue in the FTP functionality of the curl project .As described in https:\/\/github.com\/curl\/curl\/blob\/master\/docs\/cmdline-opts\/disable-epsv.md, curl uses EPSV mode as the default FTP file transfer method. In simple terms, the EPSV mode works as follows: the FTP server opens a TCP port and waits for the client to connect, then sends data to the client through this port.\\n\\nIn the state machine of curl, the `state_performing` function in `\/lib\/multi.c` calls the `Curl_sendrecv` function at [1] to receive data from the peer:\\n&#8220;`\\nstatic CURLMcode state_performing(struct Curl_easy *data,\\n                                  struct curltime *nowp,\\n                                  bool *stream_errorp,\\n                                  CURLcode *resultp)\\n{\\n  char *newurl = NULL;\\n  bool retry = FALSE;\\n  CURLMcode rc = CURLM_OK;\\n  CURLcode result = *resultp = CURLE_OK;\\n  *stream_errorp = FALSE;\\n\\n  if(mspeed_check(data, nowp) == CURLE_AGAIN)\\n    return CURLM_OK;\\n\\n  \/* read\/write data if it is ready to do so *\/\\n  result = Curl_sendrecv(data, nowp); \/\/ [1] call Curl_sendrecv\\n\\n  if(data-\\u003ereq.done || (result == CURLE_RECV_ERROR)) {\\n    \/* If CURLE_RECV_ERROR happens early enough, we assume it was a race\\n     * condition and the server closed the reused connection exactly when we\\n     * wanted to use it, so figure out if that is indeed the case.\\n     *\/\\n    CURLcode ret = Curl_retry_request(data, \\u0026newurl);\\n    if(!ret)\\n      retry = !!newurl;\\n    else if(!result)\\n      result = ret;\\n\\n    if(retry) {\\n      \/* if we are to retry, set the result to OK and consider the\\n         request as done *\/\\n      result = CURLE_OK;\\n      data-\\u003ereq.done = TRUE;\\n    }\\n  }\\n&#8230;\\n&#8220;`\\n\\n\\nThe `Curl_sendrecv` function calls `sendrecv_dl` at [2]:\\n&#8220;`\\nCURLcode Curl_sendrecv(struct Curl_easy *data, struct curltime *nowp)\\n{\\n  struct SingleRequest *k = \\u0026data-\\u003ereq;\\n  CURLcode result = CURLE_OK;\\n\\n  DEBUGASSERT(nowp);\\n  if(Curl_xfer_is_blocked(data)) {\\n    result = CURLE_OK;\\n    goto out;\\n  }\\n\\n  \/* We go ahead and do a read if we have a readable socket or if the stream\\n     was rewound (in which case we have data in a buffer) *\/\\n  if(k-\\u003ekeepon \\u0026 KEEP_RECV) {\\n    result = sendrecv_dl(data, k); \/\/[2] call sendrecv_dl\\n    if(result || data-\\u003ereq.done)\\n      goto out;\\n  }\\n  \\n&#8230;\\n&#8220;`\\n\\nThe `sendrecv_dl` function further calls `xfer_recv_resp` to receive data. If our malicious FTP server opens an EPSV port but does not send any data to the client, `xfer_recv_resp` will return `-1`, and the value of `result`  will be set to `CURLE_AGAIN`. Subsequently, at [4], the `result` is set to `CURLE_OK`. This means that even if `xfer_recv_resp` fails to receive any data, the `sendrecv_dl` function still returns `CURLE_OK`.\\n\\n&#8220;`\\nstatic CURLcode sendrecv_dl(struct Curl_easy *data,\\n                            struct SingleRequest *k)\\n{\\n&#8230;\\n    rcvd_eagain = FALSE;\\n    nread = xfer_recv_resp(data, buf, bytestoread, is_multiplex, \\u0026result); \/\/ [3] call xfer_recv_resp\\n    if(nread \\u003c 0) {\\n      if(CURLE_AGAIN != result)\\n        goto out; \/* real error *\/\\n      rcvd_eagain = TRUE;\\n      result = CURLE_OK; \/\/[4]set result to CURLE_OK\\n      if(data-\\u003ereq.download_done \\u0026\\u0026 data-\\u003ereq.no_body \\u0026\\u0026\\n         !data-\\u003ereq.resp_trailer) {\\n        DEBUGF(infof(data, \\&#8221;EAGAIN, download done, no trailer announced, \\&#8221;\\n               \\&#8221;not waiting for EOS\\&#8221;));\\n        nread = 0;\\n        \/* continue as if we received the EOS *\/\\n      }\\n      else\\n        break; \/* get out of loop *\/\\n    }\\n&#8230;\\n&#8220;`\\n\\n\\nLet&#8217;s continue examining the `state_performing` function:\\n&#8220;`\\nstatic CURLMcode state_performing(struct Curl_easy *data,\\n                                  struct curltime *nowp,\\n                                  bool *stream_errorp,\\n                                  CURLcode *resultp)\\n{\\n  char *newurl = NULL;\\n  bool retry = FALSE;\\n  CURLMcode rc = CURLM_OK;\\n  CURLcode result = *resultp = CURLE_OK;\\n  *stream_errorp = FALSE;\\n\\n  if(mspeed_check(data, nowp) == CURLE_AGAIN)\\n    return CURLM_OK;\\n\\n  \/* read\/write data if it is ready to do so *\/\\n  result = Curl_sendrecv(data, nowp);\\n\\n  if(data-\\u003ereq.done || (result == CURLE_RECV_ERROR)) { \/\/ [5] data-\\u003ereq.done == 0, result==CURLE_OK\\n    \/* If CURLE_RECV_ERROR happens early enough, we assume it was a race\\n     * condition and the server closed the reused connection exactly when we\\n     * wanted to use it, so figure out if that is indeed the case.\\n     *\/\\n    CURLcode ret = Curl_retry_request(data, \\u0026newurl);\\n    if(!ret)\\n      retry = !!newurl;\\n    else if(!result)\\n      result = ret;\\n\\n    if(retry) {\\n      \/* if we are to retry, set the result to OK and consider the\\n         request as done *\/\\n      result = CURLE_OK;\\n      data-\\u003ereq.done = TRUE;\\n    }\\n  }\\n#ifndef CURL_DISABLE_HTTP\\n  else if((CURLE_HTTP2_STREAM == result) \\u0026\\u0026\\n          Curl_h2_http_1_1_error(data)) {\\n    CURLcode ret = Curl_retry_request(data, \\u0026newurl);\\n\\n    if(!ret) {\\n      infof(data, \\&#8221;Downgrades to HTTP\/1.1\\&#8221;);\\n      streamclose(data-\\u003econn, \\&#8221;Disconnect HTTP\/2 for HTTP\/1\\&#8221;);\\n      data-\\u003estate.http_neg.wanted = CURL_HTTP_V1x;\\n      data-\\u003estate.http_neg.allowed = CURL_HTTP_V1x;\\n      \/* clear the error message bit too as we ignore the one we got *\/\\n      data-\\u003estate.errorbuf = FALSE;\\n      if(!newurl)\\n        \/* typically for HTTP_1_1_REQUIRED error on first flight *\/\\n        newurl = strdup(data-\\u003estate.url);\\n      if(!newurl) {\\n        result = CURLE_OUT_OF_MEMORY;\\n      }\\n      else {\\n        \/* if we are to retry, set the result to OK and consider the request\\n          as done *\/\\n        retry = TRUE;\\n        result = CURLE_OK;\\n        data-\\u003ereq.done = TRUE;\\n      }\\n    }\\n    else\\n      result = ret;\\n  }\\n#endif\\n\\n  if(result) { \/\/[6] result==CURLE_OK\\n    \/*\\n     * The transfer phase returned error, we mark the connection to get closed\\n     * to prevent being reused. This is because we cannot possibly know if the\\n     * connection is in a good shape or not now. Unless it is a protocol which\\n     * uses two \\&#8221;channels\\&#8221; like FTP, as then the error happened in the data\\n     * connection.\\n     *\/\\n\\n    if(!(data-\\u003econn-\\u003ehandler-\\u003eflags \\u0026 PROTOPT_DUAL) \\u0026\\u0026\\n       result != CURLE_HTTP2_STREAM)\\n      streamclose(data-\\u003econn, \\&#8221;Transfer returned error\\&#8221;);\\n\\n    multi_posttransfer(data);\\n    multi_done(data, result, TRUE);\\n  }\\n  else if(data-\\u003ereq.done \\u0026\\u0026 !Curl_cwriter_is_paused(data)) { \/\/[7] data-\\u003ereq.done == 0\\n    const struct Curl_handler *handler = data-\\u003econn-\\u003ehandler;\\n\\n    \/* call this even if the readwrite function returned error *\/\\n    multi_posttransfer(data);\\n\\n    \/* When we follow redirects or is set to retry the connection, we must to\\n       go back to the CONNECT state *\/\\n    if(data-\\u003ereq.newurl || retry) {\\n      followtype follow = FOLLOW_NONE;\\n      if(!retry) {\\n        \/* if the URL is a follow-location and not just a retried request then\\n           figure out the URL here *\/\\n        free(newurl);\\n        newurl = data-\\u003ereq.newurl;\\n        data-\\u003ereq.newurl = NULL;\\n        follow = FOLLOW_REDIR;\\n      }\\n      else\\n        follow = FOLLOW_RETRY;\\n      (void)multi_done(data, CURLE_OK, FALSE);\\n      \/* multi_done() might return CURLE_GOT_NOTHING *\/\\n      result = multi_follow(data, handler, newurl, follow);\\n      if(!result) {\\n        multistate(data, MSTATE_SETUP);\\n        rc = CURLM_CALL_MULTI_PERFORM;\\n      }\\n    }\\n    else {\\n      \/* after the transfer is done, go DONE *\/\\n\\n      \/* but first check to see if we got a location info even though we are\\n         not following redirects *\/\\n      if(data-\\u003ereq.location) {\\n        free(newurl);\\n        newurl = data-\\u003ereq.location;\\n        data-\\u003ereq.location = NULL;\\n        result = multi_follow(data, handler, newurl, FOLLOW_FAKE);\\n        if(result) {\\n          *stream_errorp = TRUE;\\n          result = multi_done(data, result, TRUE);\\n        }\\n      }\\n\\n      if(!result) {\\n        multistate(data, MSTATE_DONE);\\n        rc = CURLM_CALL_MULTI_PERFORM;\\n      }\\n    }\\n  }\\n  else { \/* not errored, not done *\/\\n    mspeed_check(data, nowp); \/\/ [8]\\n  }\\n  free(newurl);\\n  *resultp = result;\\n  return rc;\\n}\\n\\n&#8220;`\\n\\nSince no data was received, the `data-\\u003ereq.done` flag remains 0. Furthermore, because the result is `CURLE_OK`, the conditional checks at [5], [6], and [7] all evaluate to false. The code then proceeds to [8] (not errored, not done).\\n\\nThis causes curl&#8217;s current state machine flag (`data-\\u003emstate`) to remain unchanged, still set to `MSTATE_PERFORMING`. Subsequently, the curl code repeatedly enters the `state_performing` function, resulting in an infinite loop.\\n\\n\\n\\n## Affected version\\n\\ncurl : https:\/\/github.com\/curl\/curl\/archive\/refs\/tags\/curl-8_17_0.tar.gz\\nplatform : ubuntu22.04\\n\\n&#8220;`\\n\u279c  src .\/curl -V \\ncurl 8.17.0-DEV (x86_64-pc-linux-gnu) libcurl\/8.17.0-DEV zlib\/1.2.11 libpsl\/0.19.1\\nRelease-Date: [unreleased]\\nProtocols: dict file ftp gopher http imap ipfs ipns mqtt pop3 rtsp smtp telnet tftp ws\\nFeatures: alt-svc AsynchDNS IPv6 Largefile libz PSL threadsafe UnixSockets\\n&#8220;`\\n## Steps To Reproduce:\\n\\n1. Download the attached .\/ftp_poc.py file and run: sudo python3 .\/ftp_poc.py. This will start a malicious FTP service on port 21 of the current machine.\\n2. Run the following curl command, replacing 192.168.23.1 in the command with the address of your own malicious FTP server:\\n&#8220;`\\n.\/curl -u anonymous:123 &#8216;ftp:\/\/192.168.23.1\/test&#8217; -o .\/test\\n&#8220;`\\n\\n3. The curl program will enter an infinite code loop and will not exit on its own.\\n\\n## Impact\\n\\n## Summary:\\nWhen curl attempts to download files from a malicious FTP server, it triggers an infinite loop in the code execution.&#8221;,&#8221;published&#8221;:&#8221;2025-11-26T08:34:04&#8243;,&#8221;modified&#8221;:&#8221;2025-11-26T09:32:38&#8243;,&#8221;type&#8221;:&#8221;hackerone&#8221;,&#8221;title&#8221;:&#8221;curl: Infinite loop issue in the state machine of the curl project&#8221;,&#8221;source&#8221;:&#8221;&#8221;,&#8221;references&#8221;:&#8221;&#8221;,&#8221;id&#8221;:&#8221;H1:3442060&#8243;,&#8221;bulletinFamily&#8221;:&#8221;bugbounty&#8221;,&#8221;cwe&#8221;:null,&#8221;cvelist&#8221;:[],&#8221;sourceData&#8221;:&#8221;&#8221;,&#8221;sourceHref&#8221;:&#8221;&#8221;,&#8221;cvss&#8221;:{&#8220;score&#8221;:0,&#8221;severity&#8221;:&#8221;NONE&#8221;,&#8221;vector&#8221;:&#8221;NONE&#8221;,&#8221;version&#8221;:&#8221;NONE&#8221;},&#8221;cvss2&#8243;:{},&#8221;cvss3&#8243;:{&#8220;version&#8221;:&#8221;&#8221;,&#8221;vectorString&#8221;:&#8221;&#8221;,&#8221;baseScore&#8221;:0,&#8221;baseSeverity&#8221;:&#8221;&#8221;,&#8221;attackVector&#8221;:&#8221;&#8221;,&#8221;attackComplexity&#8221;:&#8221;&#8221;,&#8221;privilegesRequired&#8221;:&#8221;&#8221;,&#8221;userInteraction&#8221;:&#8221;&#8221;,&#8221;scope&#8221;:&#8221;&#8221;,&#8221;confidentialityImpact&#8221;:&#8221;&#8221;,&#8221;integrityImpact&#8221;:&#8221;&#8221;,&#8221;availabilityImpact&#8221;:&#8221;&#8221;,&#8221;cvssV3&#8243;:{&#8220;version&#8221;:&#8221;&#8221;,&#8221;vectorString&#8221;:&#8221;&#8221;,&#8221;baseScore&#8221;:0,&#8221;baseSeverity&#8221;:&#8221;&#8221;,&#8221;attackVector&#8221;:&#8221;&#8221;,&#8221;attackComplexity&#8221;:&#8221;&#8221;,&#8221;privilegesRequired&#8221;:&#8221;&#8221;,&#8221;userInteraction&#8221;:&#8221;&#8221;,&#8221;scope&#8221;:&#8221;&#8221;,&#8221;confidentialityImpact&#8221;:&#8221;&#8221;,&#8221;integrityImpact&#8221;:&#8221;&#8221;,&#8221;availabilityImpact&#8221;:&#8221;&#8221;}},&#8221;href&#8221;:&#8221;https:\/\/hackerone.com\/reports\/3442060&#8243;,&#8221;category_name&#8221;:&#8221;News&#8221;,&#8221;post_link&#8221;:&#8221;&#8221;,&#8221;product&#8221;:&#8221;&#8221;,&#8221;version&#8221;:&#8221;&#8221;,&#8221;vendor&#8221;:&#8221;&#8221;,&#8221;ai_description&#8221;:&#8221;&#8221;,&#8221;ai_severity&#8221;:&#8221;&#8221;,&#8221;ai_vendor&#8221;:&#8221;&#8221;,&#8221;ai_product&#8221;:&#8221;&#8221;,&#8221;ai_version&#8221;:&#8221;&#8221;,&#8221;ai_score&#8221;:0}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>{&#8220;lastseen&#8221;:&#8221;2025-11-26T10:25:50&#8243;,&#8221;description&#8221;:&#8221;## Summary:\\n\\nVulnerability impact: When curl attempts to download files from a malicious FTP server, it triggers an infinite loop in the code execution.\\n\\nI discovered this&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[6,8,12,117,13,33,7,11,5],"class_list":["post-27698","post","type-post","status-publish","format-standard","hentry","category-category_news","tag-cve","tag-cvss","tag-exploit","tag-hackerone","tag-news","tag-none","tag-security","tag-tapic","tag-vulnerability"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>curl: Infinite loop issue in the state machine of the curl project_H1:3442060 - zero redgem<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/zero.redgem.net\/?p=27698\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"curl: Infinite loop issue in the state machine of the curl project_H1:3442060 - zero redgem\" \/>\n<meta property=\"og:description\" content=\"{&#8220;lastseen&#8221;:&#8221;2025-11-26T10:25:50&#8243;,&#8221;description&#8221;:&#8221;## Summary:nnVulnerability impact: When curl attempts to download files from a malicious FTP server, it triggers an infinite loop in the code execution.nnI discovered this...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zero.redgem.net\/?p=27698\" \/>\n<meta property=\"og:site_name\" content=\"zero redgem\" \/>\n<meta property=\"article:published_time\" content=\"2025-11-26T04:45:05+00:00\" \/>\n<meta name=\"author\" content=\"invoker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"invoker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=27698#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=27698\"},\"author\":{\"name\":\"invoker\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\"},\"headline\":\"curl: Infinite loop issue in the state machine of the curl project_H1:3442060\",\"datePublished\":\"2025-11-26T04:45:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=27698\"},\"wordCount\":1737,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\"},\"keywords\":[\"CVE\",\"CVSS\",\"exploit\",\"hackerone\",\"news\",\"NONE\",\"Security\",\"tapic\",\"Vulnerability\"],\"articleSection\":[\"category_news\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=27698#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=27698\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?p=27698\",\"name\":\"curl: Infinite loop issue in the state machine of the curl project_H1:3442060 - zero redgem\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\"},\"datePublished\":\"2025-11-26T04:45:05+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=27698#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=27698\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=27698#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/zero.redgem.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"curl: Infinite loop issue in the state machine of the curl project_H1:3442060\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/\",\"name\":\"zero redgem\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/zero.redgem.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\",\"name\":\"zero redgem\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"\",\"contentUrl\":\"\",\"width\":191,\"height\":188,\"caption\":\"zero redgem\"},\"image\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\",\"name\":\"invoker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"caption\":\"invoker\"},\"sameAs\":[\"https:\\\/\\\/zero.redgem.net\"],\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"curl: Infinite loop issue in the state machine of the curl project_H1:3442060 - zero redgem","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/zero.redgem.net\/?p=27698","og_locale":"en_US","og_type":"article","og_title":"curl: Infinite loop issue in the state machine of the curl project_H1:3442060 - zero redgem","og_description":"{&#8220;lastseen&#8221;:&#8221;2025-11-26T10:25:50&#8243;,&#8221;description&#8221;:&#8221;## Summary:nnVulnerability impact: When curl attempts to download files from a malicious FTP server, it triggers an infinite loop in the code execution.nnI discovered this...","og_url":"https:\/\/zero.redgem.net\/?p=27698","og_site_name":"zero redgem","article_published_time":"2025-11-26T04:45:05+00:00","author":"invoker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"invoker","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/zero.redgem.net\/?p=27698#article","isPartOf":{"@id":"https:\/\/zero.redgem.net\/?p=27698"},"author":{"name":"invoker","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca"},"headline":"curl: Infinite loop issue in the state machine of the curl project_H1:3442060","datePublished":"2025-11-26T04:45:05+00:00","mainEntityOfPage":{"@id":"https:\/\/zero.redgem.net\/?p=27698"},"wordCount":1737,"commentCount":0,"publisher":{"@id":"https:\/\/zero.redgem.net\/#organization"},"keywords":["CVE","CVSS","exploit","hackerone","news","NONE","Security","tapic","Vulnerability"],"articleSection":["category_news"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/zero.redgem.net\/?p=27698#respond"]}]},{"@type":"WebPage","@id":"https:\/\/zero.redgem.net\/?p=27698","url":"https:\/\/zero.redgem.net\/?p=27698","name":"curl: Infinite loop issue in the state machine of the curl project_H1:3442060 - zero redgem","isPartOf":{"@id":"https:\/\/zero.redgem.net\/#website"},"datePublished":"2025-11-26T04:45:05+00:00","breadcrumb":{"@id":"https:\/\/zero.redgem.net\/?p=27698#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zero.redgem.net\/?p=27698"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/zero.redgem.net\/?p=27698#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zero.redgem.net\/"},{"@type":"ListItem","position":2,"name":"curl: Infinite loop issue in the state machine of the curl project_H1:3442060"}]},{"@type":"WebSite","@id":"https:\/\/zero.redgem.net\/#website","url":"https:\/\/zero.redgem.net\/","name":"zero redgem","description":"","publisher":{"@id":"https:\/\/zero.redgem.net\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zero.redgem.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/zero.redgem.net\/#organization","name":"zero redgem","url":"https:\/\/zero.redgem.net\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zero.redgem.net\/#\/schema\/logo\/image\/","url":"","contentUrl":"","width":191,"height":188,"caption":"zero redgem"},"image":{"@id":"https:\/\/zero.redgem.net\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca","name":"invoker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","caption":"invoker"},"sameAs":["https:\/\/zero.redgem.net"],"url":"https:\/\/zero.redgem.net\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/27698","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=27698"}],"version-history":[{"count":0,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/27698\/revisions"}],"wp:attachment":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=27698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=27698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=27698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}