External risk intelligence

APR-util Stack Recursion Vulnerability in XML Parsing

CVE advisorySeverity: CRITICAL (CVSS 9.1)

CVE-2026-32327

The vulnerability exists in a library function used to parse XML. While it can be reached via network-accessible services that process untrusted XML input, the library itself is a foundational component rather than a standalone internet-facing service, making its exposure dependent on the specific implementation and application architecture.

Apache Apr Util

before 1.6.4

Halo Surface Signal: 3 out of 5 — possibly public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

This advisory addresses a critical vulnerability identified in the APR-util library. The issue involves a stack recursion flaw that can be exploited when parsing XML from untrusted sources using a specific function. While the library itself is a foundational component, its use in processing external XML data could pose a risk depending on how it's implemented within our systems.

  • XML parsing flaw in a common library.
  • Matters if we process external XML data.
  • Confirm relevance and exposure to untrusted XML.

Attack Path

How an attacker could exploit the issue

An attacker can trigger this vulnerability by sending specially crafted XML data to an application that parses it. This XML data would exploit a flaw in the `apr_xml_quote_elem()` function, leading to a stack recursion issue. If an application consumes XML from untrusted sources and uses this function, an attacker could potentially cause a denial-of-service condition or execute arbitrary code.

  • Requires network access to an XML parsing function.
  • Triggered by untrusted XML input.
  • Risk of denial-of-service or code execution.

Live Threat

Current exploitation, exposure, and threat context

This vulnerability could impact applications that parse untrusted XML data using a specific function. When this function is called with maliciously crafted XML, it may lead to a stack recursion attack, potentially causing the application to crash or become unresponsive. The advisory does not indicate risks to user data or PII.

  • Service stability and availability.
  • Untrusted XML parsing triggers recursion.
  • Application crash or unresponsiveness.

Operational Fix

Recommended remediation, mitigation, and detection steps

This vulnerability impacts applications that use APR-util to parse XML from untrusted sources. Ownership typically lies with the application owner or development team responsible for the affected software, in coordination with infrastructure or platform teams for deployment and patching. The first step is to identify all instances of the affected library, confirm if they process external XML, and then plan remediation based on the risk of exposure.

  • Application owners should own the issue.
  • Verify XML parsing and untrusted input.
  • Plan upgrade or isolate vulnerable components.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is the APR-util library?

APR-util is a software library that provides a collection of utility functions for applications, such as XML parsing. It serves as a foundational building block for many programs, allowing them to handle data formats like XML efficiently without reinventing those capabilities from scratch.

What does CWE-674 mean for CVE-2026-32327?

CWE-674 refers to uncontrolled recursion. In this case, the library's XML parsing logic can get stuck in a repeating loop that consumes too much memory (stack space). This happens when the affected function, apr_xml_quote_elem(), processes certain malicious XML structures, causing the program to fail.

How is this vulnerability triggered?

An attacker triggers the flaw by sending specially crafted XML data to an application that uses the vulnerable function to process it. It is not triggered if an application only processes trusted, internal XML data or if the application does not use the apr_xml_quote_elem() function at all.

How relevant is this to my infrastructure?

According to Halo Surface Signal, the risk depends on your application architecture. If you use this library in a service that processes XML input from the public internet, the potential for harm is higher. Internal services that do not touch untrusted XML are generally less likely to be impacted.

Do I need to patch every instance of APR-util?

First, identify which of your applications use APR-util and confirm if they process untrusted XML data via the affected function. If they do, your priority is to update the library to version 1.6.4 or later, which contains the fix for the recursion issue.

References