Skip to content
Heist/ feed
Back to feed
Medium

Validation of SignedInfo

Type: advisorySources: OSV

xml-security is a library that implements XML signatures and encryption. Validation of an XML signature requires verification that the hash value of the related XML-document matches a specific DigestValue-value, but also that the cryptographic signature on the SignedInfo-tree (the one that contains the DigestValue) verifies and matches a trusted public key. If an attacker somehow (i.e. by exploiting a bug in PHP's canonicalization function) manages to manipulate the canonicalized version's DigestValue, it would be possible to forge the signature. This issue has been patched in version 1.6.12 and 5.0.0-alpha.13.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-49087
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 06:32 UTC · Revision 1

Source evidence

Validation of SignedInfo

core-osv · Original source

Published 30 Nov 2023, 05:20 UTC

xml-security is a library that implements XML signatures and encryption. Validation of an XML signature requires verification that the hash value of the related XML-document matches a specific DigestValue-value, but also that the cryptographic signature on the SignedInfo-tree (the one that contains the DigestValue) verifies and matches a trusted public key. If an attacker somehow (i.e. by exploiting a bug in PHP's canonicalization function) manages to manipulate the canonicalized version's DigestValue, it would be possible to forge the signature. This issue has been patched in version 1.6.12 and 5.0.0-alpha.13.

osv:CVE-2023-49087
Complete source record
{
  "id": "920063664a4673540f1b26dfd8094a46211cd069abb27c0e67cf5329dabfc7ac",
  "url": "https://osv.dev/vulnerability/CVE-2023-49087",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Validation of SignedInfo",
    "summary": "xml-security is a library that implements XML signatures and encryption. Validation of an XML signature requires verification that the hash value of the related XML-document matches a specific DigestValue-value, but also that the cryptographic signature on the SignedInfo-tree (the one that contains the DigestValue) verifies and matches a trusted public key. If an attacker somehow (i.e. by exploiting a bug in PHP's canonicalization function) manages to manipulate the canonicalized version's DigestValue, it would be possible to forge the signature. This issue has been patched in version 1.6.12 and 5.0.0-alpha.13.",
    "evidence": "osv:CVE-2023-49087",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2023-49087",
      "aliases": [
        "CVE-2023-49087",
        "GHSA-ww7x-3gxh-qm6r"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/simplesamlphp/xml-security",
              "type": "GIT",
              "events": [
                {
                  "introduced": "f9029fcbcca731136dab58c687e3a55b68c962ce"
                },
                {
                  "fixed": "f509e3083dd7870cce5880c804b5122317287581"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "= 1.6.11"
                      },
                      {
                        "last_affected": "= 1.6.11"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "fixed": "f509e3083dd7870cce5880c804b5122317287581"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.6.11",
            "= 1.6.11",
            "v1.6.11"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-49087.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:26.457279962Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/49xxx/CVE-2023-49087.json",
        "https://github.com/simplesamlphp/xml-security/security/advisories/GHSA-ww7x-3gxh-qm6r",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-49087",
        "https://github.com/simplesamlphp/xml-security/commit/f509e3083dd7870cce5880c804b5122317287581"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-345"
        ],
        "cna_assigner": "GitHub_M",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "= 5.0.0-alpha.12"
                  },
                  {
                    "last_affected": "= 5.0.0-alpha.12"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/49xxx/CVE-2023-49087.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-49087",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 493081,
  "published_at": "2023-11-30T05:20:28.298+00:00"
}