CVE Catalog

CVE-2026-92932

MediumCVSS 5.1
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.23%

14th percentile - higher than 14% of all known CVEs

Summary

In the MISP sachertortephp library, the Xml::build() static method contains a logic error in the condition controlling network-based XML fetching. Due to operator precedence, the HTTPS branch is executed even when the readFile option is set to false, allowing an attacker to force outbound HTTPS requests to arbitrary URLs (SSRF).

Risk Assessment

The risk is potential unauthorized access to internal network resources or disclosure of information from external services. An attacker could exploit this to scan internal networks or read data from internal systems.

Recommendation

Correct the logic in Xml::build() so that the readFile option (when set to false) also disables HTTPS fetching. It is recommended to update to a patched version of the library or apply a workaround by validating input data.

Related vulnerabilities

Original NVD description (English source)

In the MISP sachertortephp library, the Xml::build() static method in lib/Cake/Utility/Xml.php contains a logic error in the conditional that gates network-based XML fetching. The original condition was written as: $options['readFile'] && strpos($input, 'http://') === 0 || strpos($input, 'https://') === 0. Because PHP's && operator has higher precedence than ||, the expression is evaluated as ($options['readFile'] && strpos($input, 'http://') === 0) || strpos($input, 'https://') === 0. As a result, when a caller explicitly sets the readFile option to false to disable file and URL reading, an input string beginning with https:// still satisfies the condition and triggers a network fetch via HttpSocket (configured to follow up to 10 redirects). The http:// branch is correctly gated by the readFile flag, but the https:// branch is not. An attacker who can influence the $input parameter passed to Xml::build() can therefore force the application to issue an outbound HTTPS request to an attacker-controlled or internal URL, even though the caller intended to suppress all remote reads. The fetched response is parsed as XML and may be returned to the caller, enabling information disclosure from internal services or external targets. This constitutes a Server-Side Request Forgery (SSRF) weakness with an information-disclosure impact. The vulnerability requires that the code path in Xml::build() be reachable with attacker-controlled input and that the readFile option be set to false (or the caller expects it to be false).

Vulnerability data from NVD (NIST) · CISA KEV · EPSS