{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-25147 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2022-25147 is a medium-severity vulnerability in Apache Portable Runtime Utility (APR-util), published on 31 Jan 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-2022-25147 and fix it if it is affected.\n\nWhat it is: CVE-2022-25147 is a medium-severity vulnerability in Apache Portable Runtime Utility (APR-util), published on 31 Jan 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-2022-25147 in the wild and no public exploit code.\n\nAffected product: Apache Portable Runtime Utility (APR-util). 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-2022-25147/ (Markdown: https://insights.sbomify.com/CVE-2022-25147/index.md)","id":"CVE-2022-25147","markdown":"https://insights.sbomify.com/CVE-2022-25147/index.md","name":"CVE-2022-25147","record":{"aliases":["ALPINE-CVE-2022-25147","ALSA-2023:3109","ALSA-2023:3147","AZL-13212","DEBIAN-CVE-2022-25147","DLA-3332-1","DSA-5364-1","GHSA-37mv-q3x5-3mwg","MGASA-2023-0045","OESA-2023-1105","OESA-2023-1108","RHSA-2023:3109","RHSA-2023:3145","RHSA-2023:3146","RHSA-2023:3147","RHSA-2023:3177","RHSA-2023:3178","RHSA-2023:3360","RHSA-2023:3380","RLSA-2023:3109","RLSA-2023:3147","SUSE-SU-2023:0324-1","SUSE-SU-2023:0325-1","SUSE-SU-2023:0337-1","SUSE-SU-2023:0338-1","SUSE-SU-2023:0389-1","UBUNTU-CVE-2022-25147","USN-5870-1","openSUSE-SU-2024:12656-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache Portable Runtime Utility","requires_auth":"none","summary":"An integer overflow in APR-util's base64 functions allows attackers to write beyond buffer bounds, potentially leading to code execution or crashes.","user_interaction":"not_required","vuln_class":"integer_overflow"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"portable_runtime_utility","vendor":"apache"}],"cvss":{"score":6.5,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"description":"Integer Overflow or Wraparound vulnerability in apr_base64 functions of Apache Portable Runtime Utility (APR-util) allows an attacker to write beyond bounds of a buffer.\n\nThis issue affects Apache Portable Runtime Utility (APR-util) 1.6.1 and prior versions.","ecosystems":["AlmaLinux:8","AlmaLinux:9","Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::computenode","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:9::appstream","Red Hat:rhel_aus:8.2::appstream","Red Hat:rhel_e4s:8.1::appstream","Red Hat:rhel_e4s:8.2::appstream","Red Hat:rhel_eus:8.4::appstream","Red Hat:rhel_eus:8.6::appstream","Red Hat:rhel_eus:9.0::appstream","Red Hat:rhel_tus:8.2::appstream","Rocky Linux:8","Rocky Linux:9","SUSE:Enterprise Storage 7","SUSE:Enterprise Storage 7.1","SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","SUSE:Linux Enterprise Module for Basesystem 15 SP4","SUSE:Linux Enterprise Module for Server Applications 15 SP4","SUSE:Linux Enterprise Real Time 15 SP3","SUSE:Linux Enterprise Server 12 SP2-BCL","SUSE:Linux Enterprise Server 12 SP4-LTSS","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server 15 SP1-LTSS","SUSE:Linux Enterprise Server 15 SP2-LTSS","SUSE:Linux Enterprise Server 15 SP3-LTSS","SUSE:Linux Enterprise Server for SAP Applications 12 SP4","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15 SP1","SUSE:Linux Enterprise Server for SAP Applications 15 SP2","SUSE:Linux Enterprise Server for SAP Applications 15 SP3","SUSE:Linux Enterprise Software Development Kit 12 SP5","SUSE:Manager Proxy 4.2","SUSE:Manager Retail Branch Server 4.2","SUSE:Manager Server 4.2","SUSE:OpenStack Cloud 9","SUSE:OpenStack Cloud Crowbar 9","openSUSE:Leap 15.4","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":"Apache Portable Runtime Utility (APR-util): out-of-bounds writes in the apr_base64 family of functions","id":"CVE-2022-25147","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"integer_overflow","year":"2022"},"n_packages":251,"n_references":2,"next":{"headline":"WP Statistics \u003c= 13.1.5 Unauthenticated Blind SQL Injection via current_page_id","id":"CVE-2022-25148"},"packages":[{"ecosystem":"AlmaLinux:8","fixed":["1.6.1-6.el8_8.1"],"introduced":["0"],"last_affected":[],"package":"apr-util","purl":"pkg:rpm/almalinux/apr-util","source":"ALSA-2023:3109"},{"ecosystem":"AlmaLinux:8","fixed":["1.6.1-6.el8_8.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-bdb","purl":"pkg:rpm/almalinux/apr-util-bdb","source":"ALSA-2023:3109"},{"ecosystem":"AlmaLinux:8","fixed":["1.6.1-6.el8_8.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-devel","purl":"pkg:rpm/almalinux/apr-util-devel","source":"ALSA-2023:3109"},{"ecosystem":"AlmaLinux:8","fixed":["1.6.1-6.el8_8.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-ldap","purl":"pkg:rpm/almalinux/apr-util-ldap","source":"ALSA-2023:3109"},{"ecosystem":"AlmaLinux:8","fixed":["1.6.1-6.el8_8.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-mysql","purl":"pkg:rpm/almalinux/apr-util-mysql","source":"ALSA-2023:3109"},{"ecosystem":"AlmaLinux:8","fixed":["1.6.1-6.el8_8.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-odbc","purl":"pkg:rpm/almalinux/apr-util-odbc","source":"ALSA-2023:3109"},{"ecosystem":"AlmaLinux:8","fixed":["1.6.1-6.el8_8.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-openssl","purl":"pkg:rpm/almalinux/apr-util-openssl","source":"ALSA-2023:3109"},{"ecosystem":"AlmaLinux:8","fixed":["1.6.1-6.el8_8.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-pgsql","purl":"pkg:rpm/almalinux/apr-util-pgsql","source":"ALSA-2023:3109"},{"ecosystem":"AlmaLinux:8","fixed":["1.6.1-6.el8_8.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-sqlite","purl":"pkg:rpm/almalinux/apr-util-sqlite","source":"ALSA-2023:3109"},{"ecosystem":"AlmaLinux:9","fixed":["1.6.1-20.el9_2.1"],"introduced":["0"],"last_affected":[],"package":"apr-util","purl":"pkg:rpm/almalinux/apr-util","source":"ALSA-2023:3147"},{"ecosystem":"AlmaLinux:9","fixed":["1.6.1-20.el9_2.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-bdb","purl":"pkg:rpm/almalinux/apr-util-bdb","source":"ALSA-2023:3147"},{"ecosystem":"AlmaLinux:9","fixed":["1.6.1-20.el9_2.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-devel","purl":"pkg:rpm/almalinux/apr-util-devel","source":"ALSA-2023:3147"},{"ecosystem":"AlmaLinux:9","fixed":["1.6.1-20.el9_2.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-ldap","purl":"pkg:rpm/almalinux/apr-util-ldap","source":"ALSA-2023:3147"},{"ecosystem":"AlmaLinux:9","fixed":["1.6.1-20.el9_2.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-mysql","purl":"pkg:rpm/almalinux/apr-util-mysql","source":"ALSA-2023:3147"},{"ecosystem":"AlmaLinux:9","fixed":["1.6.1-20.el9_2.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-odbc","purl":"pkg:rpm/almalinux/apr-util-odbc","source":"ALSA-2023:3147"},{"ecosystem":"AlmaLinux:9","fixed":["1.6.1-20.el9_2.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-openssl","purl":"pkg:rpm/almalinux/apr-util-openssl","source":"ALSA-2023:3147"},{"ecosystem":"AlmaLinux:9","fixed":["1.6.1-20.el9_2.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-pgsql","purl":"pkg:rpm/almalinux/apr-util-pgsql","source":"ALSA-2023:3147"},{"ecosystem":"AlmaLinux:9","fixed":["1.6.1-20.el9_2.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-sqlite","purl":"pkg:rpm/almalinux/apr-util-sqlite","source":"ALSA-2023:3147"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.5.2-6.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"apr-util","purl":"pkg:rpm/redhat/apr-util","source":"RHSA-2023:3145"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.5.2-6.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-debuginfo","purl":"pkg:rpm/redhat/apr-util-debuginfo","source":"RHSA-2023:3145"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.5.2-6.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-devel","purl":"pkg:rpm/redhat/apr-util-devel","source":"RHSA-2023:3145"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.5.2-6.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-ldap","purl":"pkg:rpm/redhat/apr-util-ldap","source":"RHSA-2023:3145"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.5.2-6.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-mysql","purl":"pkg:rpm/redhat/apr-util-mysql","source":"RHSA-2023:3145"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.5.2-6.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-nss","purl":"pkg:rpm/redhat/apr-util-nss","source":"RHSA-2023:3145"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.5.2-6.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-odbc","purl":"pkg:rpm/redhat/apr-util-odbc","source":"RHSA-2023:3145"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.5.2-6.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-openssl","purl":"pkg:rpm/redhat/apr-util-openssl","source":"RHSA-2023:3145"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.5.2-6.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-pgsql","purl":"pkg:rpm/redhat/apr-util-pgsql","source":"RHSA-2023:3145"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.5.2-6.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-sqlite","purl":"pkg:rpm/redhat/apr-util-sqlite","source":"RHSA-2023:3145"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.5.2-6.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"apr-util","purl":"pkg:rpm/redhat/apr-util","source":"RHSA-2023:3145"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.5.2-6.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-debuginfo","purl":"pkg:rpm/redhat/apr-util-debuginfo","source":"RHSA-2023:3145"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.5.2-6.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-devel","purl":"pkg:rpm/redhat/apr-util-devel","source":"RHSA-2023:3145"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.5.2-6.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-ldap","purl":"pkg:rpm/redhat/apr-util-ldap","source":"RHSA-2023:3145"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.5.2-6.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-mysql","purl":"pkg:rpm/redhat/apr-util-mysql","source":"RHSA-2023:3145"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.5.2-6.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-nss","purl":"pkg:rpm/redhat/apr-util-nss","source":"RHSA-2023:3145"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.5.2-6.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-odbc","purl":"pkg:rpm/redhat/apr-util-odbc","source":"RHSA-2023:3145"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.5.2-6.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-openssl","purl":"pkg:rpm/redhat/apr-util-openssl","source":"RHSA-2023:3145"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.5.2-6.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-pgsql","purl":"pkg:rpm/redhat/apr-util-pgsql","source":"RHSA-2023:3145"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.5.2-6.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-sqlite","purl":"pkg:rpm/redhat/apr-util-sqlite","source":"RHSA-2023:3145"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.5.2-6.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"apr-util","purl":"pkg:rpm/redhat/apr-util","source":"RHSA-2023:3145"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.5.2-6.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"apr-util-debuginfo","purl":"pkg:rpm/redhat/apr-util-debuginfo","source":"RHSA-2023:3145"}],"prev":{"headline":"Liferay Portal and Liferay DXP fails to check origin of event messages","id":"CVE-2022-25146"},"products":["Apache Portable Runtime Utility (APR-util)"],"published":"2023-01-31","related":[{"cvss_score":4.7,"headline":"Denial of service in Apache Portable Runtime","id":"CVE-2017-12618","kev_date_added":null,"published":"2017-10-24"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"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":"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":"2025-02-13","vendors":["Apache Software Foundation"]},"summary":"An integer overflow in APR-util's base64 functions allows attackers to write beyond buffer bounds, potentially leading to code execution or crashes.","url":"https://insights.sbomify.com/CVE-2022-25147/"}