Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-1000221

pkgconf version 1.5.0 to 1.5.2 contains a Buffer Overflow vulnerability in dequote() that can result in dequote() function returns 1-byte allocation if initial length is 0, leading to buffer overflow. This attack appear to be exploitable via specially crafted .pc file. This vulnerability appears to have been fixed in 1.5.3.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-1000221
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 04:57 UTC · Revision 1

Source evidence

CVE-2018-1000221

core-osv · Original source

Published 20 Aug 2018, 20:29 UTC

pkgconf version 1.5.0 to 1.5.2 contains a Buffer Overflow vulnerability in dequote() that can result in dequote() function returns 1-byte allocation if initial length is 0, leading to buffer overflow. This attack appear to be exploitable via specially crafted .pc file. This vulnerability appears to have been fixed in 1.5.3.

osv:CVE-2018-1000221
Complete source record
{
  "id": "f1f2ec63d6a8f1ebc9f8a206533b4d611e40eb60c50ed7cc736f1b36429bc140",
  "url": "https://osv.dev/vulnerability/CVE-2018-1000221",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-1000221",
    "summary": "pkgconf version 1.5.0 to 1.5.2 contains a Buffer Overflow vulnerability in dequote() that can result in dequote() function returns 1-byte allocation if initial length is 0, leading to buffer overflow. This attack appear to be exploitable via specially crafted .pc file. This vulnerability appears to have been fixed in 1.5.3.",
    "evidence": "osv:CVE-2018-1000221",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2018-1000221",
      "aliases": [
        "CVE-2018-1000221"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/pkgconf/pkgconf",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "4735e17287003b24e86b909f473af14771b8b32c"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:pkgconf:pkgconf:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.5.0"
                      },
                      {
                        "last_affected": "1.5.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "pkgconf-1.5.2",
            "pkgconf-1.5.1",
            "pkgconf-1.4.2",
            "pkgconf-1.4.1",
            "pkgconf-1.4.0",
            "pkgconf-1.3.90",
            "pkgconf-1.3.7",
            "pkgconf-1.3.6",
            "pkgconf-1.3.5",
            "pkgconf-1.3.4",
            "pkgconf-1.3.3",
            "pkgconf-1.3.2",
            "pkgconf-1.3.1",
            "pkgconf-1.3.0",
            "pkgconf-1.2.0",
            "pkgconf-1.1.0",
            "pkgconf-1.0.1",
            "pkgconf-1",
            "pkgconf-0.9.12",
            "pkgconf-0.9.11",
            "pkgconf-0.9.10",
            "pkgconf-0.9.9",
            "pkgconf-0.9.8",
            "pkgconf-0.9.7",
            "pkgconf-0.9.6",
            "pkgconf-0.9.5",
            "pkgconf-0.9.4",
            "pkgconf-0.9.3",
            "pkgconf-0.9.2",
            "pkgconf-0.9.1",
            "pkgconf-0.9.0",
            "pkgconf-0.8.12",
            "pkgconf-0.8.11",
            "pkgconf-0.8.10",
            "pkgconf-0.8.9",
            "pkgconf-0.8.8",
            "pkgconf-0.8.7",
            "pkgconf-0.8.4",
            "pkgconf-0.8.3",
            "pkgconf-0.8.2",
            "pkgconf-0.8.1",
            "pkgconf-0.8",
            "pkgconf-0.7",
            "pkgconf-0.6",
            "pkgconf-0.5.3",
            "pkgconf-0.5.2",
            "pkgconf-0.5.1",
            "pkgconf-0.5",
            "pkgconf-0.4",
            "pkgconf-0.3",
            "pkgconf-0.2",
            "pkgconf-0.1.1",
            "pkgconf-0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-1000221.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:23.360427061Z",
      "provider": "osv",
      "references": [
        "https://git.dereferenced.org/pkgconf/pkgconf/pulls/3"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2018-1000221",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 430902,
  "published_at": "2018-08-20T20:29:01.19+00:00"
}