Search
Find a vulnerability
Search criteria
Related vulnerabilities
UBUNTU-CVE-2018-12020 (CVE-2018-12020)
Vulnerability from osv_ubuntu – Published: 2018-06-08 00:00 – Updated: 2026-11-24 09:42 – Source website
VLAI
Details
mainproc.c in GnuPG before 2.2.8 mishandles the original filename during decryption and verification actions, which allows remote attackers to spoof the output that GnuPG sends on file descriptor 2 to other programs that use the "--status-fd 2" option. For example, the OpenPGP data might represent an original filename that contains line feed characters in conjunction with GOODSIG or VALIDSIG status codes.
Upstream
Severity
7.5 (High)
N/A (UNKNOWN)
References
14 references
Impacted products
13 products
| Ecosystem | Package | Version |
|---|---|---|
| Ubuntu:14.04:LTS |
gnupg
pkg:deb/ubuntu/gnupg@1.4.16-1ubuntu2.5?arch=source&distro=trusty
|
Affected: < 1.4.16-1ubuntu2.5 (ecosystem)
1.4.14-1ubuntu21.4.15-1.1ubuntu11.4.15-1.1ubuntu21.4.15-2ubuntu11.4.16-1ubuntu11.4.16-1ubuntu21.4.16-1ubuntu2.11.4.16-1ubuntu2.31.4.16-1ubuntu2.4
|
| Ubuntu:14.04:LTS |
gnupg2
pkg:deb/ubuntu/gnupg2@2.0.22-3ubuntu1.4?arch=source&distro=trusty
|
Affected: < 2.0.22-3ubuntu1.4 (ecosystem)
2.0.20-1ubuntu32.0.22-1ubuntu12.0.22-3ubuntu12.0.22-3ubuntu1.12.0.22-3ubuntu1.3
|
| Ubuntu:Pro:14.04:LTS |
python-gnupg
pkg:deb/ubuntu/python-gnupg@0.3.6-1ubuntu0.1~esm1?arch=source&distro=trusty/esm
|
Affected: < 0.3.6-1ubuntu0.1~esm1 (ecosystem)
0.3.5-20.3.6-1
|
| Ubuntu:16.04:LTS |
gnupg
pkg:deb/ubuntu/gnupg@1.4.20-1ubuntu3.2?arch=source&distro=xenial
|
Affected: < 1.4.20-1ubuntu3.2 (ecosystem)
1.4.18-7ubuntu11.4.19-6ubuntu11.4.20-1ubuntu11.4.20-1ubuntu21.4.20-1ubuntu31.4.20-1ubuntu3.1
|
| Ubuntu:16.04:LTS |
gnupg2
pkg:deb/ubuntu/gnupg2@2.1.11-6ubuntu2.1?arch=source&distro=xenial
|
Affected: < 2.1.11-6ubuntu2.1 (ecosystem)
2.0.28-3ubuntu12.0.28-3ubuntu22.1.11-6ubuntu12.1.11-6ubuntu2
|
| Ubuntu:Pro:16.04:LTS |
python-gnupg
pkg:deb/ubuntu/python-gnupg@0.3.8-2ubuntu0.1~esm1?arch=source&distro=esm-apps/xenial
|
Affected: < 0.3.8-2ubuntu0.1~esm1 (ecosystem)
0.3.7-20.3.8-10.3.8-2
|
| Ubuntu:16.04:LTS |
enigmail
pkg:deb/ubuntu/enigmail@2:2.1.6+ds1-1~ubuntu0.16.04.1?arch=source&distro=xenial
|
Affected: All versions (ecosystem)
2:1.8.2-0ubuntu12:1.8.2-4fakesync12:1.9.1-12:1.9.7-1~ubuntu0.16.04.12:1.9.9-0ubuntu0.16.04.12:2.0.3-0ubuntu2~16.04.12:2.0.6-0ubuntu1~16.04.12:2.0.7-0ubuntu1~16.04.12:2.0.8-1~ubuntu0.16.04.22:2.1.6+ds1-1~ubuntu0.16.04.1
|
| Ubuntu:18.04:LTS |
gnupg2
pkg:deb/ubuntu/gnupg2@2.2.4-1ubuntu1.1?arch=source&distro=bionic
|
Affected: < 2.2.4-1ubuntu1.1 (ecosystem)
2.1.15-1ubuntu82.2.4-1ubuntu1
|
| Ubuntu:18.04:LTS |
python-gnupg
pkg:deb/ubuntu/python-gnupg@0.4.1-1ubuntu1.18.04.1?arch=source&distro=bionic
|
Affected: < 0.4.1-1ubuntu1.18.04.1 (ecosystem)
0.3.9-10.4.1-1ubuntu1
|
| Ubuntu:18.04:LTS |
enigmail
pkg:deb/ubuntu/enigmail@2:2.2.4-0ubuntu0.18.04.1?arch=source&distro=bionic
|
Affected: All versions (ecosystem)
2:1.9.8.3-12:1.9.9-12:1.9.9-22:2.0.3-0ubuntu2~18.04.12:2.0.6-0ubuntu1~18.04.12:2.0.7-0ubuntu1~18.04.12:2.0.8-1~ubuntu0.18.04.22:2.1.2-0ubuntu1~18.04.22:2.1.6+ds1-1~ubuntu0.18.04.12:2.2.4-0ubuntu0.18.04.1
|
| Ubuntu:Pro:18.04:LTS |
gnupg1
pkg:deb/ubuntu/gnupg1@1.4.22-3ubuntu2+esm1?arch=source&distro=esm-apps/bionic
|
Affected: < 1.4.22-3ubuntu2+esm1 (ecosystem)
1.4.22-1ubuntu11.4.22-3ubuntu11.4.22-3ubuntu2
|
| Ubuntu:20.04:LTS |
enigmail
pkg:deb/ubuntu/enigmail@2:2.2.4-0ubuntu0.20.04.1?arch=source&distro=focal
|
Affected: All versions (ecosystem)
2:2.1.2-0ubuntu12:2.1.3+ds1-32:2.1.3+ds1-42:2.1.5+ds1-12:2.1.6+ds1-12:2.2.4-0ubuntu0.20.04.1
|
| Ubuntu:22.04:LTS |
enigmail
pkg:deb/ubuntu/enigmail@2:2.2.4-0.3?arch=source&distro=jammy
|
Affected: All versions (ecosystem)
2:2.2.4-0.3
|
{
"affected": [
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "gnupg",
"binary_version": "1.4.16-1ubuntu2.5"
},
{
"binary_name": "gnupg-curl",
"binary_version": "1.4.16-1ubuntu2.5"
},
{
"binary_name": "gpgv",
"binary_version": "1.4.16-1ubuntu2.5"
}
]
},
"package": {
"ecosystem": "Ubuntu:14.04:LTS",
"name": "gnupg",
"purl": "pkg:deb/ubuntu/gnupg@1.4.16-1ubuntu2.5?arch=source\u0026distro=trusty"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.4.16-1ubuntu2.5"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.4.14-1ubuntu2",
"1.4.15-1.1ubuntu1",
"1.4.15-1.1ubuntu2",
"1.4.15-2ubuntu1",
"1.4.16-1ubuntu1",
"1.4.16-1ubuntu2",
"1.4.16-1ubuntu2.1",
"1.4.16-1ubuntu2.3",
"1.4.16-1ubuntu2.4"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "gnupg-agent",
"binary_version": "2.0.22-3ubuntu1.4"
},
{
"binary_name": "gnupg2",
"binary_version": "2.0.22-3ubuntu1.4"
},
{
"binary_name": "gpgsm",
"binary_version": "2.0.22-3ubuntu1.4"
},
{
"binary_name": "gpgv2",
"binary_version": "2.0.22-3ubuntu1.4"
},
{
"binary_name": "scdaemon",
"binary_version": "2.0.22-3ubuntu1.4"
}
]
},
"package": {
"ecosystem": "Ubuntu:14.04:LTS",
"name": "gnupg2",
"purl": "pkg:deb/ubuntu/gnupg2@2.0.22-3ubuntu1.4?arch=source\u0026distro=trusty"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.0.22-3ubuntu1.4"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.0.20-1ubuntu3",
"2.0.22-1ubuntu1",
"2.0.22-3ubuntu1",
"2.0.22-3ubuntu1.1",
"2.0.22-3ubuntu1.3"
]
},
{
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "python-gnupg",
"binary_version": "0.3.6-1ubuntu0.1~esm1"
},
{
"binary_name": "python3-gnupg",
"binary_version": "0.3.6-1ubuntu0.1~esm1"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:14.04:LTS",
"name": "python-gnupg",
"purl": "pkg:deb/ubuntu/python-gnupg@0.3.6-1ubuntu0.1~esm1?arch=source\u0026distro=trusty/esm"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.3.6-1ubuntu0.1~esm1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.3.5-2",
"0.3.6-1"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "gnupg",
"binary_version": "1.4.20-1ubuntu3.2"
},
{
"binary_name": "gnupg-curl",
"binary_version": "1.4.20-1ubuntu3.2"
},
{
"binary_name": "gpgv",
"binary_version": "1.4.20-1ubuntu3.2"
}
]
},
"package": {
"ecosystem": "Ubuntu:16.04:LTS",
"name": "gnupg",
"purl": "pkg:deb/ubuntu/gnupg@1.4.20-1ubuntu3.2?arch=source\u0026distro=xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.4.20-1ubuntu3.2"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.4.18-7ubuntu1",
"1.4.19-6ubuntu1",
"1.4.20-1ubuntu1",
"1.4.20-1ubuntu2",
"1.4.20-1ubuntu3",
"1.4.20-1ubuntu3.1"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "dirmngr",
"binary_version": "2.1.11-6ubuntu2.1"
},
{
"binary_name": "gnupg-agent",
"binary_version": "2.1.11-6ubuntu2.1"
},
{
"binary_name": "gnupg2",
"binary_version": "2.1.11-6ubuntu2.1"
},
{
"binary_name": "gpgsm",
"binary_version": "2.1.11-6ubuntu2.1"
},
{
"binary_name": "gpgv2",
"binary_version": "2.1.11-6ubuntu2.1"
},
{
"binary_name": "scdaemon",
"binary_version": "2.1.11-6ubuntu2.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:16.04:LTS",
"name": "gnupg2",
"purl": "pkg:deb/ubuntu/gnupg2@2.1.11-6ubuntu2.1?arch=source\u0026distro=xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.1.11-6ubuntu2.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.0.28-3ubuntu1",
"2.0.28-3ubuntu2",
"2.1.11-6ubuntu1",
"2.1.11-6ubuntu2"
]
},
{
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "python-gnupg",
"binary_version": "0.3.8-2ubuntu0.1~esm1"
},
{
"binary_name": "python3-gnupg",
"binary_version": "0.3.8-2ubuntu0.1~esm1"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:16.04:LTS",
"name": "python-gnupg",
"purl": "pkg:deb/ubuntu/python-gnupg@0.3.8-2ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.3.8-2ubuntu0.1~esm1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.3.7-2",
"0.3.8-1",
"0.3.8-2"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "enigmail",
"binary_version": "2:2.1.6+ds1-1~ubuntu0.16.04.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:16.04:LTS",
"name": "enigmail",
"purl": "pkg:deb/ubuntu/enigmail@2:2.1.6+ds1-1~ubuntu0.16.04.1?arch=source\u0026distro=xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2:1.8.2-0ubuntu1",
"2:1.8.2-4fakesync1",
"2:1.9.1-1",
"2:1.9.7-1~ubuntu0.16.04.1",
"2:1.9.9-0ubuntu0.16.04.1",
"2:2.0.3-0ubuntu2~16.04.1",
"2:2.0.6-0ubuntu1~16.04.1",
"2:2.0.7-0ubuntu1~16.04.1",
"2:2.0.8-1~ubuntu0.16.04.2",
"2:2.1.6+ds1-1~ubuntu0.16.04.1"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "dirmngr",
"binary_version": "2.2.4-1ubuntu1.1"
},
{
"binary_name": "gnupg",
"binary_version": "2.2.4-1ubuntu1.1"
},
{
"binary_name": "gnupg-agent",
"binary_version": "2.2.4-1ubuntu1.1"
},
{
"binary_name": "gnupg-l10n",
"binary_version": "2.2.4-1ubuntu1.1"
},
{
"binary_name": "gnupg-utils",
"binary_version": "2.2.4-1ubuntu1.1"
},
{
"binary_name": "gnupg2",
"binary_version": "2.2.4-1ubuntu1.1"
},
{
"binary_name": "gpg",
"binary_version": "2.2.4-1ubuntu1.1"
},
{
"binary_name": "gpg-agent",
"binary_version": "2.2.4-1ubuntu1.1"
},
{
"binary_name": "gpg-wks-client",
"binary_version": "2.2.4-1ubuntu1.1"
},
{
"binary_name": "gpg-wks-server",
"binary_version": "2.2.4-1ubuntu1.1"
},
{
"binary_name": "gpgconf",
"binary_version": "2.2.4-1ubuntu1.1"
},
{
"binary_name": "gpgsm",
"binary_version": "2.2.4-1ubuntu1.1"
},
{
"binary_name": "gpgv",
"binary_version": "2.2.4-1ubuntu1.1"
},
{
"binary_name": "gpgv-static",
"binary_version": "2.2.4-1ubuntu1.1"
},
{
"binary_name": "gpgv-win32",
"binary_version": "2.2.4-1ubuntu1.1"
},
{
"binary_name": "gpgv2",
"binary_version": "2.2.4-1ubuntu1.1"
},
{
"binary_name": "scdaemon",
"binary_version": "2.2.4-1ubuntu1.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "gnupg2",
"purl": "pkg:deb/ubuntu/gnupg2@2.2.4-1ubuntu1.1?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.2.4-1ubuntu1.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.1.15-1ubuntu8",
"2.2.4-1ubuntu1"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "python-gnupg",
"binary_version": "0.4.1-1ubuntu1.18.04.1"
},
{
"binary_name": "python3-gnupg",
"binary_version": "0.4.1-1ubuntu1.18.04.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "python-gnupg",
"purl": "pkg:deb/ubuntu/python-gnupg@0.4.1-1ubuntu1.18.04.1?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.4.1-1ubuntu1.18.04.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.3.9-1",
"0.4.1-1ubuntu1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "enigmail",
"binary_version": "2:2.2.4-0ubuntu0.18.04.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "enigmail",
"purl": "pkg:deb/ubuntu/enigmail@2:2.2.4-0ubuntu0.18.04.1?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2:1.9.8.3-1",
"2:1.9.9-1",
"2:1.9.9-2",
"2:2.0.3-0ubuntu2~18.04.1",
"2:2.0.6-0ubuntu1~18.04.1",
"2:2.0.7-0ubuntu1~18.04.1",
"2:2.0.8-1~ubuntu0.18.04.2",
"2:2.1.2-0ubuntu1~18.04.2",
"2:2.1.6+ds1-1~ubuntu0.18.04.1",
"2:2.2.4-0ubuntu0.18.04.1"
]
},
{
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "gnupg1",
"binary_version": "1.4.22-3ubuntu2+esm1"
},
{
"binary_name": "gnupg1-l10n",
"binary_version": "1.4.22-3ubuntu2+esm1"
},
{
"binary_name": "gpgv1",
"binary_version": "1.4.22-3ubuntu2+esm1"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:18.04:LTS",
"name": "gnupg1",
"purl": "pkg:deb/ubuntu/gnupg1@1.4.22-3ubuntu2+esm1?arch=source\u0026distro=esm-apps/bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.4.22-3ubuntu2+esm1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.4.22-1ubuntu1",
"1.4.22-3ubuntu1",
"1.4.22-3ubuntu2"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "enigmail",
"binary_version": "2:2.2.4-0ubuntu0.20.04.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "enigmail",
"purl": "pkg:deb/ubuntu/enigmail@2:2.2.4-0ubuntu0.20.04.1?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2:2.1.2-0ubuntu1",
"2:2.1.3+ds1-3",
"2:2.1.3+ds1-4",
"2:2.1.5+ds1-1",
"2:2.1.6+ds1-1",
"2:2.2.4-0ubuntu0.20.04.1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "enigmail",
"binary_version": "2:2.2.4-0.3"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "enigmail",
"purl": "pkg:deb/ubuntu/enigmail@2:2.2.4-0.3?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2:2.2.4-0.3"
]
}
],
"aliases": [],
"details": "mainproc.c in GnuPG before 2.2.8 mishandles the original filename during decryption and verification actions, which allows remote attackers to spoof the output that GnuPG sends on file descriptor 2 to other programs that use the \"--status-fd 2\" option. For example, the OpenPGP data might represent an original filename that contains line feed characters in conjunction with GOODSIG or VALIDSIG status codes.",
"id": "UBUNTU-CVE-2018-12020",
"modified": "2026-11-24T09:42:29Z",
"published": "2018-06-08T00:00:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2018-12020"
},
{
"type": "REPORT",
"url": "https://dev.gnupg.org/T4012"
},
{
"type": "REPORT",
"url": "https://lists.gnupg.org/pipermail/gnupg-announce/2018q2/000425.html"
},
{
"type": "REPORT",
"url": "https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=commit;h=210e402acd3e284b32db1901e43bf1470e659e49"
},
{
"type": "REPORT",
"url": "https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=commit;h=2326851c60793653069494379b16d84e4c10a0ac"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-3675-1"
},
{
"type": "REPORT",
"url": "https://sourceforge.net/p/enigmail/forum/announce/thread/b948279f/"
},
{
"type": "REPORT",
"url": "https://neopg.io/blog/gpg-signature-spoof/"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-3675-2"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-3675-3"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-3964-1"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-4839-1"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2018-12020"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-9100-1"
}
],
"related": [
"USN-3675-1",
"USN-3675-2",
"USN-3675-3",
"USN-3964-1",
"USN-4839-1",
"USN-9100-1"
],
"schema_version": "1.9.2",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N",
"source": "NVD",
"type": "CVSS_V3"
},
{
"score": "medium",
"source": "SELF",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2018-12020"
]
}