Skip to content

Commit cb3e5b4

Browse files
authored
Fix xmlseclibs vulnerability CVE-2025-66475
Added error handling for C14N method in xmlseclibs.php Fix CVE-2025-66475 See GHSA-c4cc-x928-vjw9
1 parent b4a2533 commit cb3e5b4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

extlib/xmlseclibs/xmlseclibs.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,11 @@ private function canonicalizeData($node, $canonicalmethod, $arXPath=null, $prefi
673673
}
674674
}
675675

676-
return $node->C14N($exclusive, $withComments, $arXPath, $prefixList);
676+
$ret = $node->C14N($exclusive, $withComments, $arXPath, $prefixList);
677+
if ($ret === false) {
678+
throw new Exception("Canonicalization failed");
679+
}
680+
return $ret;
677681
}
678682

679683
public function canonicalizeSignedInfo() {

0 commit comments

Comments
 (0)