{"schemaVersion":3,"id":"CVE-2022-4122","aliases":["UBUNTU-CVE-2022-4122","DEBIAN-CVE-2022-4122","GHSA-4crw-w8pw-2hmf","GO-2022-1151"],"status":"published","duplicateOf":null,"title":null,"description":"A vulnerability was found in buildah. Incorrect following of symlinks while reading .containerignore and .dockerignore results in information disclosure.","dates":{"published":"2022-12-08T00:00:00.000Z","modified":"2025-04-22T20:30:06.788Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","exploitability":10,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","exploitability":10,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","exploitability":10,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00865,"percentile":0.57989,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.03199999999999991,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00833},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00797,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00797,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00797,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00797,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00865,"percentile":0.57989}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00833,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00865,"percentile":0.57989}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access ('Link Following')","description":"The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/59.html"}],"affected":[{"vendor":"debian","product":"golang-github-containers-buildah","name":"golang-github-containers-buildah","label":"golang-github-containers-buildah","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/golang-github-containers-buildah","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"golang-github-containers-buildah","name":"golang-github-containers-buildah","label":"golang-github-containers-buildah","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/golang-github-containers-buildah","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"35","noFixRecorded":false,"fixedIn":null},{"text":"36","noFixRecorded":false,"fixedIn":null},{"text":"37","noFixRecorded":false,"fixedIn":null}],"versionsText":"35 | 36 | 37","eol":{"isEol":true,"eolDate":"2022-12-13T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"35","label":"35","eolFrom":"2022-12-13T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"github.com/containers","product":"podman","name":"github.com/containers/podman","label":"podman","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/containers/podman","purlType":"golang","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"github.com/containers/podman","product":"v2","name":"github.com/containers/podman/v2","label":"v2","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/containers/podman/v2","purlType":"golang","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"github.com/containers/podman","product":"v3","name":"github.com/containers/podman/v3","label":"v3","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/containers/podman/v3","purlType":"golang","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"github.com/containers/podman","product":"v4","name":"github.com/containers/podman/v4","label":"v4","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/containers/podman/v4","purlType":"golang","versions":[{"text":"< 4.5.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.5.0","eol":null,"hubHref":null},{"vendor":"podman_project","product":"podman","name":"podman","label":"podman","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"4.3.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"4.3.0","eol":{"isEol":true,"eolDate":"2022-11-10T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"4.3","label":"4.3","eolFrom":"2022-11-10T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"4.3.1"},"product":{"name":"podman","label":"Podman","category":"app"}},"hubHref":"/vendor/podman_project/podman"}],"affectedCount":8,"eol":{"hasEol":true,"count":2},"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2144983","label":"bugzilla.redhat.com/show_bug.cgi?id=2144983","hostname":"bugzilla.redhat.com","tags":["REPORT","WEB","Issue Tracking","Third Party Advisory"]},{"url":"https://github.com/containers/podman/pull/16315","label":"github.com/containers/podman/pull/16315","hostname":"github.com","tags":["REPORT","WEB","FIX","Patch","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2022-4122","label":"ubuntu.com/security/CVE-2022-4122","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://access.redhat.com/security/cve/CVE-2022-4122","label":"access.redhat.com/security/cve/CVE-2022-4122","hostname":"access.redhat.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-4122","label":"www.cve.org/CVERecord?id=CVE-2022-4122","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://github.com/advisories/GHSA-4crw-w8pw-2hmf","label":"github.com/advisories/GHSA-4crw-w8pw-2hmf","hostname":"github.com","tags":["REPORT","Advisory"]},{"url":"https://github.com/containers/podman/commit/c8eeab21cf0a4f670be0cd399dd06fd5d4e06dfe","label":"github.com/containers/podman/commit/c8eeab21cf0a4f670be0cd399dd06fd5d4e06dfe","hostname":"github.com","tags":["REPORT","WEB","FIX"]},{"url":"https://github.com/containers/podman/commit/70e8f6243a661f2a1bb196190b852df0a6e5d91a","label":"github.com/containers/podman/commit/70e8f6243a661f2a1bb196190b852df0a6e5d91a","hostname":"github.com","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-4122","label":"security-tracker.debian.org/tracker/CVE-2022-4122","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-4122","label":"nvd.nist.gov/vuln/detail/CVE-2022-4122","hostname":"nvd.nist.gov","tags":["Advisory","Oval"]}],"lineage":{"upstream":[],"downstream":["RHSA-2024:2077","RHSA-2024:9102"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-12-08T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-22T20:30:06.788Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":21,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T22:00:27.459Z","stale":false,"partial":false}}