{"answers":{"affected":"2 open source packages ship an affected version, including simplesamlphp/simplesamlphp-module-casserver.","exploited":"There is no known exploitation of CVE-2026-46491 in the wild and no public exploit code.","fix":"Upgrade simplesamlphp/simplesamlphp-module-casserver to 7.0.3 or later.","what":"CVE-2026-46491 is a high-severity path traversal vulnerability in simplesamlphp-module-casserver, published on 9 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-46491 and fix it if it is affected.\n\nWhat it is: CVE-2026-46491 is a high-severity path traversal vulnerability in simplesamlphp-module-casserver, published on 9 Jun 2026. 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-2026-46491 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- simplesamlphp/simplesamlphp-module-casserver (Packagist): affected all versions; fixed in 7.0.3\n- simplesamlphp/simplesamlphp-module-casserver (Packagist): affected all versions; fixed in 7.0.3\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-2026-46491/ (Markdown: https://insights.sbomify.com/CVE-2026-46491/index.md)","id":"CVE-2026-46491","markdown":"https://insights.sbomify.com/CVE-2026-46491/index.md","name":"CVE-2026-46491","record":{"aliases":["GHSA-jrrg-99xh-5j2q"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":true,"product_category":"SimpleSAMLphp CAS module","requires_auth":"none","summary":"Remote attackers can read and delete arbitrary files via path traversal in the CAS ticket store, requiring FileSystemTicketStore configuration.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.6,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"SimpleSAMLphp-casserver is a CAS 1.0 and 2.0 compliant CAS server in the form of a SimpleSAMLphp module. Prior to version 7.0.3, simplesamlphp-module-casserver builds file paths for the file-based CAS ticket store by directly concatenating the configured ticket directory with an attacker-controlled ticket identifier. Public CAS validation/proxy endpoints pass attacker-controlled ticket / pgt query parameters into this store. In deployments using FileSystemTicketStore, a remote attacker can use path traversal sequences such as ../target.serialized to make the CAS server read and unserialize files outside the ticket directory. In the CAS 1.0 validation flow, the same attacker-selected path is also passed to deleteTicket() immediately after getTicket() returns, which can delete the target file when it is readable by the PHP process, deletable under the PHP process filesystem permissions, and unserializes to a value compatible with the ?array return type. This issue has been patched in version 7.0.3.","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":"SimpleSAMLphp casserver FileSystemTicketStore path traversal allows out-of-ticket-directory read/unserialize and conditional deletion","id":"CVE-2026-46491","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"md-fileserver: Stored/Reflected XSS when viewing Markdown (raw HTML allowed)","id":"CVE-2026-46492"},"packages":[{"ecosystem":"Packagist","fixed":["7.0.3"],"introduced":["0"],"last_affected":[],"package":"simplesamlphp/simplesamlphp-module-casserver","purl":null,"source":"GHSA-jrrg-99xh-5j2q"},{"ecosystem":"Packagist","fixed":["7.0.3"],"introduced":["0"],"last_affected":[],"package":"simplesamlphp/simplesamlphp-module-casserver","purl":"pkg:composer/simplesamlphp/simplesamlphp-module-casserver","source":"GHSA-jrrg-99xh-5j2q"}],"prev":{"headline":"samlify: XML Injection in AttributeValue Allows Privilege Escalation in Signed SAML Assertions","id":"CVE-2026-46490"},"products":["simplesamlphp-module-casserver"],"published":"2026-06-09","related":[],"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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-06-10","vendors":["simplesamlphp"]},"summary":"Remote attackers can read and delete arbitrary files via path traversal in the CAS ticket store, requiring FileSystemTicketStore configuration.","url":"https://insights.sbomify.com/CVE-2026-46491/"}