{"id":"UBUNTU-CVE-2023-4156","details":"A heap out-of-bounds read flaw was found in builtin.c in the gawk package. This issue may lead to a crash and could be used to read sensitive information.","modified":"2026-01-30T00:44:33.264385Z","published":"2023-08-08T00:00:00Z","related":["USN-6373-1"],"upstream":["CVE-2023-4156"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-4156"},{"type":"REPORT","url":"https://mail.gnu.org/archive/html/bug-gawk/2022-08/msg00000.html"},{"type":"REPORT","url":"https://mail.gnu.org/archive/html/bug-gawk/2022-08/msg00023.html"},{"type":"REPORT","url":"https://git.savannah.gnu.org/gitweb/?p=gawk.git;a=commitdiff;h=e709eb829448ce040087a3fc5481db6bfcaae212"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-6373-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2023-4156"}],"affected":[{"package":{"name":"gawk","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/gawk@1:4.0.1+dfsg-2.1ubuntu2+esm1?arch=source&distro=trusty/esm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:4.0.1+dfsg-2.1ubuntu2+esm1"}]}],"versions":["1:4.0.1+dfsg-2.1ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_version":"1:4.0.1+dfsg-2.1ubuntu2+esm1","binary_name":"gawk"}],"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-4156.json"}},{"package":{"name":"gawk","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/gawk@1:4.1.3+dfsg-0.1ubuntu0.1~esm1?arch=source&distro=esm-infra/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:4.1.3+dfsg-0.1ubuntu0.1~esm1"}]}],"versions":["1:4.1.1+dfsg-1","1:4.1.3+dfsg-0.1"],"ecosystem_specific":{"binaries":[{"binary_version":"1:4.1.3+dfsg-0.1ubuntu0.1~esm1","binary_name":"gawk"}],"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-4156.json"}},{"package":{"name":"gawk","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/gawk@1:4.1.4+dfsg-1ubuntu0.1~esm1?arch=source&distro=esm-infra/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:4.1.4+dfsg-1ubuntu0.1~esm1"}]}],"versions":["1:4.1.4+dfsg-1","1:4.1.4+dfsg-1build1"],"ecosystem_specific":{"binaries":[{"binary_version":"1:4.1.4+dfsg-1ubuntu0.1~esm1","binary_name":"gawk"}],"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-4156.json"}},{"package":{"name":"gawk","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/gawk@1:5.0.1+dfsg-1ubuntu0.1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:5.0.1+dfsg-1ubuntu0.1"}]}],"versions":["1:4.2.1+dfsg-1.1build1","1:5.0.1+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1:5.0.1+dfsg-1ubuntu0.1","binary_name":"gawk"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-4156.json"}},{"package":{"name":"gawk","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/gawk@1:5.1.0-1ubuntu0.1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:5.1.0-1ubuntu0.1"}]}],"versions":["1:5.1.0-1build1","1:5.1.0-1build2","1:5.1.0-1build3"],"ecosystem_specific":{"binaries":[{"binary_version":"1:5.1.0-1ubuntu0.1","binary_name":"gawk"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-4156.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L"},{"type":"Ubuntu","score":"medium"}]}