{"id":"CURL-CVE-2022-42916","summary":"HSTS bypass via IDN","details":"curl's HSTS check could be bypassed to trick it to keep using HTTP.\n\nUsing its HSTS support, curl can be instructed to use HTTPS directly instead\nof using an insecure clear-text HTTP step even when HTTP is provided in the\nURL. This mechanism could be bypassed if the hostname in the given URL uses\nIDN characters that get replaced to ASCII counterparts as part of the IDN\nconversion. Like using the character UTF-8 U+3002 (`IDEOGRAPHIC FULL STOP`)\ninstead of the common ASCII full stop (U+002E) `.`.\n\nLike this: `http://curl。se。`","aliases":["CVE-2022-42916"],"modified":"2026-03-06T11:41:15.188479Z","published":"2022-10-26T08:00:00Z","database_specific":{"URL":"https://curl.se/docs/CVE-2022-42916.json","award":{"currency":"USD","amount":"2400"},"package":"curl","www":"https://curl.se/docs/CVE-2022-42916.html","affects":"both","issue":"https://hackerone.com/reports/1730660","last_affected":"7.85.0","severity":"Medium","CWE":{"desc":"Cleartext Transmission of Sensitive Information","id":"CWE-319"}},"affected":[{"ranges":[{"type":"SEMVER","events":[{"introduced":"7.77.0"},{"fixed":"7.86.0"}]},{"type":"GIT","repo":"https://github.com/curl/curl.git","events":[{"introduced":"7385610d0c74c6a254fea5e4cd6e1d559d848c8c"},{"fixed":"53bcf55b4538067e6dc36242168866becb987bb7"}]}],"versions":["7.85.0","7.84.0","7.83.1","7.83.0","7.82.0","7.81.0","7.80.0","7.79.1","7.79.0","7.78.0","7.77.0"],"database_specific":{"source":"https://curl.se/docs/CURL-CVE-2022-42916.json","vanir_signatures":[{"signature_type":"Line","deprecated":false,"source":"https://github.com/curl/curl.git/commit/53bcf55b4538067e6dc36242168866becb987bb7","digest":{"threshold":0.9,"line_hashes":["75107644506556931257839734745456594778","42044597254118802783507473983065446054","106485663130800929975671924726703558082","15999568815776653480033726278070187576","298802949360025253102477335493426961450","226031619676144204948728541996323025886","83565965808143116816602880943162234402","99111331056051150360841119739035710359","248371552790000917660180970131853738924","138235347098520216592907151270925216","332379120256841151707688734596365992864","115520424302230138298796121363648023567","116875644766770142877076463488246793587","104278356396383426619471619116276805662","329593957423421623966844451133585797053","227230350864470955163156543576614345601","175480898032272737354300925689259200686","270663691216286470486512797168809679066","304787360703412945384302540922630434582","327679326065517452833486961146454131127","177898379110637064503080678971123011046","187519522983891401729004566785046007834","201828046743865531488373427948287117845","147038231609941192317384960984072747528","174988572505711722422001190842731842096","186260712260723753909033636883694484089","278422629132883446350874988803082327404","1676954084558231879176817749451523299","229614720272057867854298589476783268798","214232556770858808594636913438370761431","54962445254502315437201154258309858901","209996503232981804868505299647402522137","308830015629257446961946828640339021875","196144543928929887087831021139237295202","182707647717647346469230947290975879069","321994174146889560038739064209743410061","245798318246260845538571341095419627204","308650669242612315274791965913057652582","12263600173226882060056727278823402490","53327177092035353638536486854703091803","133189311330754793865265601033160557464","261075140940187401730927381559652894676","184217470643600794455378728258914747102","57515447276371526737650122354422753157","233198043719645789025825038566621441267","152653257769245431270585784123078808711"]},"target":{"file":"lib/url.c"},"signature_version":"v1","id":"CURL-CVE-2022-42916-12531e8b"},{"signature_type":"Function","deprecated":false,"source":"https://github.com/curl/curl.git/commit/53bcf55b4538067e6dc36242168866becb987bb7","digest":{"function_hash":"277931467909993625871566389517568582754","length":5320},"target":{"file":"lib/url.c","function":"parseurlandfillconn"},"signature_version":"v1","id":"CURL-CVE-2022-42916-3d926b16"},{"signature_type":"Function","deprecated":false,"source":"https://github.com/curl/curl.git/commit/53bcf55b4538067e6dc36242168866becb987bb7","digest":{"function_hash":"31822263015254063761364928829698076583","length":9897},"target":{"file":"lib/url.c","function":"create_conn"},"signature_version":"v1","id":"CURL-CVE-2022-42916-adb0406b"}]}}],"schema_version":"1.7.3","credits":[{"name":"Hiroki Kurosawa","type":"FINDER"},{"name":"Daniel Stenberg","type":"REMEDIATION_DEVELOPER"}]}