{"id":"DEBIAN-CVE-2026-57236","details":"Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.4, calling Document#encoding= with an invalid encoding (e.g., a non-string, or a string containing a null byte) raises an exception, but only after freeing the document's current encoding string without replacing it. The document is left referencing freed memory, so the next call to Document#encoding reads invalid memory, which can cause a segfault or leak freed bytes into a Ruby String. Affects the CRuby (libxml2) implementation only; JRuby is not affected. This vulnerability is fixed in 1.19.4.","modified":"2026-09-01T16:06:52.051311456Z","published":"2026-06-25T15:16:40.627Z","upstream":["CVE-2026-57236"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-57236"}],"affected":[{"package":{"name":"ruby-nokogiri","ecosystem":"Debian:12","purl":"pkg:deb/debian/ruby-nokogiri?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.13.10+dfsg-2","1.14.2+dfsg-1","1.14.3+dfsg-1","1.14.3+dfsg-2","1.15.4+dfsg-1","1.16.0+dfsg-1","1.16.0+dfsg-2","1.16.2+dfsg-1","1.16.4+dfsg-1","1.17.2+dfsg-1~exp1","1.18.10+dfsg-1","1.18.10+dfsg-2","1.18.10+dfsg-3","1.18.2+dfsg-1","1.19.1+dfsg-1","1.19.3+dfsg-1","1.19.4+dfsg-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2026-57236.json"}},{"package":{"name":"ruby-nokogiri","ecosystem":"Debian:13","purl":"pkg:deb/debian/ruby-nokogiri?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.18.10+dfsg-1","1.18.10+dfsg-2","1.18.10+dfsg-3","1.18.2+dfsg-1","1.19.1+dfsg-1","1.19.3+dfsg-1","1.19.4+dfsg-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2026-57236.json"}},{"package":{"name":"ruby-nokogiri","ecosystem":"Debian:14","purl":"pkg:deb/debian/ruby-nokogiri?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.4+dfsg-1"}]}],"versions":["1.18.10+dfsg-1","1.18.10+dfsg-2","1.18.10+dfsg-3","1.18.2+dfsg-1","1.19.1+dfsg-1","1.19.3+dfsg-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2026-57236.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H"}]}