{"id":"CVE-2026-116590","summary":"snappy-java: JVM crash from unchecked ranges in Snappy.arrayCopy and SnappyOutputStream.rawWrite","details":"snappy-java is a Java port of the snappy, a fast C++ compresser/decompresser developed by Google. Prior to 1.1.10.9, Snappy.arrayCopy(Object src, int offset, int byteLength, Object dest, int destOffset) passes caller-supplied ranges to native memcpy without validating either array, allowing negative or oversized byteLength and offset values to read or write outside array bounds and crash the JVM. SnappyOutputStream.rawWrite and SnappyInputStream.rawRead, including their typed-array write and read methods, pass caller-controlled ranges through this primitive, and typed-array byte-size calculations can overflow int. This issue is fixed in version 1.1.10.9.","aliases":["GHSA-xqrx-qh46-34m7"],"modified":"2026-11-01T07:03:36.330351627Z","published":"2026-10-26T21:48:15.468Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-129","CWE-787"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/116xxx/CVE-2026-116590.json"},"references":[{"type":"WEB","url":"https://github.com/xerial/snappy-java/releases/tag/v1.1.10.9"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/116xxx/CVE-2026-116590.json"},{"type":"ADVISORY","url":"https://github.com/xerial/snappy-java/security/advisories/GHSA-xqrx-qh46-34m7"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116590"},{"type":"FIX","url":"https://github.com/xerial/snappy-java/commit/2d7ca71c087a98f1219fb2d51909f3891c3ce77b"},{"type":"FIX","url":"https://github.com/xerial/snappy-java/pull/741"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/xerial/snappy-java","events":[{"introduced":"0"},{"fixed":"eb3cfbdbc449964f7b969f3bd1085fb93f64634a"},{"fixed":"2d7ca71c087a98f1219fb2d51909f3891c3ce77b"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"0"},{"fixed":"1.1.10.9"}]},{"range":[{"fixed":"2d7ca71c087a98f1219fb2d51909f3891c3ce77b"}],"source":"REFERENCES_COMMIT"},{"original_tag":"v1.1.10.9","range":[{"fixed":"eb3cfbdbc449964f7b969f3bd1085fb93f64634a"}],"source":"REFERENCES_TAG"}]}}],"versions":["v1.1.10.8","v1.1.10.7","v1.1.10.6","v1.1.10.5","v1.1.10.4","v1.1.10.3","v1.1.10.2","v1.1.10.1","v1.1.10.0","v1.1.9.1","v1.1.9.0","1.1.8.4","1.1.8.3","1.1.8.2","1.1.8.1","1.1.8","1.1.7.8","1.1.7.7","1.1.7.6","1.1.7.5","1.1.7.4","1.1.7.3","1.1.7.2","1.1.7.1","1.1.7","1.1.4","1.1.4-M3","1.1.4-M2","1.1.4-M1","1.1.3-M2","1.1.3-M1","1.1.2.5","1.1.0","1.0.5-M4","1.1.0-M3","1.1.0-M1","snappy-java-1.0.4.1","snappy-java-1.0.4","snappy-java-1.0.3.3","snappy-java-1.0.3.2","snappy-java-1.0.3.1","snappy-java-1.0.3","snappy-java-1.0.3-rc4","snappy-java-1.0.3-rc3","snappy-java-1.0.3-rc2","snappy-java-1.0.3-rc1","snappy-java-1.0.1-rc4","snappy-java-1.0.1-rc3","snappy-java-1.0.1-rc2","snappy-java-1.0.1-rc1"],"database_specific":{"vanir_signatures":[{"deprecated":false,"digest":{"function_hash":"77200651220859267873937334299384855877","length":133},"id":"CVE-2026-116590-0e617351","signature_type":"Function","signature_version":"v1","source":"https://github.com/xerial/snappy-java/commit/2d7ca71c087a98f1219fb2d51909f3891c3ce77b","target":{"function":"read","file":"src/main/java/org/xerial/snappy/SnappyInputStream.java"}},{"target":{"function":"write","file":"src/main/java/org/xerial/snappy/SnappyOutputStream.java"},"deprecated":false,"digest":{"length":126,"function_hash":"339272291328274088366353478498324132517"},"id":"CVE-2026-116590-13abdf06","signature_type":"Function","signature_version":"v1","source":"https://github.com/xerial/snappy-java/commit/2d7ca71c087a98f1219fb2d51909f3891c3ce77b"},{"digest":{"function_hash":"254463948239452392645787555507195156883","length":218},"id":"CVE-2026-116590-1ba4e3d4","signature_type":"Function","signature_version":"v1","source":"https://github.com/xerial/snappy-java/commit/2d7ca71c087a98f1219fb2d51909f3891c3ce77b","target":{"file":"src/main/java/org/xerial/snappy/Snappy.java","function":"requiredCompressedLength"},"deprecated":false},{"signature_version":"v1","source":"https://github.com/xerial/snappy-java/commit/2d7ca71c087a98f1219fb2d51909f3891c3ce77b","target":{"function":"write","file":"src/main/java/org/xerial/snappy/SnappyOutputStream.java"},"deprecated":false,"digest":{"function_hash":"339272291328274088366353478498324132517","length":126},"id":"CVE-2026-116590-2750ae32","signature_type":"Function"},{"digest":{"function_hash":"203939334425790652583365399072465571621","length":126},"id":"CVE-2026-116590-3b8dbb19","signature_type":"Function","signature_version":"v1","source":"https://github.com/xerial/snappy-java/commit/2d7ca71c087a98f1219fb2d51909f3891c3ce77b","target":{"file":"src/main/java/org/xerial/snappy/SnappyOutputStream.java","function":"write"},"deprecated":false},{"target":{"file":"src/main/java/org/xerial/snappy/SnappyInputStream.java","function":"read"},"deprecated":false,"digest":{"length":133,"function_hash":"23759749737499247706263482255835728085"},"id":"CVE-2026-116590-40f729f8","signature_type":"Function","signature_version":"v1","source":"https://github.com/xerial/snappy-java/commit/2d7ca71c087a98f1219fb2d51909f3891c3ce77b"},{"id":"CVE-2026-116590-41e39c9b","signature_type":"Line","signature_version":"v1","source":"https://github.com/xerial/snappy-java/commit/2d7ca71c087a98f1219fb2d51909f3891c3ce77b","target":{"file":"src/main/java/org/xerial/snappy/SnappyOutputStream.java"},"deprecated":false,"digest":{"line_hashes":["60349957946136196143916606198661660763","196402742537465668633550089247787842663","243799538718363813145542389968664683099","178417947267035233609864906210886876063","144772141830224521860668576829379414307","32427537965175251877606065895856369296","120846709032632754573861515427034769353","66617251814023866399839028192907935332","289776765630617816579451517257893697384","213511563334484149158394297916032217710","237559578818424178972521918078730300656","108714670991783163352612204798800927881","68026348959341490715399276884321944540","300438175532314276840290023860719110715","20486528727301298025425066988572704163","267627173570319376935015151569189927655","41375188360293226772538925254370921291","220413510775350490982468668489639032569","20486528727301298025425066988572704163","206102695347285060844417618018899061822","145718726438304229502137700730524987172","26540441457705818685637412418873640635","203376457783061389981159377438810546399","213983655077733653420834075321599126885"],"threshold":0.9}},{"signature_version":"v1","source":"https://github.com/xerial/snappy-java/commit/2d7ca71c087a98f1219fb2d51909f3891c3ce77b","target":{"file":"src/main/java/org/xerial/snappy/Snappy.java"},"deprecated":false,"digest":{"line_hashes":["288809598016127964744272494327568237227","130864298495184116397390304777953916432","185670989703578400283529392090280755760","222413761947459669494320161596255910468","300291824081804712959516767645575848912","83481574918294735740382013681959304350","268646405342861687719925930428518574451","313043243376007027548505052999321065004","234876231002082342747425978939248482025","287535710633673085572051200184516221625","193508322558631260653472466032374572397","135692733594716685099842465873185274587","321862407707416656558904081943366139460","58902443735080114384909709212436289193","133043764832836072661877148996307845981","197802613003232814610688729303699536316","121200928677322125070556017951008581348","39025111884991372221383101261352575106","152080626255647708210500292140224473524","262020433544797342624877653506341682871","64388007942421348401266235487290107540","243120606833552190966954029978546985934","9225498282248817200946399652819036855","124752733256581011004576769646821140490","113259620784359258022570354269854496497","251836910409625139785486752638539543181","256547256009407985008703978534528654123","163196867530013706192613506826086417478","336303182765634454460850874986372607895","48716047702745681730334306895928831398","134831501689581267996942656159527251034","84240943336053733982032463786896921571","42919425002765793490834997340956106119","184231930268337047401145747370707986315","126758842813116343595781503610216820695","134584958228247215175217102419697271822"],"threshold":0.9},"id":"CVE-2026-116590-4793c0f1","signature_type":"Line"},{"signature_type":"Function","signature_version":"v1","source":"https://github.com/xerial/snappy-java/commit/2d7ca71c087a98f1219fb2d51909f3891c3ce77b","target":{"file":"src/main/java/org/xerial/snappy/SnappyOutputStream.java","function":"write"},"deprecated":false,"digest":{"function_hash":"203939334425790652583365399072465571621","length":126},"id":"CVE-2026-116590-60763232"},{"digest":{"threshold":0.9,"line_hashes":["223728416982091665240028493610305802522","197186740077303536183491665997032355995","203716825715613669513349435900171652924","198882825226289166735282076233551126166","179132197677787671893235492744372136185","271468295726579033667204253686096552883","7445315689474921779214152379344019992","176236090895829005238848488684559391826","64150412305292418807633923247484899958","152743965177696981826805648628102048565","7445315689474921779214152379344019992","209990352707492176321499747722491151761","7896257158770633472227919530268065694","69492906346525427543160146019639856345","263442214118057343147113778862365014524","271982172398206886990000438303173500172","185110743616018508518825150315644270890","70147058905797415910606934542603469093","263442214118057343147113778862365014524","233123895270193400621972573653593119216","45821781775867317488235749777602003206","159162734666473476728917371047420113286","194066661388202103556541971144210311656","256168468280634349028340879000864837121"]},"id":"CVE-2026-116590-61061cd7","signature_type":"Line","signature_version":"v1","source":"https://github.com/xerial/snappy-java/commit/2d7ca71c087a98f1219fb2d51909f3891c3ce77b","target":{"file":"src/main/java/org/xerial/snappy/SnappyInputStream.java"},"deprecated":false},{"deprecated":false,"digest":{"function_hash":"77200651220859267873937334299384855877","length":133},"id":"CVE-2026-116590-6862653a","signature_type":"Function","signature_version":"v1","source":"https://github.com/xerial/snappy-java/commit/2d7ca71c087a98f1219fb2d51909f3891c3ce77b","target":{"file":"src/main/java/org/xerial/snappy/SnappyInputStream.java","function":"read"}},{"target":{"file":"src/main/java/org/xerial/snappy/SnappyInputStream.java","function":"read"},"deprecated":false,"digest":{"length":133,"function_hash":"258233912756839619236193813997131160892"},"id":"CVE-2026-116590-9a1e6aa8","signature_type":"Function","signature_version":"v1","source":"https://github.com/xerial/snappy-java/commit/2d7ca71c087a98f1219fb2d51909f3891c3ce77b"},{"signature_version":"v1","source":"https://github.com/xerial/snappy-java/commit/2d7ca71c087a98f1219fb2d51909f3891c3ce77b","target":{"function":"write","file":"src/main/java/org/xerial/snappy/SnappyOutputStream.java"},"deprecated":false,"digest":{"function_hash":"45397991239331374864051297284385334232","length":444},"id":"CVE-2026-116590-a633bc99","signature_type":"Function"},{"digest":{"length":69,"function_hash":"235469782061616314507709461308531540575"},"id":"CVE-2026-116590-bbaf2d50","signature_type":"Function","signature_version":"v1","source":"https://github.com/xerial/snappy-java/commit/2d7ca71c087a98f1219fb2d51909f3891c3ce77b","target":{"file":"src/main/java/org/xerial/snappy/Snappy.java","function":"maxCompressedLength"},"deprecated":false},{"deprecated":false,"digest":{"function_hash":"233096344057543523384371383786313690071","length":126},"id":"CVE-2026-116590-cf7dad28","signature_type":"Function","signature_version":"v1","source":"https://github.com/xerial/snappy-java/commit/2d7ca71c087a98f1219fb2d51909f3891c3ce77b","target":{"file":"src/main/java/org/xerial/snappy/SnappyOutputStream.java","function":"write"}},{"id":"CVE-2026-116590-d90f5975","signature_type":"Line","signature_version":"v1","source":"https://github.com/xerial/snappy-java/commit/2d7ca71c087a98f1219fb2d51909f3891c3ce77b","target":{"file":"src/test/java/org/xerial/snappy/SnappyBoundsCheckTest.java"},"deprecated":false,"digest":{"line_hashes":["71894072393188588696079728513654443202","106019597651063417651737148874596322191"],"threshold":0.9}},{"deprecated":false,"digest":{"function_hash":"95085415384889155369654835884634555331","length":169},"id":"CVE-2026-116590-e6b8b40b","signature_type":"Function","signature_version":"v1","source":"https://github.com/xerial/snappy-java/commit/2d7ca71c087a98f1219fb2d51909f3891c3ce77b","target":{"file":"src/main/java/org/xerial/snappy/Snappy.java","function":"arrayCopy"}},{"id":"CVE-2026-116590-e90576f8","signature_type":"Function","signature_version":"v1","source":"https://github.com/xerial/snappy-java/commit/2d7ca71c087a98f1219fb2d51909f3891c3ce77b","target":{"file":"src/main/java/org/xerial/snappy/SnappyInputStream.java","function":"read"},"deprecated":false,"digest":{"length":133,"function_hash":"23759749737499247706263482255835728085"}},{"source":"https://github.com/xerial/snappy-java/commit/2d7ca71c087a98f1219fb2d51909f3891c3ce77b","target":{"file":"src/main/java/org/xerial/snappy/SnappyInputStream.java","function":"read"},"deprecated":false,"digest":{"function_hash":"274563812430542840776186905209285378234","length":477},"id":"CVE-2026-116590-ea8f32cf","signature_type":"Function","signature_version":"v1"}],"vanir_signatures_modified":"2026-11-01T07:03:36Z","source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-116590.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}