{"answers":{"affected":"18 open source packages ship an affected version, including com.typesafe.akka:akka-http-core_2.12, com.typesafe.akka:aakka-http-core_2.13.0-M3 and com.typesafe.akka:akka-http-core_2.11. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-42697 in the wild and no public exploit code.","fix":"Upgrade com.typesafe.akka:akka-http-core_2.12 to a fixed version for your release line: 10.1.15 or 10.2.7.","what":"CVE-2021-42697 is a high-severity denial of service vulnerability in n/a, published on 2 Nov 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-42697 and fix it if it is affected.\n\nWhat it is: CVE-2021-42697 is a high-severity denial of service vulnerability in n/a, published on 2 Nov 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-42697 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- com.typesafe.akka:akka-http-core_2.12 (Maven): affected from 10.1.0; fixed in 10.1.15\n- com.typesafe.akka:akka-http-core_2.12 (Maven): affected from 10.1.0; fixed in 10.1.15\n- com.typesafe.akka:akka-http-core_2.12 (Maven): affected from 10.2.0-M1; fixed in 10.2.7\n- com.typesafe.akka:akka-http-core_2.12 (Maven): affected from 10.2.0-M1; fixed in 10.2.7\n- com.typesafe.akka:aakka-http-core_2.13.0-M3 (Maven): affected from 10.1.0; no fix listed\n- com.typesafe.akka:aakka-http-core_2.13.0-M3 (Maven): affected from 10.1.0; no fix listed\n- com.typesafe.akka:akka-http-core_2.11 (Maven): affected from 10.1.0; fixed in 10.1.15\n- com.typesafe.akka:akka-http-core_2.11 (Maven): affected from 10.1.0; fixed in 10.1.15\n- com.typesafe.akka:akka-http-core_2.13 (Maven): affected from 10.1.0; fixed in 10.1.15\n- com.typesafe.akka:akka-http-core_2.13 (Maven): affected from 10.1.0; fixed in 10.1.15\n- com.typesafe.akka:akka-http-core_2.13 (Maven): affected from 10.2.0-M1; fixed in 10.2.7\n- com.typesafe.akka:akka-http-core_2.13 (Maven): affected from 10.2.0-M1; fixed in 10.2.7\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-42697/ (Markdown: https://insights.sbomify.com/CVE-2021-42697/index.md)","id":"CVE-2021-42697","markdown":"https://insights.sbomify.com/CVE-2021-42697/index.md","name":"CVE-2021-42697","record":{"aliases":["GHSA-3hw2-h67c-wq66"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Akka HTTP library","requires_auth":"none","summary":"Remote attackers can cause denial of service in Akka HTTP by sending deeply nested comments in User-Agent headers, exhausting the stack.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"http_server","vendor":"akka"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-674","name":"Uncontrolled Recursion"}],"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.","ecosystems":["Maven"],"exploits":{"exploitdb":1,"first_seen":"2022-04-24","github_poc":1,"max_poc_stars":1,"metasploit":0,"nuclei":0,"refs":[{"date":"2022-04-24T05:51:24Z","kind":"github_poc","ref":"https://github.com/cxosmo/CVE-2021-42697","stars":1,"title":"Proof of concept exploit for CVE-2021-42697: 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."},{"date":"2022-05-11","kind":"exploitdb","ref":"50892","stars":null,"title":"Akka HTTP 10.1.14 - Denial of Service"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Uncontrolled Recursion in Akka HTTP","id":"CVE-2021-42697","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"denial_of_service","year":"2021"},"n_packages":18,"n_references":5,"next":{"headline":"AzeoTech DAQFactory","id":"CVE-2021-42698"},"packages":[{"ecosystem":"Maven","fixed":[],"introduced":["10.1.0"],"last_affected":[],"package":"com.typesafe.akka:aakka-http-core_2.13.0-M3","purl":null,"source":"GHSA-3hw2-h67c-wq66"},{"ecosystem":"Maven","fixed":[],"introduced":["10.1.0"],"last_affected":[],"package":"com.typesafe.akka:aakka-http-core_2.13.0-M3","purl":"pkg:maven/com.typesafe.akka/aakka-http-core_2.13.0-M3","source":"GHSA-3hw2-h67c-wq66"},{"ecosystem":"Maven","fixed":["10.1.15"],"introduced":["10.1.0"],"last_affected":[],"package":"com.typesafe.akka:akka-http-core_2.11","purl":null,"source":"GHSA-3hw2-h67c-wq66"},{"ecosystem":"Maven","fixed":["10.1.15"],"introduced":["10.1.0"],"last_affected":[],"package":"com.typesafe.akka:akka-http-core_2.11","purl":"pkg:maven/com.typesafe.akka/akka-http-core_2.11","source":"GHSA-3hw2-h67c-wq66"},{"ecosystem":"Maven","fixed":["10.1.15"],"introduced":["10.1.0"],"last_affected":[],"package":"com.typesafe.akka:akka-http-core_2.12","purl":null,"source":"GHSA-3hw2-h67c-wq66"},{"ecosystem":"Maven","fixed":["10.1.15"],"introduced":["10.1.0"],"last_affected":[],"package":"com.typesafe.akka:akka-http-core_2.12","purl":"pkg:maven/com.typesafe.akka/akka-http-core_2.12","source":"GHSA-3hw2-h67c-wq66"},{"ecosystem":"Maven","fixed":["10.2.7"],"introduced":["10.2.0-M1"],"last_affected":[],"package":"com.typesafe.akka:akka-http-core_2.12","purl":null,"source":"GHSA-3hw2-h67c-wq66"},{"ecosystem":"Maven","fixed":["10.2.7"],"introduced":["10.2.0-M1"],"last_affected":[],"package":"com.typesafe.akka:akka-http-core_2.12","purl":"pkg:maven/com.typesafe.akka/akka-http-core_2.12","source":"GHSA-3hw2-h67c-wq66"},{"ecosystem":"Maven","fixed":["10.1.15"],"introduced":["10.1.0"],"last_affected":[],"package":"com.typesafe.akka:akka-http-core_2.13","purl":null,"source":"GHSA-3hw2-h67c-wq66"},{"ecosystem":"Maven","fixed":["10.1.15"],"introduced":["10.1.0"],"last_affected":[],"package":"com.typesafe.akka:akka-http-core_2.13","purl":"pkg:maven/com.typesafe.akka/akka-http-core_2.13","source":"GHSA-3hw2-h67c-wq66"},{"ecosystem":"Maven","fixed":["10.2.7"],"introduced":["10.2.0-M1"],"last_affected":[],"package":"com.typesafe.akka:akka-http-core_2.13","purl":null,"source":"GHSA-3hw2-h67c-wq66"},{"ecosystem":"Maven","fixed":["10.2.7"],"introduced":["10.2.0-M1"],"last_affected":[],"package":"com.typesafe.akka:akka-http-core_2.13","purl":"pkg:maven/com.typesafe.akka/akka-http-core_2.13","source":"GHSA-3hw2-h67c-wq66"},{"ecosystem":"Maven","fixed":[],"introduced":["10.1.0"],"last_affected":[],"package":"com.typesafe.akka:akka-http-core_2.13.0-M5","purl":null,"source":"GHSA-3hw2-h67c-wq66"},{"ecosystem":"Maven","fixed":[],"introduced":["10.1.0"],"last_affected":[],"package":"com.typesafe.akka:akka-http-core_2.13.0-M5","purl":"pkg:maven/com.typesafe.akka/akka-http-core_2.13.0-M5","source":"GHSA-3hw2-h67c-wq66"},{"ecosystem":"Maven","fixed":[],"introduced":["10.1.0"],"last_affected":[],"package":"com.typesafe.akka:akka-http-core_2.13.0-RC2","purl":null,"source":"GHSA-3hw2-h67c-wq66"},{"ecosystem":"Maven","fixed":[],"introduced":["10.1.0"],"last_affected":[],"package":"com.typesafe.akka:akka-http-core_2.13.0-RC2","purl":"pkg:maven/com.typesafe.akka/akka-http-core_2.13.0-RC2","source":"GHSA-3hw2-h67c-wq66"},{"ecosystem":"Maven","fixed":[],"introduced":["10.1.0"],"last_affected":[],"package":"com.typesafe.akka:akka-http-core_2.13.0-RC3","purl":null,"source":"GHSA-3hw2-h67c-wq66"},{"ecosystem":"Maven","fixed":[],"introduced":["10.1.0"],"last_affected":[],"package":"com.typesafe.akka:akka-http-core_2.13.0-RC3","purl":"pkg:maven/com.typesafe.akka/akka-http-core_2.13.0-RC3","source":"GHSA-3hw2-h67c-wq66"}],"prev":{"headline":"Code injection in n/a","id":"CVE-2021-42694"},"products":["n/a"],"published":"2021-11-02","related":[{"cvss_score":7.5,"headline":"HTTP/2 Rapid Reset Attack","id":"CVE-2023-44487","kev_date_added":"2023-10-10","published":"2023-10-10"},{"cvss_score":7.5,"headline":"Improper Restriction of Operations within the Bounds of a Memory Buffer in akka-http-core","id":"CVE-2017-1000118","kev_date_added":null,"published":"2017-10-04"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["n/a"]},"summary":"Remote attackers can cause denial of service in Akka HTTP by sending deeply nested comments in User-Agent headers, exhausting the stack.","url":"https://insights.sbomify.com/CVE-2021-42697/"}