{"answers":{"affected":"3 open source packages ship an affected version, including piccolo. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-41885 in the wild and no public exploit code.","fix":"Upgrade piccolo to 0.121.0 or later.","what":"CVE-2023-41885 is a medium-severity vulnerability in piccolo-orm piccolo, published on 12 Sep 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-41885 and fix it if it is affected.\n\nWhat it is: CVE-2023-41885 is a medium-severity vulnerability in piccolo-orm piccolo, published on 12 Sep 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-41885 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- piccolo (PyPI): affected all versions; fixed in 0.121.0\n- piccolo (PyPI): affected all versions; fixed in 0.121.0\n- piccolo (PyPI): affected all versions; fixed in 0.121.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-2023-41885/ (Markdown: https://insights.sbomify.com/CVE-2023-41885/index.md)","id":"CVE-2023-41885","markdown":"https://insights.sbomify.com/CVE-2023-41885/index.md","name":"CVE-2023-41885","record":{"aliases":["GHSA-h7cm-mrvq-wcfr","PYSEC-2023-173"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Python ORM library","requires_auth":"none","summary":"Attackers can enumerate valid user accounts via timing differences in login, facilitating password spray attacks and potential account takeover.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"piccolo","vendor":"piccolo-orm"}],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-203","name":"Observable Discrepancy"},{"id":"CWE-204","name":"Observable Response Discrepancy"}],"description":"Piccolo is an ORM and query builder which supports asyncio. In versions 0.120.0 and prior, the implementation of `BaseUser.login` leaks enough information to a malicious user such that they would be able to successfully generate a list of valid users on the platform. As Piccolo on its own does not also enforce strong passwords, these lists of valid accounts are likely to be used in a password spray attack with the outcome being attempted takeover of user accounts on the platform. The impact of this vulnerability is minor as it requires chaining with other attack vectors in order to gain more then simply a list of valid users on the underlying platform. The likelihood of this vulnerability is possible as it requires minimal skills to pull off, especially given the underlying login functionality for Piccolo based sites is open source. This issue has been patched in version 0.121.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":"Piccolo's current `BaseUser.login` implementation is vulnerable to time based user enumeration","id":"CVE-2023-41885","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"information_disclosure","year":"2023"},"n_packages":3,"n_references":2,"next":{"headline":"OpenRefine vulnerable to arbitrary file read in project import with mysql jdbc url attack","id":"CVE-2023-41886"},"packages":[{"ecosystem":"PyPI","fixed":["0.121.0"],"introduced":["0"],"last_affected":[],"package":"piccolo","purl":null,"source":"GHSA-h7cm-mrvq-wcfr"},{"ecosystem":"PyPI","fixed":["0.121.0"],"introduced":["0"],"last_affected":[],"package":"piccolo","purl":"pkg:pypi/piccolo","source":"GHSA-h7cm-mrvq-wcfr"},{"ecosystem":"PyPI","fixed":["0.121.0"],"introduced":["0"],"last_affected":[],"package":"piccolo","purl":"pkg:pypi/piccolo","source":"PYSEC-2023-173"}],"prev":{"headline":"ZoneMinder Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in watch.php","id":"CVE-2023-41884"},"products":["piccolo"],"published":"2023-09-12","related":[{"cvss_score":9.1,"headline":"piccolo SQL Injection via named transaction savepoints","id":"CVE-2023-47128","kev_date_added":null,"published":"2023-11-10"}],"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":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-09-26","vendors":["piccolo-orm"]},"summary":"Attackers can enumerate valid user accounts via timing differences in login, facilitating password spray attacks and potential account takeover.","url":"https://insights.sbomify.com/CVE-2023-41885/"}