{"answers":{"affected":"3 open source packages ship an affected version, including waitress. It affects 5 products.","exploited":"There is no known exploitation of CVE-2019-16785 in the wild and no public exploit code.","fix":"Upgrade waitress to 1.4.0 or later.","what":"CVE-2019-16785 is a high-severity vulnerability in Debian Debian Linux, published on 20 Dec 2019. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2019-16785 and fix it if it is affected.\n\nWhat it is: CVE-2019-16785 is a high-severity vulnerability in Debian Debian Linux, published on 20 Dec 2019. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2019-16785 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- waitress (PyPI): affected all versions; fixed in 1.4.0\n- waitress (PyPI): affected all versions; fixed in 1.4.0\n- waitress (PyPI): affected all versions; fixed in 1.4.0\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-2019-16785/ (Markdown: https://insights.sbomify.com/CVE-2019-16785/index.md)","id":"CVE-2019-16785","markdown":"https://insights.sbomify.com/CVE-2019-16785/index.md","name":"CVE-2019-16785","record":{"aliases":["DEBIAN-CVE-2019-16785","GHSA-pg36-wpm5-g57p","PYSEC-2019-136","UBUNTU-CVE-2019-16785"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["security_bypass","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Python WSGI server","requires_auth":"low_privilege","summary":"Attackers can exploit HTTP request smuggling via LF/CRLF parsing discrepancies in Waitress, potentially bypassing security controls or accessing unauthorized data.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"waitress","vendor":"agendaless"},{"product":"debian_linux","vendor":"debian"},{"product":"fedora","vendor":"fedoraproject"},{"product":"communications_cloud_native_core_network_function_cloud_native_environment","vendor":"oracle"},{"product":"openstack","vendor":"redhat"}],"cvss":{"score":7.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-444","name":"Inconsistent Interpretation of HTTP Requests"}],"description":"Waitress through version 1.3.1 implemented a \"MAY\" part of the RFC7230 which states: \"Although the line terminator for the start-line and header fields is the sequence CRLF, a recipient MAY recognize a single LF as a line terminator and ignore any preceding CR.\" Unfortunately if a front-end server does not parse header fields with an LF the same way as it does those with a CRLF it can lead to the front-end and the back-end server parsing the same HTTP message in two different ways. This can lead to a potential for HTTP request smuggling/splitting whereby Waitress may see two requests while the front-end server only sees a single HTTP message. This issue is fixed in Waitress 1.4.0.","ecosystems":["PyPI"],"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":"HTTP Request Smuggling: LF vs CRLF handling in Waitress","id":"CVE-2019-16785","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":"debian:debian_linux","products":["debian:debian_linux","fedoraproject:fedora","redhat:openstack"],"type":"other","year":"2019"},"n_packages":3,"n_references":8,"next":{"headline":"HTTP Request Smuggling: Invalid Transfer-Encoding in Waitress","id":"CVE-2019-16786"},"packages":[{"ecosystem":"PyPI","fixed":["1.4.0"],"introduced":["0"],"last_affected":[],"package":"waitress","purl":null,"source":"GHSA-pg36-wpm5-g57p"},{"ecosystem":"PyPI","fixed":["1.4.0"],"introduced":["0"],"last_affected":[],"package":"waitress","purl":"pkg:pypi/waitress","source":"GHSA-pg36-wpm5-g57p"},{"ecosystem":"PyPI","fixed":["1.4.0"],"introduced":["0"],"last_affected":[],"package":"waitress","purl":"pkg:pypi/waitress","source":"PYSEC-2019-136"}],"prev":{"headline":"Local Privilege Escalation present only on the Windows version of PyInstaller","id":"CVE-2019-16784"},"products":["Waitress"],"published":"2019-12-20","related":[{"cvss_score":9.1,"headline":"Waitress has request processing race condition in HTTP pipelining with invalid first request","id":"CVE-2024-49768","kev_date_added":null,"published":"2024-10-29"},{"cvss_score":7.5,"headline":"Waitress has a denial of service leading to high CPU usage/resource exhaustion","id":"CVE-2024-49769","kev_date_added":null,"published":"2024-10-29"},{"cvss_score":7.5,"headline":"HTTP Request Smuggling in waitress","id":"CVE-2022-24761","kev_date_added":null,"published":"2022-03-17"},{"cvss_score":7.1,"headline":"HTTP Request Smuggling: Content-Length Sent Twice in Waitress","id":"CVE-2019-16792","kev_date_added":null,"published":"2020-01-22"},{"cvss_score":7.1,"headline":"HTTP Request Smuggling in Waitress: Invalid whitespace characters in headers","id":"CVE-2019-16789","kev_date_added":null,"published":"2019-12-26"},{"cvss_score":7.1,"headline":"HTTP Request Smuggling: Invalid Transfer-Encoding in Waitress","id":"CVE-2019-16786","kev_date_added":null,"published":"2019-12-20"}],"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":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["Pylons"]},"summary":"Attackers can exploit HTTP request smuggling via LF/CRLF parsing discrepancies in Waitress, potentially bypassing security controls or accessing unauthorized data.","url":"https://insights.sbomify.com/CVE-2019-16785/"}