{"id":"UBUNTU-CVE-2026-0685","details":"Server side template inject (SSTI) in the expression evaluation component in Genshi Template Engine version 0.7.9 allows a remote attacker to achieve remote code execution (RCE) via crafted template expressions.","modified":"2026-06-29T23:15:20.281893214Z","published":"2026-06-26T16:16:00Z","upstream":["CVE-2026-0685"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-0685"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-0685"},{"type":"REPORT","url":"https://github.com/edgewall/genshi/"},{"type":"REPORT","url":"https://www.kb.cert.org/vuls/id/244846"}],"affected":[{"package":{"name":"genshi","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/genshi?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7-5"],"ecosystem_specific":{"binaries":[{"binary_name":"python-genshi","binary_version":"0.7-5"},{"binary_name":"python3-genshi","binary_version":"0.7-5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-0685.json"}},{"package":{"name":"genshi","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/genshi?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7-6"],"ecosystem_specific":{"binaries":[{"binary_name":"python-genshi","binary_version":"0.7-6"},{"binary_version":"0.7-6","binary_name":"python3-genshi"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-0685.json"}},{"package":{"name":"genshi","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/genshi?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.1-5","0.7.3-0ubuntu1","0.7.3-0ubuntu2","0.7.3-0ubuntu3","0.7.3-0ubuntu3.1"],"ecosystem_specific":{"binaries":[{"binary_name":"python-genshi","binary_version":"0.7.3-0ubuntu3.1"},{"binary_name":"python3-genshi","binary_version":"0.7.3-0ubuntu3.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-0685.json"}},{"package":{"name":"genshi","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/genshi?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.5-1","0.7.5-2","0.7.6-1","0.7.6-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-genshi","binary_version":"0.7.6-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-0685.json"}},{"package":{"name":"genshi","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/genshi?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.7-4","0.7.7-4build1","0.7.7-4build2"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-genshi","binary_version":"0.7.7-4build2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-0685.json"}},{"package":{"name":"genshi","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/genshi?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.9-2build1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.7.9-2build1","binary_name":"python3-genshi"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-0685.json"}},{"package":{"name":"genshi","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/genshi?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.9-2build1","0.7.9-2build2","0.7.10-1","0.7.10-2","0.7.10-2build1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-genshi","binary_version":"0.7.10-2build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-0685.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}