GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration
ubuntu-cve-2018-12020
Vulnerability from osv_ubuntu
Published
2018-06-08 00:00
Modified
2026-05-20 14:50
Summary
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.


{
  "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": {
        "binaries": [
          {
            "binary_name": "gnupg1",
            "binary_version": "1.4.22-3ubuntu2"
          },
          {
            "binary_name": "gnupg1-l10n",
            "binary_version": "1.4.22-3ubuntu2"
          },
          {
            "binary_name": "gpgv1",
            "binary_version": "1.4.22-3ubuntu2"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:18.04:LTS",
        "name": "gnupg1",
        "purl": "pkg:deb/ubuntu/gnupg1@1.4.22-3ubuntu2?arch=source\u0026distro=bionic"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "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-05-20T14:50:42Z",
  "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"
    }
  ],
  "related": [
    "USN-3675-1",
    "USN-3675-2",
    "USN-3675-3",
    "USN-3964-1",
    "USN-4839-1"
  ],
  "schema_version": "1.7.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N",
      "type": "CVSS_V3"
    },
    {
      "score": "medium",
      "type": "Ubuntu"
    }
  ],
  "upstream": [
    "CVE-2018-12020"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…