{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-45158 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2023-45158 yet. Limit exposure of the affected software until one is available.","what":"CVE-2023-45158 is a critical command injection vulnerability in web2py, published on 16 Oct 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-45158 and fix it if it is affected.\n\nWhat it is: CVE-2023-45158 is a critical command injection vulnerability in web2py, published on 16 Oct 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-45158 in the wild and no public exploit code.\n\nAffected product: web2py. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-45158/ (Markdown: https://insights.sbomify.com/CVE-2023-45158/index.md)","id":"CVE-2023-45158","markdown":"https://insights.sbomify.com/CVE-2023-45158/index.md","name":"CVE-2023-45158","record":{"aliases":["GHSA-vx79-v9rq-vjp5","UBUNTU-CVE-2023-45158"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"web2py web framework","requires_auth":"none","summary":"Attackers can execute arbitrary OS commands on web2py servers if notifySendHandler logging is enabled, requiring an upgrade to mitigate.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"jpcert","cpe":[{"product":"web2py","vendor":"web2py"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"An OS command injection vulnerability exists in web2py 2.24.1 and earlier. When the product is configured to use notifySendHandler for logging (not the default configuration), a crafted web request may execute an arbitrary OS command on the web server using the product.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2023-11-04","github_poc":1,"max_poc_stars":4,"metasploit":0,"nuclei":0,"refs":[{"date":"2023-11-04T21:14:09Z","kind":"github_poc","ref":"https://github.com/yifanzhg/CVE-2023-45158","stars":4,"title":null}],"tier":"poc_unverified"},"has_fix":false,"headline":"Command injection in web2py","id":"CVE-2023-45158","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2023"},"n_packages":0,"n_references":4,"next":{"headline":"1E Client installer can perform arbitrary file deletion on protected files","id":"CVE-2023-45159"},"packages":[],"prev":{"headline":"Blind Server Side Request Forgery (SSRF) in remote schedule import feature in Engelsystem","id":"CVE-2023-45152"},"products":["web2py"],"published":"2023-10-16","related":[{"cvss_score":9.8,"headline":"web2py remote code execution via hardcoded encryption key in session.connect function","id":"CVE-2016-3953","kev_date_added":null,"published":"2018-02-06"},{"cvss_score":9.8,"headline":"Deserialization in n/a","id":"CVE-2016-3957","kev_date_added":null,"published":"2018-02-06"},{"cvss_score":9.8,"headline":"web2py is vulnerable to password brute-force attack","id":"CVE-2016-10321","kev_date_added":null,"published":"2017-04-10"},{"cvss_score":8.8,"headline":"Web2py Cross-Site Request Forgery vulnerability","id":"CVE-2016-4808","kev_date_added":null,"published":"2017-01-11"},{"cvss_score":7.8,"headline":"Information disclosure in n/a","id":"CVE-2016-3952","kev_date_added":null,"published":"2018-02-06"},{"cvss_score":7.5,"headline":"Path traversal in n/a","id":"CVE-2016-4806","kev_date_added":null,"published":"2017-01-11"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-09-18","vendors":["web2py"]},"summary":"Attackers can execute arbitrary OS commands on web2py servers if notifySendHandler logging is enabled, requiring an upgrade to mitigate.","url":"https://insights.sbomify.com/CVE-2023-45158/"}