A vulnerability was identified in Artifex Ghostscript up to 10.07.0. Affected is the function type1_callsubr of the file devices/vector/gdevpsfx.c of the component Pdfwrite. The manipulation leads to stack-based buffer overflow. Remote exploitation of the attack is possible. The exploit is publicly available and might be used. Upgrading to version 10.08.0 is able to address this issue. It is suggested to upgrade the affected component. A solution was implemented: "I've chosen to fix this slightly differently by using the defined macro in the font parsing loop rather than in the callsubr function, because this better matches the pattern of 'normal' usage."
{
"availability": "No subscription required",
"binaries": [
{
"binary_name": "ghostscript",
"binary_version": "9.55.0~dfsg1-0ubuntu5.15"
},
{
"binary_name": "ghostscript-x",
"binary_version": "9.55.0~dfsg1-0ubuntu5.15"
},
{
"binary_name": "libgs9",
"binary_version": "9.55.0~dfsg1-0ubuntu5.15"
},
{
"binary_name": "libgs9-common",
"binary_version": "9.55.0~dfsg1-0ubuntu5.15"
}
],
"priority_reason": "Compiler hardening makes this a crash in pdfwrite only"
}{
"availability": "No subscription required",
"binaries": [
{
"binary_name": "ghostscript",
"binary_version": "10.02.1~dfsg1-0ubuntu7.10"
},
{
"binary_name": "libgs-common",
"binary_version": "10.02.1~dfsg1-0ubuntu7.10"
},
{
"binary_name": "libgs10",
"binary_version": "10.02.1~dfsg1-0ubuntu7.10"
},
{
"binary_name": "libgs10-common",
"binary_version": "10.02.1~dfsg1-0ubuntu7.10"
}
],
"priority_reason": "Compiler hardening makes this a crash in pdfwrite only"
}{
"availability": "No subscription required",
"binaries": [
{
"binary_name": "ghostscript",
"binary_version": "10.06.0~dfsg-3ubuntu1.2"
},
{
"binary_name": "libgs-common",
"binary_version": "10.06.0~dfsg-3ubuntu1.2"
},
{
"binary_name": "libgs10",
"binary_version": "10.06.0~dfsg-3ubuntu1.2"
},
{
"binary_name": "libgs10-common",
"binary_version": "10.06.0~dfsg-3ubuntu1.2"
}
],
"priority_reason": "Compiler hardening makes this a crash in pdfwrite only"
}{
"availability": "No subscription required",
"binaries": [
{
"binary_name": "ghostscript",
"binary_version": "10.07.1~dfsg-1ubuntu2.1"
},
{
"binary_name": "libgs-common",
"binary_version": "10.07.1~dfsg-1ubuntu2.1"
},
{
"binary_name": "libgs10",
"binary_version": "10.07.1~dfsg-1ubuntu2.1"
},
{
"binary_name": "libgs10-common",
"binary_version": "10.07.1~dfsg-1ubuntu2.1"
}
],
"priority_reason": "Compiler hardening makes this a crash in pdfwrite only"
}{
"availability": "Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "ghostscript",
"binary_version": "9.26~dfsg+0-0ubuntu0.16.04.14+esm11"
},
{
"binary_name": "ghostscript-x",
"binary_version": "9.26~dfsg+0-0ubuntu0.16.04.14+esm11"
},
{
"binary_name": "libgs9",
"binary_version": "9.26~dfsg+0-0ubuntu0.16.04.14+esm11"
},
{
"binary_name": "libgs9-common",
"binary_version": "9.26~dfsg+0-0ubuntu0.16.04.14+esm11"
}
],
"priority_reason": "Compiler hardening makes this a crash in pdfwrite only"
}{
"availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "ghostscript",
"binary_version": "9.26~dfsg+0-0ubuntu0.18.04.18+esm6"
},
{
"binary_name": "ghostscript-x",
"binary_version": "9.26~dfsg+0-0ubuntu0.18.04.18+esm6"
},
{
"binary_name": "libgs9",
"binary_version": "9.26~dfsg+0-0ubuntu0.18.04.18+esm6"
},
{
"binary_name": "libgs9-common",
"binary_version": "9.26~dfsg+0-0ubuntu0.18.04.18+esm6"
}
],
"priority_reason": "Compiler hardening makes this a crash in pdfwrite only"
}{
"availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "ghostscript",
"binary_version": "9.50~dfsg-5ubuntu4.15+esm3"
},
{
"binary_name": "ghostscript-x",
"binary_version": "9.50~dfsg-5ubuntu4.15+esm3"
},
{
"binary_name": "libgs9",
"binary_version": "9.50~dfsg-5ubuntu4.15+esm3"
},
{
"binary_name": "libgs9-common",
"binary_version": "9.50~dfsg-5ubuntu4.15+esm3"
}
],
"priority_reason": "Compiler hardening makes this a crash in pdfwrite only"
}