CVE-2022-25147
apr-util: out-of-bounds writes in the apr_base64
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · January 31, 2023
Updated · September 21, 2026
Description
A flaw was found in the Apache Portable Runtime Utility (APR-util) library. This issue may allow a malicious attacker to cause an out-of-bounds write due to an integer overflow when encoding/decoding a very long string using the base64 family of functions.
Statement
The Apache Portable Runtime Utility (APR-util) library contains additional utility interfaces for APR (Apache Portable Runtime). This vulnerability is related to the incorrect usage of the base64 encoding/decoding family of functions through APR-util API. Usage of these functions with long enough string would cause integer overflow and will lead to out-of-bound write.
This flaw was rated with an important severity for a moment as Red Hat received information that this vulnerability potentially can allow remote attackers to cause a denial of service to the application linked to the APR-util library. Deep analysis confirmed that there are no known conditions that could lead to DoS. Additionally the APR-util API should not be exposed to the untrusted uploads and usage.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 6.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
CWE-190 · Integer Overflow or Wraparound