libproxy PAC execution under lock: proxy discovery becomes a denial-of-service boundary
CVE-2026-140039 affects libproxy when Proxy Auto-Configuration or Web Proxy Auto-Discovery is enabled. libproxy holds an internal lock while it synchronously downloads and executes a PAC script. A slow or blocked download can therefore stop unrelated threads that share the same manager instance.
Why a proxy helper affects availability
libproxy is a library, not a single daemon. Applications embed it to discover proxy settings for HTTP clients and other network operations. When PAC or WPAD is active, the application may fetch a script and run it to choose a route. The design generally assumes that the discovery service answers quickly.
The vulnerable path removes that assumption from the critical section. A network delay, an unavailable server, or a deliberately slow response can hold the lock while other callers wait. The result is a denial of service inside the affected process. Red Hat rates the issue Moderate with CVSS 3.1 score 5.7 because PAC or WPAD must be enabled and the stall is limited to threads that share a manager.
Assess the configuration
Start with applications that enable automatic proxy discovery on user workstations or multi-user servers. Check environment variables, desktop settings, browser policies, package defaults, and application-specific configuration. WPAD is especially sensitive in networks where name resolution or DHCP can be influenced by an attacker.
Inventory the libproxy version in each application or container. A host package update will not change a bundled library inside an application image. Also determine whether one long-lived manager is shared by synchronous and interactive request paths.
Reduce exposure
Apply the vendor libproxy update and restart every process that loaded the old library. If the application does not need PAC or WPAD, disable automatic discovery and configure a fixed proxy or direct connection. Restrict discovery traffic to trusted network segments and do not execute scripts from unauthenticated endpoints.
For applications that must keep PAC enabled, place a short timeout around proxy resolution at the application layer and isolate proxy discovery from latency-sensitive request threads. The timeout is a containment measure. It does not remove the internal lock defect.
Verification
In a lab, simulate a PAC endpoint that accepts a connection but delays its response. Confirm that request threads outside proxy discovery continue to run after the patch and that the process observes a bounded timeout. Check logs for repeated discovery failures, long waits, and worker saturation.
Top comments (0)