{"answers":{"affected":"It affects 2 products.","exploited":"There is no known exploitation of CVE-2026-58012 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2026-58012 is a medium-severity vulnerability in Redhat Enterprise Linux, published on 30 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-58012 and fix it if it is affected.\n\nWhat it is: CVE-2026-58012 is a medium-severity vulnerability in Redhat Enterprise Linux, published on 30 Jun 2026. 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-2026-58012 in the wild and no public exploit code.\n\nAffected product: Redhat Enterprise Linux. 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-2026-58012/ (Markdown: https://insights.sbomify.com/CVE-2026-58012/index.md)","id":"CVE-2026-58012","markdown":"https://insights.sbomify.com/CVE-2026-58012/index.md","name":"CVE-2026-58012","record":{"aliases":["AZL-91436","BELL-CVE-2026-58012","DEBIAN-CVE-2026-58012","ECHO-77f1-be49-886b","GHSA-vwg8-37h9-g38g","JLSEC-2026-1245","MINI-j95g-c7vv-gfjm","ROOT-OS-ALPINE-323-CVE-2026-58012","ROOT-OS-DEBIAN-11-CVE-2026-58012","ROOT-OS-DEBIAN-12-CVE-2026-58012","UBUNTU-CVE-2026-58012"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["data_read","denial_of_service"],"network_reachable":"yes","non_default_config":true,"product_category":"GLib library","requires_auth":"none","summary":"A buffer over-read in GLib's regex replacement allows attackers to disclose minor memory contents or cause a denial of service when using raw byte mode.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"glib","vendor":"gnome"},{"product":"enterprise_linux","vendor":"redhat"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-126","name":"Buffer Over-read"}],"description":"A flaw was found in GLib. A buffer over-read can occur in the g_regex_replace function when used with the `G_REGEX_RAW` compile flag and case-change replacement escapes because the string_append function processes matched substrings using UTF-8 functions that assume valid UTF-8 input, even when the string is treated as raw bytes. This vulnerability can cause a minor information disclosure of 1-5 bytes and a denial of service when the buffer over-read crosses a page boundary.","ecosystems":[],"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":"Glib: buffer over-read in g_regex_replace() via glib/gregex.c:string_append() and g_utf8_next_char()","id":"CVE-2026-58012","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"redhat:enterprise_linux","products":["redhat:enterprise_linux"],"type":"information_disclosure","year":"2026"},"n_packages":0,"n_references":78,"next":{"headline":"Glib: buffer over-read in glib/giochannel.c via \"g_io_channel_read_line_backend\"","id":"CVE-2026-58013"},"packages":[],"prev":{"headline":"Glib: out-of-bounds read in glib/gdatetime.c:g_date_time_get_ymd via invalid gdatetime","id":"CVE-2026-58011"},"products":["Cert Manager support for Red Hat OpenShift release 1.17","Cert Manager support for Red Hat OpenShift release 1.18","Cert Manager support for Red Hat OpenShift release 1.19","Cert Manager support for Red Hat OpenShift release 1.20","GLib","Red Hat AI Inference Server 3.2","Red Hat AI Inference Server 3.5","Red Hat Discovery 2","Red Hat Enterprise Linux 10","Red Hat Enterprise Linux 10.0 Extended Update Support","Red Hat Enterprise Linux 6","Red Hat Enterprise Linux 7 Extended Lifecycle Support","Red Hat Enterprise Linux 8","Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support","Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On","Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support","Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On","Red Hat Enterprise Linux 8.8 Telecommunications Update Service","Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions","Red Hat Enterprise Linux 9","Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions","Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions","Red Hat Enterprise Linux 9.6 Extended Update Support","Red Hat Enterprise Linux AI 3.5","Red Hat Hardened Images","Red Hat OpenShift AI 3.0","Red Hat OpenShift AI 3.2","Red Hat OpenShift AI 3.4","Red Hat OpenShift AI 3.5","Red Hat Update Infrastructure 5"],"published":"2026-06-30","related":[{"cvss_score":7.8,"headline":"Integer overflow in n/a","id":"CVE-2020-35457","kev_date_added":null,"published":"2020-12-14"},{"cvss_score":7.8,"headline":"Privilege escalation in n/a","id":"CVE-2009-3289","kev_date_added":null,"published":"2009-09-22"},{"cvss_score":7.7,"headline":"Glib: integer overflow in in g_escape_uri_string()","id":"CVE-2025-13601","kev_date_added":null,"published":"2025-11-26"},{"cvss_score":7.5,"headline":"Glib: integer underflow in gio/gdbusintrospection.c via \"g_dbus_node_info_new_for_xml\"","id":"CVE-2026-58016","kev_date_added":null,"published":"2026-06-30"},{"cvss_score":7.5,"headline":"Glib: glib crash after long command line","id":"CVE-2025-4056","kev_date_added":null,"published":"2025-07-28"},{"cvss_score":7.5,"headline":"Misconfiguration in n/a","id":"CVE-2019-13012","kev_date_added":null,"published":"2019-06-28"},{"cvss_score":7.5,"headline":"Denial of service in n/a","id":"CVE-2012-0039","kev_date_added":null,"published":"2012-01-14"}],"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)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-29","vendors":["GNOME","Red Hat"]},"summary":"A buffer over-read in GLib's regex replacement allows attackers to disclose minor memory contents or cause a denial of service when using raw byte mode.","url":"https://insights.sbomify.com/CVE-2026-58012/"}