This CVE exposes a memory corruption vulnerability in PJSIP's HTTP client where buffer allocation is sized directly from the Content-Length header—a server-controlled value that receives no bounds validation. When an attacker supplies an oversized Content-Length, the resulting heap buffer overflow enables potential arbitrary read/write in any process embedding PJSIP.

The critical detail most defenders will miss is embedded in the CVE itself: 'applications that only connect to trusted servers are not affected.' This caveat is not a security disclaimer—it is a fossil record. Someone in PJSIP's development history knew the convenience-mode buffering path was unsafe for untrusted input and documented that limitation rather than fixing the underlying design. The knowledge existed, was accurate, and was never escalated into bounds validation, API deprecation, or formal vulnerability handling.

This matters because the fix in commit 8d5956a likely corrects the size calculation—but correcting arithmetic without adding Content-Length bounds checking leaves the design flaw intact. Future calculation errors in this same code path will be equally exploitable. The real indicator of whether this was properly remediated is whether documentation now warns developers explicitly about Content-Length's untrustworthiness for the buffered response mode, and whether the safer incremental-reading API path received any promotional treatment it previously lacked.

The blast radius is amplified by deployment context. PJSIP powers telecommunications infrastructure—Asterisk boxes, SIP proxies, enterprise PBX systems, conference bridges. Memory corruption in a process that listens (not just processes files) shifts the threat model from opportunistic compromise to persistent espionage. Voice infrastructure treats libraries like plumbing; Asterisk deployments frequently run PJSIP versions frozen in enterprise ISOs for years. The exposure window between patch availability and actual deployment is structurally longer in exactly the environments where the consequence is worst.

Defenders should: verify the PJSIP version in their Asterisk or SIP infrastructure and confirm the patch is deployed; if using PJSIP directly, prefer the incremental-reading API path and treat Content-Length as untrusted input regardless of server trust; and audit any provisioning workflows, DNS-over-HTTP resolvers, or configuration endpoints that PJSIP touches for MitM risk. The question is not whether your servers are trusted—it is whether every intermediary in the path is.