Skip to content
Heist/ feed
Back to feed
HighFix available

gnupg1, gnupg2 — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2018-12020

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.

Products
gnupg1, gnupg2
Affected versions
Not specified
Fixed versions
1.4.22-5, 2.2.8-1
CVEs
CVE-2018-12020
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 00:06 UTC · Revision 1

Source evidence

DEBIAN-CVE-2018-12020

core-osv · Original source

Published 8 Jun 2018, 21:29 UTC

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.

osv:DEBIAN-CVE-2018-12020

gnupg1

Fixed versions: 1.4.22-5

gnupg1

Fixed versions: 1.4.22-5

gnupg1

Fixed versions: 1.4.22-5

gnupg2

Fixed versions: 2.2.8-1

gnupg2

Fixed versions: 2.2.8-1

gnupg2

Fixed versions: 2.2.8-1

Complete source record
{
  "id": "ef9f50d56436390ba915776f288256022268faea05ae8691d1fb6f1d89673354",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2018-12020",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2018-12020",
    "summary": "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.",
    "evidence": "osv:DEBIAN-CVE-2018-12020",
    "products": [
      {
        "name": {
          "value": "gnupg1",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.4.22-5",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "gnupg1",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.4.22-5",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "gnupg1",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.4.22-5",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "gnupg2",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.2.8-1",
            "evidence": "/affected/3/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "gnupg2",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.2.8-1",
            "evidence": "/affected/4/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "gnupg2",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.2.8-1",
            "evidence": "/affected/5/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "DEBIAN-CVE-2018-12020",
      "aliases": [
        "DEBIAN-CVE-2018-12020"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.4.22-5"
                }
              ]
            }
          ],
          "package": {
            "name": "gnupg1",
            "purl": "pkg:deb/debian/gnupg1?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2018-12020.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.4.22-5"
                }
              ]
            }
          ],
          "package": {
            "name": "gnupg1",
            "purl": "pkg:deb/debian/gnupg1?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2018-12020.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.4.22-5"
                }
              ]
            }
          ],
          "package": {
            "name": "gnupg1",
            "purl": "pkg:deb/debian/gnupg1?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2018-12020.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.2.8-1"
                }
              ]
            }
          ],
          "package": {
            "name": "gnupg2",
            "purl": "pkg:deb/debian/gnupg2?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2018-12020.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.2.8-1"
                }
              ]
            }
          ],
          "package": {
            "name": "gnupg2",
            "purl": "pkg:deb/debian/gnupg2?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2018-12020.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.2.8-1"
                }
              ]
            }
          ],
          "package": {
            "name": "gnupg2",
            "purl": "pkg:deb/debian/gnupg2?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2018-12020.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-23T18:02:58.650712092Z",
      "provider": "osv",
      "upstream": [
        "CVE-2018-12020"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2018-12020"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2018-12020",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 419981,
  "published_at": "2018-06-08T21:29:00.237+00:00"
}