{"id":"UBUNTU-CVE-2023-40546","details":"A flaw was found in Shim when an error happened while creating a new ESL variable. If Shim fails to create the new variable, it tries to print an error message to the user; however, the number of parameters used by the logging function doesn't match the format string used by it, leading to a crash under certain circumstances.","modified":"2025-11-25T03:57:55.953665Z","published":"2024-01-23T00:00:00Z","upstream":["CVE-2023-40546"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-40546"},{"type":"REPORT","url":"https://bugs.launchpad.net/ubuntu/+source/shim-signed/+bug/2051151"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2023-40546"}],"affected":[{"package":{"name":"shim","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/shim@13-0ubuntu2?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4-0ubuntu4","0.8-0ubuntu2","0.9+1474479173.6c180c6-1ubuntu1","13-0ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_name":"shim","binary_version":"13-0ubuntu2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-40546.json"}},{"package":{"name":"shim-signed","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/shim-signed@1.33.1~14.04.5?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.3","1.4","1.5","1.6","1.9","1.17~14.04.1","1.18~14.04.1","1.19~14.04.1","1.32~14.04.2","1.33.1~14.04.2","1.33.1~14.04.3","1.33.1~14.04.4","1.33.1~14.04.5"],"ecosystem_specific":{"binaries":[{"binary_name":"shim-signed","binary_version":"1.33.1~14.04.5+13-0ubuntu2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-40546.json"}},{"package":{"name":"shim","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/shim@15.4-0ubuntu7?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8-0ubuntu2","0.9+1474479173.6c180c6-1ubuntu1","13-0ubuntu2","15+1533136590.3beb971-0ubuntu1","15+1552672080.a4a1fbe-0ubuntu2","15.4-0ubuntu7"],"ecosystem_specific":{"binaries":[{"binary_name":"shim","binary_version":"15.4-0ubuntu7"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-40546.json"}},{"package":{"name":"shim-signed","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/shim-signed@1.33.1~16.04.10?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.11","1.12","1.17~16.04.1","1.18~16.04.1","1.19~16.04.1","1.27~16.04.1","1.28~16.04.1","1.32~16.04.1","1.33.1~16.04.1","1.33.1~16.04.2","1.33.1~16.04.3","1.33.1~16.04.4","1.33.1~16.04.5","1.33.1~16.04.6","1.33.1~16.04.10"],"ecosystem_specific":{"binaries":[{"binary_name":"shim-signed","binary_version":"1.33.1~16.04.10+15.4-0ubuntu7"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-40546.json"}},{"package":{"name":"shim","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/shim@15.7-0ubuntu1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9+1474479173.6c180c6-1ubuntu1","13-0ubuntu2","15+1533136590.3beb971-0ubuntu1","15+1552672080.a4a1fbe-0ubuntu2","15.4-0ubuntu7","15.4-0ubuntu9","15.7-0ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"shim","binary_version":"15.7-0ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-40546.json"}},{"package":{"name":"shim-signed","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/shim-signed@1.37~18.04.13?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.32","1.33.1","1.34.4","1.34.5","1.34.6","1.34.7","1.34.8","1.34.9","1.34.9.1","1.34.9.2","1.37~18.04.1","1.37~18.04.2","1.37~18.04.3","1.37~18.04.6","1.37~18.04.8","1.37~18.04.10","1.37~18.04.11","1.37~18.04.13"],"ecosystem_specific":{"binaries":[{"binary_name":"shim-signed","binary_version":"1.37~18.04.13+15.7-0ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-40546.json"}},{"package":{"name":"shim","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/shim@15.8-0ubuntu1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"15.8-0ubuntu1"}]}],"versions":["15+1533136590.3beb971-0ubuntu1","15+1552672080.a4a1fbe-0ubuntu1","15+1552672080.a4a1fbe-0ubuntu2","15.4-0ubuntu7","15.4-0ubuntu9","15.7-0ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"shim","binary_version":"15.8-0ubuntu1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-40546.json"}},{"package":{"name":"shim-signed","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/shim-signed@1.40.10?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.40.10"}]}],"versions":["1.39","1.40","1.40.3","1.40.4","1.40.6","1.40.7","1.40.9"],"ecosystem_specific":{"binaries":[{"binary_name":"shim-signed","binary_version":"1.40.10+15.8-0ubuntu1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-40546.json"}},{"package":{"name":"shim","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/shim@15.8-0ubuntu1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"15.8-0ubuntu1"}]}],"versions":["15.4-0ubuntu9","15.7-0ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"shim","binary_version":"15.8-0ubuntu1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-40546.json"}},{"package":{"name":"shim-signed","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/shim-signed@1.51.4?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.51.4"}]}],"versions":["1.51","1.51.3"],"ecosystem_specific":{"binaries":[{"binary_name":"shim-signed","binary_version":"1.51.4+15.8-0ubuntu1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-40546.json"}},{"package":{"name":"shim","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/shim@15.8-0ubuntu1?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"15.8-0ubuntu1"}]}],"versions":["15.7-0ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"shim","binary_version":"15.8-0ubuntu1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-40546.json"}},{"package":{"name":"shim-signed","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/shim-signed@1.58?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.58"}]}],"versions":["1.56","1.57"],"ecosystem_specific":{"binaries":[{"binary_name":"shim-signed","binary_version":"1.58+15.8-0ubuntu1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-40546.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}