{"answers":{"affected":"4 open source packages ship an affected version, including simplesamlphp/xml-security and simplesamlphp/saml2. It affects 2 products.","exploited":"There is no known exploitation of CVE-2023-49087 in the wild and no public exploit code.","fix":"Upgrade simplesamlphp/xml-security to 1.6.12 or later.","what":"CVE-2023-49087 is a medium-severity vulnerability in simplesamlphp xml-security, published on 30 Nov 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-49087 and fix it if it is affected.\n\nWhat it is: CVE-2023-49087 is a medium-severity vulnerability in simplesamlphp xml-security, published on 30 Nov 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-49087 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- simplesamlphp/xml-security (Packagist): affected from 1.6.11; fixed in 1.6.12\n- simplesamlphp/xml-security (Packagist): affected from 1.6.11; fixed in 1.6.12\n- simplesamlphp/saml2 (Packagist): affected from 5.0.0-alpha.12; fixed in 5.0.0-alpha.13\n- simplesamlphp/saml2 (Packagist): affected from 5.0.0-alpha.12; fixed in 5.0.0-alpha.13\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-49087/ (Markdown: https://insights.sbomify.com/CVE-2023-49087/index.md)","id":"CVE-2023-49087","markdown":"https://insights.sbomify.com/CVE-2023-49087/index.md","name":"CVE-2023-49087","record":{"aliases":["GHSA-ww7x-3gxh-qm6r"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"XML security library","requires_auth":"none","summary":"Attackers can forge XML signatures by exploiting canonicalization bugs, bypassing integrity checks in the xml-security library.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"saml2","vendor":"simplesamlphp"},{"product":"xml-security","vendor":"simplesamlphp"}],"cvss":{"score":6.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-345","name":"Insufficient Verification of Data Authenticity"}],"description":"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.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Validation of SignedInfo","id":"CVE-2023-49087","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"security_feature_bypass","year":"2023"},"n_packages":4,"n_references":2,"next":{"headline":"Cacti has incomplete fix for CVE-2023-39515","id":"CVE-2023-49088"},"packages":[{"ecosystem":"Packagist","fixed":["5.0.0-alpha.13"],"introduced":["5.0.0-alpha.12"],"last_affected":[],"package":"simplesamlphp/saml2","purl":null,"source":"GHSA-ww7x-3gxh-qm6r"},{"ecosystem":"Packagist","fixed":["5.0.0-alpha.13"],"introduced":["5.0.0-alpha.12"],"last_affected":[],"package":"simplesamlphp/saml2","purl":"pkg:composer/simplesamlphp/saml2","source":"GHSA-ww7x-3gxh-qm6r"},{"ecosystem":"Packagist","fixed":["1.6.12"],"introduced":["1.6.11"],"last_affected":[],"package":"simplesamlphp/xml-security","purl":null,"source":"GHSA-ww7x-3gxh-qm6r"},{"ecosystem":"Packagist","fixed":["1.6.12"],"introduced":["1.6.11"],"last_affected":[],"package":"simplesamlphp/xml-security","purl":"pkg:composer/simplesamlphp/xml-security","source":"GHSA-ww7x-3gxh-qm6r"}],"prev":{"headline":"Cacti is vulnerable to cross-Site scripting (XSS) DOM","id":"CVE-2023-49086"},"products":["xml-security"],"published":"2023-11-30","related":[{"cvss_score":9.1,"headline":"SimpleSAMLphp SAML2 spoof SAML responses","id":"CVE-2016-9814","kev_date_added":null,"published":"2017-02-16"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-02","vendors":["simplesamlphp"]},"summary":"Attackers can forge XML signatures by exploiting canonicalization bugs, bypassing integrity checks in the xml-security library.","url":"https://insights.sbomify.com/CVE-2023-49087/"}