CVE-2023-49087
PHP vulnerability analysis and mitigation

Overview

CVE-2023-49087 affects xml-security, a library that implements XML signatures and encryption. The vulnerability was discovered and disclosed on November 30, 2023, impacting versions before 1.6.12 and 5.0.0-alpha.13. The issue lies in the validation process of XML signatures, specifically in how the library handles the verification of DigestValue in SignedInfo elements (NVD, GitHub Advisory).

Technical details

The vulnerability stems from a mismatch in signature validation processes. While the signature is calculated over the canonical version of the SignedInfo-tree, the validateReference method uses the original non-canonicalized version of SignedInfo. This discrepancy could potentially be exploited if an attacker manages to manipulate the canonicalized version's DigestValue through potential bugs in PHP's canonicalization function. The vulnerability has been assigned a CVSS v3.1 base score of 6.8 (Medium) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N, indicating a network-accessible vulnerability with high attack complexity (GitHub Advisory).

Impact

If successfully exploited, the vulnerability could allow an attacker to potentially forge signatures by manipulating the DigestValue in the canonicalized version. This could lead to unauthorized modifications of signed data, compromising the integrity of the XML signature validation process (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in xml-security version 1.6.12 and 5.0.0-alpha.13. Users are advised to upgrade to these or later versions to address the security issue (NVD).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-13828CRITICAL9
  • PHPPHP
  • mautic/core
NoYesDec 02, 2025
CVE-2025-13827HIGH8.8
  • PHPPHP
  • mautic/grapes-js-builder-bundle
NoYesDec 02, 2025
CVE-2025-66468HIGH7.6
  • PHPPHP
  • aimeos/ai-cms-grapesjs
NoYesDec 02, 2025
CVE-2025-65657MEDIUM6.5
  • PHPPHP
  • feehi/cms
NoNoDec 02, 2025
CVE-2025-65186MEDIUM6.1
  • PHPPHP
  • getgrav/grav
NoNoDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management