Skip to content
Heist/ feed
Back to feed
Medium

golang-github-containers-buildah — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2022-4122

A vulnerability was found in buildah. Incorrect following of symlinks while reading .containerignore and .dockerignore results in information disclosure.

Products
golang-github-containers-buildah
Affected versions
1.21.3+ds1-1ubuntu1, 1.23.1+ds1-2, 1.28.2+ds1-3build1, 1.32.2+ds1-1, 1.33.1+ds1-2, 1.33.3+ds1-2, 1.33.5+ds1-4, 1.33.5+ds1-4build1, 1.33.5+ds1-4build2, 1.33.7+ds1-1, 1.33.7+ds1-1ubuntu0.24.04.1, 1.33.7+ds1-1ubuntu0.24.04.2, 1.33.7+ds1-1ubuntu0.24.04.2+esm1, 1.33.7+ds1-1ubuntu0.24.04.2+esm2, 1.33.7+ds1-1ubuntu0.24.04.3, 1.33.7+ds1-1ubuntu0.24.04.3+esm2, 1.33.7+ds1-1ubuntu0.24.04.3+esm3, 1.39.3+ds1-1syncable1, 1.42.1+ds1-2, 1.42.1+ds1-2build1, 1.42.1+ds1-2ubuntu0.26.04.1~esm1, 1.43.2+ds1-3
Fixed versions
Not specified
CVEs
CVE-2022-4122
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 00:56 UTC · Revision 1

Source evidence

UBUNTU-CVE-2022-4122

core-osv · Original source

Published 8 Dec 2022, 16:15 UTC

A vulnerability was found in buildah. Incorrect following of symlinks while reading .containerignore and .dockerignore results in information disclosure.

osv:UBUNTU-CVE-2022-4122

golang-github-containers-buildah

Fixed versions: Not specified

golang-github-containers-buildah

Fixed versions: Not specified

golang-github-containers-buildah

Fixed versions: Not specified

golang-github-containers-buildah

Fixed versions: Not specified

golang-github-containers-buildah

Fixed versions: Not specified

