{"answers":{"affected":"3 open source packages ship an affected version, including libpython, python and python-min.","exploited":"There is no known exploitation of CVE-2025-0938 in the wild and no public exploit code.","fix":"Upgrade libpython to a fixed version for your release line: 3.9.22, 3.10.17, 3.11.12 or 3.12.9.","what":"CVE-2025-0938 is a medium-severity vulnerability in CPython, published on 31 Jan 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-0938 and fix it if it is affected.\n\nWhat it is: CVE-2025-0938 is a medium-severity vulnerability in CPython, published on 31 Jan 2025. 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-2025-0938 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- libpython (Bitnami): affected all versions; fixed in 3.9.22, 3.10.17, 3.11.12, 3.12.9, 3.13.2\n- python (Bitnami): affected all versions; fixed in 3.9.22, 3.10.17, 3.11.12, 3.12.9, 3.13.2\n- python-min (Bitnami): affected all versions; fixed in 3.9.22, 3.10.17, 3.11.12, 3.12.9, 3.13.2\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-2025-0938/ (Markdown: https://insights.sbomify.com/CVE-2025-0938/index.md)","id":"CVE-2025-0938","markdown":"https://insights.sbomify.com/CVE-2025-0938/index.md","name":"CVE-2025-0938","record":{"aliases":["ALPINE-CVE-2025-0938","ALSA-2025:6977","ALSA-2025:7107","ALSA-2025:7109","ALSA-2026:5588","AZL-56231","AZL-56343","BELL-CVE-2025-0938","BIT-libpython-2025-0938","BIT-python-2025-0938","BIT-python-min-2025-0938","CLEANSTART-2026-HG22409","CLSA-2026-1767629333","CLSA-2026-1767800092","CLSA-2026-1767800687","DEBIAN-CVE-2025-0938","ECHO-2b3d-4ba9-189d","GHSA-5qjr-cj9f-phrx","MINI-4793-rxpp-vxmp","MINI-4f3m-r4r7-7c3h","MINI-grf7-9fgw-pmm3","MINI-x6fh-v5m5-v96x","OESA-2025-1148","OESA-2025-1149","OESA-2025-1150","OESA-2025-1151","PSF-2025-1","RHSA-2025:6977","RHSA-2025:7107","RHSA-2025:7109","RHSA-2026:5588","RLSA-2025:6977","RLSA-2025:7107","RLSA-2025:7109","SUSE-SU-2025:0386-1","SUSE-SU-2025:0406-1","SUSE-SU-2025:0419-1","SUSE-SU-2025:0434-1","SUSE-SU-2025:0502-1","SUSE-SU-2025:0514-1","SUSE-SU-2025:0551-1","SUSE-SU-2025:0552-1","SUSE-SU-2025:0553-1","SUSE-SU-2025:0554-1","SUSE-SU-2025:0756-1","SUSE-SU-2025:0814-1","SUSE-SU-2025:20346-1","UBUNTU-CVE-2025-0938","USN-7280-1","USN-7280-2","USN-7348-2","openSUSE-SU-2025:14750-1","openSUSE-SU-2025:14751-1","openSUSE-SU-2025:14758-1","openSUSE-SU-2025:14759-1","openSUSE-SU-2025:14760-1","openSUSE-SU-2025:14761-1"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Python standard library","requires_auth":"none","summary":"Python's URL parser incorrectly accepted square brackets in domain names, potentially causing differential parsing issues compared to compliant parsers.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"PSF","cpe":[],"cvss":{"score":6.3,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N","version":"4.0"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"description":"The Python standard library functions `urllib.parse.urlsplit` and `urlparse` accepted domain names that included square brackets which isn't valid according to RFC 3986. Square brackets are only meant to be used as delimiters for specifying IPv6 and IPvFuture hosts in URLs. This could result in differential parsing across the Python URL parser and other specification-compliant URL parsers.","ecosystems":["AlmaLinux:8","AlmaLinux:9","Bitnami","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:8::baseos","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::baseos","Red Hat:enterprise_linux:9::crb","Rocky Linux:9","SUSE:Linux Enterprise Micro 5.1","SUSE:Linux Enterprise Micro 5.2","SUSE:Linux Enterprise Micro 5.3","SUSE:Linux Enterprise Micro 5.4","SUSE:Linux Enterprise Micro 5.5","SUSE:Linux Enterprise Module for Basesystem 15 SP6","SUSE:Linux Enterprise Module for Development Tools 15 SP6","SUSE:Linux Enterprise Module for Package Hub 15 SP6","SUSE:Linux Enterprise Module for Public Cloud 15 SP4","SUSE:Linux Enterprise Module for Python 3 15 SP6","SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","SUSE:Linux Micro 6.0","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"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":"URL parser allowed square brackets in domain names","id":"CVE-2025-0938","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"other","year":"2025"},"n_packages":150,"n_references":9,"next":{"headline":"MagicForm - WordPress Form Builder \u003c= 1.6.2 - Missing Authorization","id":"CVE-2025-0939"},"packages":[{"ecosystem":"Bitnami","fixed":["3.9.22","3.10.17","3.11.12","3.12.9","3.13.2"],"introduced":["0","3.10.0","3.11.0","3.12.0","3.13.0"],"last_affected":[],"package":"libpython","purl":"pkg:bitnami/libpython","source":"BIT-libpython-2025-0938"},{"ecosystem":"Bitnami","fixed":["3.9.22","3.10.17","3.11.12","3.12.9","3.13.2"],"introduced":["0","3.10.0","3.11.0","3.12.0","3.13.0"],"last_affected":[],"package":"python","purl":"pkg:bitnami/python","source":"BIT-python-2025-0938"},{"ecosystem":"Bitnami","fixed":["3.9.22","3.10.17","3.11.12","3.12.9","3.13.2"],"introduced":["0","3.10.0","3.11.0","3.12.0","3.13.0"],"last_affected":[],"package":"python-min","purl":"pkg:bitnami/python-min","source":"BIT-python-min-2025-0938"},{"ecosystem":"AlmaLinux:8","fixed":["3.6.8-74.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"platform-python","purl":"pkg:rpm/almalinux/platform-python","source":"ALSA-2026:5588"},{"ecosystem":"AlmaLinux:8","fixed":["3.6.8-74.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"platform-python-debug","purl":"pkg:rpm/almalinux/platform-python-debug","source":"ALSA-2026:5588"},{"ecosystem":"AlmaLinux:8","fixed":["3.6.8-74.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"platform-python-devel","purl":"pkg:rpm/almalinux/platform-python-devel","source":"ALSA-2026:5588"},{"ecosystem":"AlmaLinux:8","fixed":["3.6.8-74.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"python3-idle","purl":"pkg:rpm/almalinux/python3-idle","source":"ALSA-2026:5588"},{"ecosystem":"AlmaLinux:8","fixed":["3.6.8-74.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"python3-libs","purl":"pkg:rpm/almalinux/python3-libs","source":"ALSA-2026:5588"},{"ecosystem":"AlmaLinux:8","fixed":["3.6.8-74.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"python3-test","purl":"pkg:rpm/almalinux/python3-test","source":"ALSA-2026:5588"},{"ecosystem":"AlmaLinux:8","fixed":["3.6.8-74.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"python3-tkinter","purl":"pkg:rpm/almalinux/python3-tkinter","source":"ALSA-2026:5588"},{"ecosystem":"AlmaLinux:9","fixed":["3.9.21-2.el9"],"introduced":["0"],"last_affected":[],"package":"python-unversioned-command","purl":"pkg:rpm/almalinux/python-unversioned-command","source":"ALSA-2025:6977"},{"ecosystem":"AlmaLinux:9","fixed":["3.9.21-2.el9"],"introduced":["0"],"last_affected":[],"package":"python3","purl":"pkg:rpm/almalinux/python3","source":"ALSA-2025:6977"},{"ecosystem":"AlmaLinux:9","fixed":["3.9.21-2.el9"],"introduced":["0"],"last_affected":[],"package":"python3-debug","purl":"pkg:rpm/almalinux/python3-debug","source":"ALSA-2025:6977"},{"ecosystem":"AlmaLinux:9","fixed":["3.9.21-2.el9"],"introduced":["0"],"last_affected":[],"package":"python3-devel","purl":"pkg:rpm/almalinux/python3-devel","source":"ALSA-2025:6977"},{"ecosystem":"AlmaLinux:9","fixed":["3.9.21-2.el9"],"introduced":["0"],"last_affected":[],"package":"python3-idle","purl":"pkg:rpm/almalinux/python3-idle","source":"ALSA-2025:6977"},{"ecosystem":"AlmaLinux:9","fixed":["3.9.21-2.el9"],"introduced":["0"],"last_affected":[],"package":"python3-libs","purl":"pkg:rpm/almalinux/python3-libs","source":"ALSA-2025:6977"},{"ecosystem":"AlmaLinux:9","fixed":["3.9.21-2.el9"],"introduced":["0"],"last_affected":[],"package":"python3-test","purl":"pkg:rpm/almalinux/python3-test","source":"ALSA-2025:6977"},{"ecosystem":"AlmaLinux:9","fixed":["3.9.21-2.el9"],"introduced":["0"],"last_affected":[],"package":"python3-tkinter","purl":"pkg:rpm/almalinux/python3-tkinter","source":"ALSA-2025:6977"},{"ecosystem":"AlmaLinux:9","fixed":["3.11.11-2.el9"],"introduced":["0"],"last_affected":[],"package":"python3.11","purl":"pkg:rpm/almalinux/python3.11","source":"ALSA-2025:7109"},{"ecosystem":"AlmaLinux:9","fixed":["3.11.11-2.el9"],"introduced":["0"],"last_affected":[],"package":"python3.11-debug","purl":"pkg:rpm/almalinux/python3.11-debug","source":"ALSA-2025:7109"},{"ecosystem":"AlmaLinux:9","fixed":["3.11.11-2.el9"],"introduced":["0"],"last_affected":[],"package":"python3.11-devel","purl":"pkg:rpm/almalinux/python3.11-devel","source":"ALSA-2025:7109"},{"ecosystem":"AlmaLinux:9","fixed":["3.11.11-2.el9"],"introduced":["0"],"last_affected":[],"package":"python3.11-idle","purl":"pkg:rpm/almalinux/python3.11-idle","source":"ALSA-2025:7109"},{"ecosystem":"AlmaLinux:9","fixed":["3.11.11-2.el9"],"introduced":["0"],"last_affected":[],"package":"python3.11-libs","purl":"pkg:rpm/almalinux/python3.11-libs","source":"ALSA-2025:7109"},{"ecosystem":"AlmaLinux:9","fixed":["3.11.11-2.el9"],"introduced":["0"],"last_affected":[],"package":"python3.11-test","purl":"pkg:rpm/almalinux/python3.11-test","source":"ALSA-2025:7109"},{"ecosystem":"AlmaLinux:9","fixed":["3.11.11-2.el9"],"introduced":["0"],"last_affected":[],"package":"python3.11-tkinter","purl":"pkg:rpm/almalinux/python3.11-tkinter","source":"ALSA-2025:7109"},{"ecosystem":"AlmaLinux:9","fixed":["3.12.9-1.el9"],"introduced":["0"],"last_affected":[],"package":"python3.12","purl":"pkg:rpm/almalinux/python3.12","source":"ALSA-2025:7107"},{"ecosystem":"AlmaLinux:9","fixed":["3.12.9-1.el9"],"introduced":["0"],"last_affected":[],"package":"python3.12-debug","purl":"pkg:rpm/almalinux/python3.12-debug","source":"ALSA-2025:7107"},{"ecosystem":"AlmaLinux:9","fixed":["3.12.9-1.el9"],"introduced":["0"],"last_affected":[],"package":"python3.12-devel","purl":"pkg:rpm/almalinux/python3.12-devel","source":"ALSA-2025:7107"},{"ecosystem":"AlmaLinux:9","fixed":["3.12.9-1.el9"],"introduced":["0"],"last_affected":[],"package":"python3.12-idle","purl":"pkg:rpm/almalinux/python3.12-idle","source":"ALSA-2025:7107"},{"ecosystem":"AlmaLinux:9","fixed":["3.12.9-1.el9"],"introduced":["0"],"last_affected":[],"package":"python3.12-libs","purl":"pkg:rpm/almalinux/python3.12-libs","source":"ALSA-2025:7107"},{"ecosystem":"AlmaLinux:9","fixed":["3.12.9-1.el9"],"introduced":["0"],"last_affected":[],"package":"python3.12-test","purl":"pkg:rpm/almalinux/python3.12-test","source":"ALSA-2025:7107"},{"ecosystem":"AlmaLinux:9","fixed":["3.12.9-1.el9"],"introduced":["0"],"last_affected":[],"package":"python3.12-tkinter","purl":"pkg:rpm/almalinux/python3.12-tkinter","source":"ALSA-2025:7107"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.6.8-74.el8_10"],"introduced":["0"],"last_affected":[],"package":"platform-python","purl":"pkg:rpm/redhat/platform-python","source":"RHSA-2026:5588"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.6.8-74.el8_10"],"introduced":["0"],"last_affected":[],"package":"platform-python-debug","purl":"pkg:rpm/redhat/platform-python-debug","source":"RHSA-2026:5588"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.6.8-74.el8_10"],"introduced":["0"],"last_affected":[],"package":"platform-python-devel","purl":"pkg:rpm/redhat/platform-python-devel","source":"RHSA-2026:5588"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.6.8-74.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3-debuginfo","purl":"pkg:rpm/redhat/python3-debuginfo","source":"RHSA-2026:5588"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.6.8-74.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3-debugsource","purl":"pkg:rpm/redhat/python3-debugsource","source":"RHSA-2026:5588"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.6.8-74.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3-idle","purl":"pkg:rpm/redhat/python3-idle","source":"RHSA-2026:5588"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.6.8-74.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3-test","purl":"pkg:rpm/redhat/python3-test","source":"RHSA-2026:5588"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.6.8-74.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3-tkinter","purl":"pkg:rpm/redhat/python3-tkinter","source":"RHSA-2026:5588"}],"prev":{"headline":"Nomad Vulnerable To Event Stream Namespace ACL Policy Bypass Through Wildcard Namespace","id":"CVE-2025-0937"},"products":["CPython"],"published":"2025-01-31","related":[],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-31","vendors":["Python Software Foundation"]},"summary":"Python's URL parser incorrectly accepted square brackets in domain names, potentially causing differential parsing issues compared to compliant parsers.","url":"https://insights.sbomify.com/CVE-2025-0938/"}