{"answers":{"affected":"2 open source packages ship an affected version, including rack-cors. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-27456 in the wild and no public exploit code.","fix":"Upgrade rack-cors to 2.0.2 or later.","what":"CVE-2024-27456 is a critical vulnerability in n/a, published on 26 Feb 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-2024-27456 and fix it if it is affected.\n\nWhat it is: CVE-2024-27456 is a critical vulnerability in n/a, published on 26 Feb 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-2024-27456 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- rack-cors (RubyGems): affected from 2.0.1; fixed in 2.0.2\n- rack-cors (RubyGems): affected from 2.0.1; fixed in 2.0.2\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-2024-27456/ (Markdown: https://insights.sbomify.com/CVE-2024-27456/index.md)","id":"CVE-2024-27456","markdown":"https://insights.sbomify.com/CVE-2024-27456/index.md","name":"CVE-2024-27456","record":{"aliases":["GHSA-785g-282q-pwvx"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Ruby CORS middleware","requires_auth":"none","summary":"Local attackers can read source code files due to overly permissive file permissions in the rack-cors Ruby gem.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"rack_cors_middleware","vendor":"rylabs"}],"cvss":{"score":9.1,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"description":"rack-cors (aka Rack CORS Middleware) 2.0.1 has 0666 permissions for the .rb files.","ecosystems":["RubyGems"],"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":"Rack CORS Middleware has Insecure File Permissions","id":"CVE-2024-27456","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"information_disclosure","year":"2024"},"n_packages":2,"n_references":1,"next":{"headline":"Information disclosure in Intel(R) TDX Module firmware","id":"CVE-2024-27457"},"packages":[{"ecosystem":"RubyGems","fixed":["2.0.2"],"introduced":["2.0.1"],"last_affected":[],"package":"rack-cors","purl":null,"source":"GHSA-785g-282q-pwvx"},{"ecosystem":"RubyGems","fixed":["2.0.2"],"introduced":["2.0.1"],"last_affected":[],"package":"rack-cors","purl":"pkg:gem/rack-cors","source":"GHSA-785g-282q-pwvx"}],"prev":{"headline":"Information disclosure in n/a","id":"CVE-2024-27455"},"products":["n/a"],"published":"2024-02-26","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":"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":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["n/a"]},"summary":"Local attackers can read source code files due to overly permissive file permissions in the rack-cors Ruby gem.","url":"https://insights.sbomify.com/CVE-2024-27456/"}