Complete source record
{
  "id": "2b7b92d81068302da91c45d4209bacb4b3e31696de472296a6f7ba635331f5d8",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-4122",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2022-4122",
    "summary": "A vulnerability was found in buildah. Incorrect following of symlinks while reading .containerignore and .dockerignore results in information disclosure.",
    "evidence": "osv:UBUNTU-CVE-2022-4122",
    "products": [
      {
        "name": {
          "value": "golang-github-containers-buildah",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.21.3+ds1-1ubuntu1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.23.1+ds1-2",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-github-containers-buildah",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.28.2+ds1-3build1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.32.2+ds1-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.33.1+ds1-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.33.3+ds1-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.33.5+ds1-4",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.33.5+ds1-4build1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.33.5+ds1-4build2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.33.7+ds1-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.33.7+ds1-1ubuntu0.24.04.1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.33.7+ds1-1ubuntu0.24.04.2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.33.7+ds1-1ubuntu0.24.04.2+esm1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.33.7+ds1-1ubuntu0.24.04.2+esm2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.33.7+ds1-1ubuntu0.24.04.3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.33.7+ds1-1ubuntu0.24.04.3+esm2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.33.7+ds1-1ubuntu0.24.04.3+esm3",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-github-containers-buildah",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.39.3+ds1-1syncable1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-github-containers-buildah",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.42.1+ds1-2build1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.43.2+ds1-3",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-github-containers-buildah",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.39.3+ds1-1syncable1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.42.1+ds1-2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.42.1+ds1-2build1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.42.1+ds1-2ubuntu0.26.04.1~esm1",
            "evidence": "/affected/4/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2022-4122",
      "aliases": [
        "UBUNTU-CVE-2022-4122"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-containers-buildah",
            "purl": "pkg:deb/ubuntu/golang-github-containers-buildah?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "1.21.3+ds1-1ubuntu1",
            "1.23.1+ds1-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4122.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "buildah",
                "binary_version": "1.23.1+ds1-2"
              },
              {
                "binary_name": "golang-github-containers-buildah-dev",
                "binary_version": "1.23.1+ds1-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-containers-buildah",
            "purl": "pkg:deb/ubuntu/golang-github-containers-buildah?arch=source&distro=esm-apps%2Fnoble",
            "ecosystem": "Ubuntu:Pro:24.04:LTS"
          },
          "versions": [
            "1.28.2+ds1-3build1",
            "1.32.2+ds1-1",
            "1.33.1+ds1-2",
            "1.33.3+ds1-2",
            "1.33.5+ds1-4",
            "1.33.5+ds1-4build1",
            "1.33.5+ds1-4build2",
            "1.33.7+ds1-1",
            "1.33.7+ds1-1ubuntu0.24.04.1",
            "1.33.7+ds1-1ubuntu0.24.04.2",
            "1.33.7+ds1-1ubuntu0.24.04.2+esm1",
            "1.33.7+ds1-1ubuntu0.24.04.2+esm2",
            "1.33.7+ds1-1ubuntu0.24.04.3",
            "1.33.7+ds1-1ubuntu0.24.04.3+esm2",
            "1.33.7+ds1-1ubuntu0.24.04.3+esm3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4122.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "buildah",
                "binary_version": "1.33.7+ds1-1ubuntu0.24.04.3+esm3"
              },
              {
                "binary_name": "golang-github-containers-buildah-dev",
                "binary_version": "1.33.7+ds1-1ubuntu0.24.04.3+esm3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-containers-buildah",
            "purl": "pkg:deb/ubuntu/golang-github-containers-buildah?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "1.39.3+ds1-1syncable1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4122.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "buildah",
                "binary_version": "1.39.3+ds1-1syncable1"
              },
              {
                "binary_name": "golang-github-containers-buildah-dev",
                "binary_version": "1.39.3+ds1-1syncable1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-containers-buildah",
            "purl": "pkg:deb/ubuntu/golang-github-containers-buildah?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "1.42.1+ds1-2build1",
            "1.43.2+ds1-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4122.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "buildah",
                "binary_version": "1.43.2+ds1-3"
              },
              {
                "binary_name": "golang-github-containers-buildah-dev",
                "binary_version": "1.43.2+ds1-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-containers-buildah",
            "purl": "pkg:deb/ubuntu/golang-github-containers-buildah?arch=source&distro=esm-apps%2Fresolute",
            "ecosystem": "Ubuntu:Pro:26.04:LTS"
          },
          "versions": [
            "1.39.3+ds1-1syncable1",
            "1.42.1+ds1-2",
            "1.42.1+ds1-2build1",
            "1.42.1+ds1-2ubuntu0.26.04.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4122.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "buildah",
                "binary_version": "1.42.1+ds1-2ubuntu0.26.04.1~esm1"
              },
              {
                "binary_name": "golang-github-containers-buildah-dev",
                "binary_version": "1.42.1+ds1-2ubuntu0.26.04.1~esm1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:17.192333756Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-4122"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2022-4122",
        "https://access.redhat.com/security/cve/CVE-2022-4122",
        "https://bugzilla.redhat.com/show_bug.cgi?id=2144983",
        "https://www.cve.org/CVERecord?id=CVE-2022-4122",
        "https://github.com/advisories/GHSA-4crw-w8pw-2hmf",
        "https://github.com/containers/podman/pull/16315",
        "https://github.com/containers/podman/commit/c8eeab21cf0a4f670be0cd399dd06fd5d4e06dfe",
        "https://github.com/containers/podman/commit/70e8f6243a661f2a1bb196190b852df0a6e5d91a"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-4122",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 355132,
  "published_at": "2022-12-08T16:15:00+00:00"
}