{"answers":{"affected":"3 open source packages ship an affected version, including github.com/RobotsAndPencils/go-saml. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-48703 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2023-48703 yet. Limit exposure of the affected software until one is available.","what":"CVE-2023-48703 is a high-severity authentication bypass vulnerability in RobotsAndPencils go-saml, published on 6 Mar 2024. 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-48703 and fix it if it is affected.\n\nWhat it is: CVE-2023-48703 is a high-severity authentication bypass vulnerability in RobotsAndPencils go-saml, published on 6 Mar 2024. 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-48703 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/RobotsAndPencils/go-saml (Go): affected all versions; no fix listed\n- github.com/RobotsAndPencils/go-saml (Go): affected all versions up to 0.0.0-20230606195814-29020529affc; no fix listed\n- github.com/RobotsAndPencils/go-saml (Go): affected all versions up to 0.0.0-20230606195814-29020529affc; no fix listed\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-48703/ (Markdown: https://insights.sbomify.com/CVE-2023-48703/index.md)","id":"CVE-2023-48703","markdown":"https://insights.sbomify.com/CVE-2023-48703/index.md","name":"CVE-2023-48703","record":{"aliases":["GHSA-6h53-q94j-348w","GO-2024-3048"],"analysis":{"component_type":"library","fix_type":"workaround","impacts":["account_takeover","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Go SAML library","requires_auth":"none","summary":"Attackers can bypass SAML authentication by embedding their own public key in assertions, allowing unauthorized access to applications using this Go library.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"go-saml","vendor":"robotsandpencils"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"}],"description":"RobotsAndPencils go-saml, a SAML client library written in Go, contains an authentication bypass vulnerability in all known versions. This is due to how the `xmlsec1` command line tool is called internally to verify the signature of SAML assertions. When `xmlsec1` is used without defining the enabled key data, the origin of the public key for the signature verification is, unfortunately, not restricted. That means an attacker can sign the SAML assertions themselves and provide the required public key (e.g. an RSA key) directly embedded in the SAML token. Projects still using RobotsAndPencils/go-saml should move to another SAML library or alternatively remove support for SAML from their projects. The vulnerability can likely temporarily be fixed by forking the go-saml project and adding the command line argument `--enabled-key-data` and specifying a value such as `x509` or `raw-x509-cert` when calling the `xmlsec1` binary in the verify function. Please note that this workaround must be carefully tested before it can be used.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"SAML authentication bypass vulnerability in RobotsAndPencils/go-saml","id":"CVE-2023-48703","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"auth_bypass","year":"2023"},"n_packages":3,"n_references":1,"next":{"headline":"Unauthenticated heap buffer overflow in Gorrila codec decompression","id":"CVE-2023-48704"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/RobotsAndPencils/go-saml","purl":"pkg:golang/github.com/RobotsAndPencils/go-saml","source":"GO-2024-3048"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["0.0.0-20230606195814-29020529affc"],"package":"github.com/RobotsAndPencils/go-saml","purl":null,"source":"GHSA-6h53-q94j-348w"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["0.0.0-20230606195814-29020529affc"],"package":"github.com/RobotsAndPencils/go-saml","purl":"pkg:golang/github.com/RobotsAndPencils/go-saml","source":"GHSA-6h53-q94j-348w"}],"prev":{"headline":"Jellyfin Possible Remote Code Execution via custom FFmpeg binary","id":"CVE-2023-48702"},"products":["go-saml"],"published":"2024-03-06","related":[{"cvss_score":5.3,"headline":"Weak hash (SHA-1) in github.com/RobotsAndPencils/go-saml","id":"CVE-2020-36563","kev_date_added":null,"published":"2022-12-27"}],"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":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"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":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["RobotsAndPencils"]},"summary":"Attackers can bypass SAML authentication by embedding their own public key in assertions, allowing unauthorized access to applications using this Go library.","url":"https://insights.sbomify.com/CVE-2023-48703/"}