{"id":"CVE-2026-64678","summary":"Nitrite: Unfiltered Java Deserialization in Legacy v1 Database Migration Path","details":"NOsql Object (NO2 a.k.a Nitrite) database is an open source nosql embedded document store. Prior to version 4.4.1, when Nitrite opens a database file, MVStoreUtils.openOrCreate() automatically checks for a legacy v1-format store and, on detecting one (or hitting a compatibility error while opening), triggers an automatic migration path. This path deserializes stored values using NitriteDataType.deserialize(byte[]), which passes the raw bytes directly to java.io.ObjectInputStream.readObject() via a custom NitriteObjectInputStream subclass. That subclass overrides only readClassDescriptor() — solely to remap a handful of known legacy class names to their current equivalents — and implements no class allowlist, blocklist, or ObjectInputFilter (JEP 290). Any Serializable class reachable on the embedding application's classpath can therefore be instantiated via readObject(), with readObject()/readExternal()/readResolve() callbacks invoked unconditionally. If a suitable gadget class (e.g. from commons-collections or similar) happens to be present on the classpath, this is a precondition for remote code execution. This issue has been patched in version 4.4.1.","aliases":["GHSA-9297-g93h-86gg"],"modified":"2026-11-18T07:04:35.188853058Z","published":"2026-11-11T04:07:12.719Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64678.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-502"]},"references":[{"type":"WEB","url":"https://github.com/nitrite/nitrite-java/releases/tag/v4.4.1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64678.json"},{"type":"ADVISORY","url":"https://github.com/nitrite/nitrite-java/security/advisories/GHSA-9297-g93h-86gg"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64678"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/nitrite/nitrite-java","events":[{"introduced":"0"},{"fixed":"3411086af554a9d7455e4f4d24dae07579213dc4"}],"database_specific":{"extracted_events":[{"strategy":"StringRangeExpression","range":[{"introduced":"0"},{"fixed":"4.4.1"}],"source":"AFFECTED_FIELD"},{"range":[{"fixed":"3411086af554a9d7455e4f4d24dae07579213dc4"}],"source":"REFERENCES_TAG","original_tag":"v4.4.1"},{"range":[{"introduced":"0"},{"fixed":"4.4.1"}],"source":"DESCRIPTION"}]}}],"versions":["v4.4.0","v3.4.2","v3.4.1","v3.4.0","v3.3.0","v3.2.0","v3.1.0","v3.0.2","v3.0.1","v3.0.0","v2.1.1","v2.1.0","v1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64678.json","vanir_signatures":[{"deprecated":false,"digest":{"line_hashes":["100736578187683302010385288941950026915","339340518994600420036293237363928946608","87504051476347542199926612242375883647","292790337819618261797381554511250648567","75624114627727420692690727063937643755","103658845919655988154187797397128333213","73823218817761173757241130704872074337","93611554572043294645939169945000976491","253496185645735021259020042056218237013","243367454195855970110849773467955182160"],"threshold":0.9},"id":"CVE-2026-64678-4d614876","signature_type":"Line","signature_version":"v1","source":"https://github.com/nitrite/nitrite-java/commit/3411086af554a9d7455e4f4d24dae07579213dc4","target":{"file":"nitrite/src/main/java/org/dizitart/no2/index/NitriteIndex.java"}},{"signature_type":"Function","signature_version":"v1","source":"https://github.com/nitrite/nitrite-java/commit/3411086af554a9d7455e4f4d24dae07579213dc4","target":{"file":"nitrite/src/main/java/org/dizitart/no2/index/TextIndex.java","function":"addIndexElement"},"deprecated":false,"digest":{"function_hash":"267125076346944525373770503635407141352","length":294},"id":"CVE-2026-64678-ed9ac0de"},{"source":"https://github.com/nitrite/nitrite-java/commit/3411086af554a9d7455e4f4d24dae07579213dc4","target":{"file":"nitrite/src/main/java/org/dizitart/no2/index/TextIndex.java"},"deprecated":false,"digest":{"line_hashes":["300158807844937084056812282675030282620","155543333622500016704577833824278716239","46559381821937518017095598887780507593","115302451222043494147311964082017110314","151934196224101818069128235725276310186","224794529975892432150923940062947530748","249720260426484970637706160418853517575","170699487017131207749138725633904240747","15489984749688036325704198674541291586","66788006155602230795212438586008109458","290654823150008802774246206572734629315","105900884695204148677586601380839326633","58561041589308643968628024214731752401","85013724178927365811459632178575177338","153546595669017628747799028444348336581","187769379632851800596174762044881860979"],"threshold":0.9},"id":"CVE-2026-64678-f2d66387","signature_type":"Line","signature_version":"v1"}],"vanir_signatures_modified":"2026-11-18T07:04:35Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}