{"schemaVersion":3,"id":"CVE-2021-42697","aliases":["GHSA-3hw2-h67c-wq66"],"status":"published","duplicateOf":null,"title":null,"description":"Akka HTTP 10.1.x before 10.1.15 and 10.2.x before 10.2.7 can encounter stack exhaustion while parsing HTTP headers, which allows a remote attacker to conduct a Denial of Service attack by sending a User-Agent header with deeply nested comments.","dates":{"published":"2021-11-02T21:44:54.000Z","modified":"2024-08-04T03:38:50.142Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.36139,"percentile":0.98476,"severity":"high","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.36139},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.36139,"percentile":0.98476}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.36139,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.36139,"percentile":0.98476}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_369232907E3616CA","name":"Exploit Reference (packetstormsecurity.com)","source":"reference","url":"http://packetstormsecurity.com/files/167018/Akka-HTTP-10.1.14-Denial-Of-Service.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"50892","name":"Akka HTTP 10.1.14 - Denial of Service","source":"exploit-database","url":"https://www.exploit-db.com/exploits/50892","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":"remote","platforms":["multiple"],"requiresAuth":null,"exploitdb":{"verified":false,"type":"remote","platform":"multiple","file":"exploits/multiple/remote/50892.py","codes":["CVE-2021-42697"]},"metasploit":null}],"exploitCount":2,"weaknesses":[{"id":"CWE-674","name":"Uncontrolled Recursion","description":"The product does not properly control the amount of recursion that takes place,  consuming excessive resources, such as allocated memory or the program stack.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/674.html"}],"affected":[{"vendor":"akka","product":"http_server","name":"http server","label":"http_server","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 10.1.0, < 10.1.15","noFixRecorded":false,"fixedIn":null},{"text":"≥ 10.2.0, < 10.2.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 10.1.0, < 10.1.15 | ≥ 10.2.0, < 10.2.7","eol":null,"hubHref":"/vendor/akka/http_server"},{"vendor":"com.typesafe.akka","product":"aakka-http-core_2.13.0-M3","name":"com.typesafe.akka:aakka-http-core_2.13.0-M3","label":"aakka-http-core_2.13.0-M3","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/com.typesafe.akka/aakka-http-core_2.13.0-M3","purlType":"maven","versions":[{"text":"≥ 10.1.0","noFixRecorded":true,"fixedIn":null}],"versionsText":"≥ 10.1.0 (No fix recorded)","eol":null,"hubHref":null},{"vendor":"com.typesafe.akka","product":"akka-http-core_2.11","name":"com.typesafe.akka:akka-http-core_2.11","label":"akka-http-core_2.11","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/com.typesafe.akka/akka-http-core_2.11","purlType":"maven","versions":[{"text":"≥ 10.1.0, < 10.1.15","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 10.1.0, < 10.1.15","eol":null,"hubHref":null},{"vendor":"com.typesafe.akka","product":"akka-http-core_2.12","name":"com.typesafe.akka:akka-http-core_2.12","label":"akka-http-core_2.12","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/com.typesafe.akka/akka-http-core_2.12","purlType":"maven","versions":[{"text":"≥ 10.1.0, < 10.1.15","noFixRecorded":false,"fixedIn":null},{"text":"≥ 10.2.0-M1, < 10.2.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 10.1.0, < 10.1.15 | ≥ 10.2.0-M1, < 10.2.7","eol":null,"hubHref":null},{"vendor":"com.typesafe.akka","product":"akka-http-core_2.13","name":"com.typesafe.akka:akka-http-core_2.13","label":"akka-http-core_2.13","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/com.typesafe.akka/akka-http-core_2.13","purlType":"maven","versions":[{"text":"≥ 10.1.0, < 10.1.15","noFixRecorded":false,"fixedIn":null},{"text":"≥ 10.2.0-M1, < 10.2.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 10.1.0, < 10.1.15 | ≥ 10.2.0-M1, < 10.2.7","eol":null,"hubHref":null},{"vendor":"com.typesafe.akka","product":"akka-http-core_2.13.0-M5","name":"com.typesafe.akka:akka-http-core_2.13.0-M5","label":"akka-http-core_2.13.0-M5","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/com.typesafe.akka/akka-http-core_2.13.0-M5","purlType":"maven","versions":[{"text":"≥ 10.1.0","noFixRecorded":true,"fixedIn":null}],"versionsText":"≥ 10.1.0 (No fix recorded)","eol":null,"hubHref":null},{"vendor":"com.typesafe.akka","product":"akka-http-core_2.13.0-RC2","name":"com.typesafe.akka:akka-http-core_2.13.0-RC2","label":"akka-http-core_2.13.0-RC2","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/com.typesafe.akka/akka-http-core_2.13.0-RC2","purlType":"maven","versions":[{"text":"≥ 10.1.0","noFixRecorded":true,"fixedIn":null}],"versionsText":"≥ 10.1.0 (No fix recorded)","eol":null,"hubHref":null},{"vendor":"com.typesafe.akka","product":"akka-http-core_2.13.0-RC3","name":"com.typesafe.akka:akka-http-core_2.13.0-RC3","label":"akka-http-core_2.13.0-RC3","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/com.typesafe.akka/akka-http-core_2.13.0-RC3","purlType":"maven","versions":[{"text":"≥ 10.1.0","noFixRecorded":true,"fixedIn":null}],"versionsText":"≥ 10.1.0 (No fix recorded)","eol":null,"hubHref":null}],"affectedCount":8,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://akka.io/blog/","label":"akka.io/blog/","hostname":"akka.io","tags":["X Refsource MISC","Vendor Advisory"]},{"url":"https://doc.akka.io/docs/akka-http/current/security/2021-CVE-2021-42697-stack-overflow-parsing-user-agent.html","label":"doc.akka.io/docs/…","hostname":"doc.akka.io","tags":["X Refsource MISC","WEB","Vendor Advisory"]},{"url":"https://akka.io/blog/news/2021/11/02/akka-http-10.2.7-released","label":"akka.io/blog/news/2021/11/02/akka-http-10.2.7-released","hostname":"akka.io","tags":["X Refsource MISC","WEB","Release Notes","Vendor Advisory"]},{"url":"https://akka.io/blog/news/2021/11/22/akka-http-10.1.15-released","label":"akka.io/blog/news/2021/11/22/akka-http-10.1.15-released","hostname":"akka.io","tags":["X Refsource MISC","WEB","Release Notes","Vendor Advisory"]},{"url":"http://packetstormsecurity.com/files/167018/Akka-HTTP-10.1.14-Denial-Of-Service.html","label":"packetstormsecurity.com/files/167018/Akka-HTTP-10.1.14-Denial-Of-Service.html","hostname":"packetstormsecurity.com","tags":["X Refsource MISC","WEB","Exploit","Third Party Advisory","VDB Entry"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42697","label":"nvd.nist.gov/vuln/detail/CVE-2021-42697","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/akka/akka-http/pull/3924","label":"github.com/akka/akka-http/pull/3924","hostname":"github.com","tags":["WEB"]},{"url":"https://akka.io/blog","label":"akka.io/blog","hostname":"akka.io","tags":["WEB"]},{"url":"https://github.com/akka/akka-http","label":"github.com/akka/akka-http","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-11-02T21:44:54.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T03:38:50.142Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":47,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T21:17:08.971Z","stale":false,"partial":false}}