{"answers":{"affected":"2 open source packages ship an affected version, including protocol-http1. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-38697 in the wild and no public exploit code.","fix":"Upgrade protocol-http1 to 0.15.1 or later.","what":"CVE-2023-38697 is a medium-severity vulnerability in socketry protocol-http1, published on 4 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-38697 and fix it if it is affected.\n\nWhat it is: CVE-2023-38697 is a medium-severity vulnerability in socketry protocol-http1, published on 4 Aug 2023. 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-2023-38697 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- protocol-http1 (RubyGems): affected all versions; fixed in 0.15.1\n- protocol-http1 (RubyGems): affected all versions; fixed in 0.15.1\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-2023-38697/ (Markdown: https://insights.sbomify.com/CVE-2023-38697/index.md)","id":"CVE-2023-38697","markdown":"https://insights.sbomify.com/CVE-2023-38697/index.md","name":"CVE-2023-38697","record":{"aliases":["AZL-27830","DEBIAN-CVE-2023-38697","GHSA-6jwc-qr2q-7xwj","UBUNTU-CVE-2023-38697"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Ruby HTTP library","requires_auth":"none","summary":"Attackers can exploit HTTP request smuggling in the protocol-http1 Ruby library to bypass firewalls and desync parsers.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"protocol-http1","vendor":"socketry"}],"cvss":{"score":5.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-444","name":"Inconsistent Interpretation of HTTP Requests"}],"description":"protocol-http1 provides a low-level implementation of the HTTP/1 protocol. RFC 9112 Section 7.1 defined the format of chunk size, chunk data and chunk extension. The value of Content-Length header should be a string of 0-9 digits, the chunk size should be a string of hex digits and should split from chunk data using CRLF, and the chunk extension shouldn't contain any invisible character. However, Falcon has following behaviors while disobey the corresponding RFCs: accepting Content-Length header values that have `+` prefix, accepting Content-Length header values that written in hexadecimal with `0x` prefix, accepting `0x` and `+` prefixed chunk size, and accepting LF in chunk extension. This behavior can lead to desync when forwarding through multiple HTTP parsers, potentially results in HTTP request smuggling and firewall bypassing. This issue is fixed in `protocol-http1` v0.15.1. There are no known workarounds.","ecosystems":["RubyGems"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"protocol-http1 HTTP Request/Response Smuggling vulnerability","id":"CVE-2023-38697","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"other","year":"2023"},"n_packages":2,"n_references":4,"next":{"headline":".eth registrar controller can shorten the duration of registered names","id":"CVE-2023-38698"},"packages":[{"ecosystem":"RubyGems","fixed":["0.15.1"],"introduced":["0"],"last_affected":[],"package":"protocol-http1","purl":null,"source":"GHSA-6jwc-qr2q-7xwj"},{"ecosystem":"RubyGems","fixed":["0.15.1"],"introduced":["0"],"last_affected":[],"package":"protocol-http1","purl":"pkg:gem/protocol-http1","source":"GHSA-6jwc-qr2q-7xwj"}],"prev":{"headline":"This CVE has been rejected because it is unclear whether the issue rests in the original repository `microsoft/ContosoAir`, the forked repos","id":"CVE-2023-38696"},"products":["protocol-http1"],"published":"2023-08-04","related":[],"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)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-10-04","vendors":["socketry"]},"summary":"Attackers can exploit HTTP request smuggling in the protocol-http1 Ruby library to bypass firewalls and desync parsers.","url":"https://insights.sbomify.com/CVE-2023-38697/"}