{"id":"CVE-2026-40553","state":"PUBLISHED","title":"Stack-based buffer overflow in gawk","description":"Buffer overflow vulnerability has been found in \"extension/readdir.c\" program file of gawk (ftype() routine). This issue could be used to crash the program and potentially to achieve code execution, although the latter has not been confirmed to be feasible. It affects gawk in versions 5.4.0 and below.","publishedAt":"2026-07-13T12:07:56.611Z","updatedAt":"2026-07-13T13:00:45.449Z","severity":{"score":5.1,"label":"Medium","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:L/SI:L/SA:L","source":"CERT-PL"},"assigner":"CERT-PL","products":["GNU gawk"],"affected":[{"vendor":"GNU","product":"gawk","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"5.4.0","versionType":"semver"}],"repo":"https://cgit.git.savannah.gnu.org/cgit/gawk.git/","programFiles":["readdir.c"],"programRoutines":[{"name":"ftype()"}]}],"references":["https://cgit.git.savannah.gnu.org/cgit/gawk.git/commit/?id=cca0366144336b49aaa7d5d949966ce8e2c70843","https://cert.pl/en/posts/2026/07/CVE-2026-40467"],"weaknesses":["CWE-121"],"ingestedAt":"2026-10-29T20:11:57.932Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/40xxx/CVE-2026-40553.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-40553","state":"PUBLISHED","datePublished":"2026-07-13T12:07:56.611Z","dateUpdated":"2026-07-13T13:00:45.449Z","assignerShortName":"CERT-PL","assignerOrgId":"4bb8329e-dd38-46c1-aafb-9bf32bcb93c6","dateReserved":"2026-04-14T09:44:32.553Z"},"containers":{"cna":{"title":"Stack-based buffer overflow in gawk","descriptions":[{"lang":"en","value":"Buffer overflow vulnerability has been found in \"extension/readdir.c\" program file of gawk (ftype() routine). This issue could be used to crash the program and potentially to achieve code execution, although the latter has not been confirmed to be feasible. It affects gawk in versions 5.4.0 and below."}],"affected":[{"vendor":"GNU","product":"gawk","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"5.4.0","versionType":"semver"}],"repo":"https://cgit.git.savannah.gnu.org/cgit/gawk.git/","programFiles":["readdir.c"],"programRoutines":[{"name":"ftype()"}]}],"references":[{"url":"https://cgit.git.savannah.gnu.org/cgit/gawk.git/commit/?id=cca0366144336b49aaa7d5d949966ce8e2c70843","tags":["patch"]},{"url":"https://cert.pl/en/posts/2026/07/CVE-2026-40467","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"LOCAL","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","subConfidentialityImpact":"LOW","vulnIntegrityImpact":"LOW","subIntegrityImpact":"LOW","vulnAvailabilityImpact":"LOW","subAvailabilityImpact":"LOW","exploitMaturity":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"MEDIUM","baseScore":5.1,"vectorString":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:L/SI:L/SA:L"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-121","lang":"en","description":"CWE-121 Stack-based Buffer Overflow","type":"CWE"}]}],"providerMetadata":{"shortName":"CERT-PL","orgId":"4bb8329e-dd38-46c1-aafb-9bf32bcb93c6","dateUpdated":"2026-07-13T12:11:30.685Z"},"datePublic":"2026-07-13T12:07:00.000Z","tags":["x_open-source"],"credits":[{"lang":"en","value":"Michał Majchrowicz (AFINE)","type":"finder"},{"lang":"en","value":"Marcin Wyczechowski (AFINE)","type":"finder"}],"source":{"discovery":"EXTERNAL"},"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-13T13:00:40.324542Z","id":"CVE-2026-40553","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-13T13:00:45.449Z"}}]}}}