{"answers":{"affected":"2 open source packages ship an affected version, including stringio.","exploited":"There is no known exploitation of CVE-2024-27280 in the wild and no public exploit code.","fix":"Upgrade stringio to 3.0.1.1 or later.","what":"CVE-2024-27280 is a critical vulnerability in n/a, published on 8 May 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-27280 and fix it if it is affected.\n\nWhat it is: CVE-2024-27280 is a critical vulnerability in n/a, published on 8 May 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-27280 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- stringio (RubyGems): affected all versions; fixed in 3.0.1.1\n- stringio (RubyGems): affected all versions; fixed in 3.0.1.1\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-27280/ (Markdown: https://insights.sbomify.com/CVE-2024-27280/index.md)","id":"CVE-2024-27280","markdown":"https://insights.sbomify.com/CVE-2024-27280/index.md","name":"CVE-2024-27280","record":{"aliases":["ALPINE-CVE-2024-27280","BELL-CVE-2024-27280","CLEANSTART-2026-JV37320","CLSA-2026-1782469374","DEBIAN-CVE-2024-27280","GHSA-v5h6-c2hv-hv3r","ROOT-APP-RUBY-CVE-2024-27280","UBUNTU-CVE-2024-27280","USN-6853-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Ruby StringIO library","requires_auth":"none","summary":"Attackers can read past the end of a string in Ruby's StringIO library, potentially exposing sensitive memory values.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-120","name":"Buffer Copy without Checking Size of Input"}],"description":"A buffer-overread issue was discovered in StringIO 3.0.1, as distributed in Ruby 3.0.x through 3.0.6 and 3.1.x through 3.1.4. The ungetbyte and ungetc methods on a StringIO can read past the end of a string, and a subsequent call to StringIO.gets may return the memory value. 3.0.3 is the main fixed version; however, for Ruby 3.0 users, a fixed version is stringio 3.0.1.1, and for Ruby 3.1 users, a fixed version is stringio 3.0.1.2.","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":"StringIO buffer overread vulnerability","id":"CVE-2024-27280","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"information_disclosure","year":"2024"},"n_packages":2,"n_references":2,"next":{"headline":"RDoc RCE vulnerability with .rdoc_options","id":"CVE-2024-27281"},"packages":[{"ecosystem":"RubyGems","fixed":["3.0.1.1"],"introduced":["0"],"last_affected":[],"package":"stringio","purl":null,"source":"GHSA-v5h6-c2hv-hv3r"},{"ecosystem":"RubyGems","fixed":["3.0.1.1"],"introduced":["0"],"last_affected":[],"package":"stringio","purl":"pkg:gem/stringio","source":"GHSA-v5h6-c2hv-hv3r"}],"prev":{"headline":"Path traversal in a-blog cms","id":"CVE-2024-27279"},"products":["n/a"],"published":"2024-05-08","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":"total"},"state":"PUBLISHED","updated":"2025-11-04","vendors":["n/a"]},"summary":"Attackers can read past the end of a string in Ruby's StringIO library, potentially exposing sensitive memory values.","url":"https://insights.sbomify.com/CVE-2024-27280/"}