{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-58106","assignerOrgId":"85b1779b-6ecd-4f52-bcc5-73eac4659dcf","state":"PUBLISHED","assignerShortName":"ERIC","dateReserved":"2026-06-29T10:41:35.472Z","datePublished":"2026-08-28T12:46:57.863Z","dateUpdated":"2026-08-28T18:27:22.857Z"},"containers":{"cna":{"providerMetadata":{"orgId":"85b1779b-6ecd-4f52-bcc5-73eac4659dcf","shortName":"ERIC","dateUpdated":"2026-08-28T12:46:57.863Z"},"title":"Incomplete fix for CVE-2025-40843: safe_strcpy is called with PATH_MAX into fullPath+2, writing 2 bytes past the buffer on every CodeChecker log invocation","problemTypes":[{"descriptions":[{"lang":"en","cweId":"CWE-787","description":"CWE-787 Out-of-bounds write","type":"CWE"}]}],"affected":[{"vendor":"Ericsson","product":"CodeChecker","versions":[{"status":"affected","version":"0","lessThanOrEqual":"6.28.2","versionType":"python"}],"defaultStatus":"unaffected"}],"descriptions":[{"lang":"en","value":"CVE-2025-40843 https://github.com/advisories/GHSA-5xf2-f6ch-6p8r  was fixed by replacing unchecked strcpy() with a bounded safe_strcpy() helper.\nAt ldlogger-tool-gcc.c:129 the destination passed to that helper is fullPath + 2, but the size\npassed down is the full PATH_MAX. safe_strcpy() is strncpy(), which NUL-pads the\ndestination out to the whole n, so this site writes 4096 bytes into the 4094 that remain — a\n2-byte stack overflow on every invocation, independent of the input path's length.\n\n\n\nThis issue affects CodeChecker: through 6.28.2.","supportingMedia":[{"type":"text/html","base64":false,"value":"<p><a title=\"CVE-2025-40843\" href=\"https://github.com/advisories/GHSA-5xf2-f6ch-6p8r\" rel=\"noreferrer\">CVE-2025-40843</a>&nbsp;was fixed by replacing unchecked&nbsp;<code>strcpy()</code>&nbsp;with a bounded&nbsp;<code>safe_strcpy()</code>&nbsp;helper.<br>At&nbsp;<code>ldlogger-tool-gcc.c:129</code>&nbsp;the destination passed to that helper is&nbsp;<code>fullPath + 2</code>, but the size<br>passed down is the&nbsp;<strong>full</strong>&nbsp;<code>PATH_MAX</code>.&nbsp;<code>safe_strcpy()</code>&nbsp;is&nbsp;<code>strncpy()</code>, which NUL-pads the<br>destination out to the whole&nbsp;<code>n</code>, so this site writes 4096 bytes into the 4094 that remain — a<br>2-byte stack overflow&nbsp;<strong>on every invocation</strong>, independent of the input path's length.</p><p>This issue affects CodeChecker: through 6.28.2.</p><p></p>"}]}],"tags":["x_open-source"],"references":[{"url":"https://github.com/Ericsson/codechecker/security/advisories/GHSA-9gcg-v8fg-39q8","tags":["vendor-advisory"]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"LOCAL","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","subConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW","subIntegrityImpact":"LOW","vulnAvailabilityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"PROOF_OF_CONCEPT","Safety":"NEGLIGIBLE","Automatable":"YES","Recovery":"USER","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"LOW","providerUrgency":"GREEN","version":"4.0","baseSeverity":"LOW","baseScore":2,"vectorString":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N/E:P/S:N/AU:Y/R:U/RE:L/U:Green"}}],"credits":[{"lang":"en","value":"Fatullayev Asadbek","type":"finder"}],"source":{"discovery":"INTERNAL"},"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"references":[{"url":"https://github.com/Ericsson/codechecker/security/advisories/GHSA-9gcg-v8fg-39q8","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-28T18:26:51.164522Z","id":"CVE-2026-58106","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2026-08-28T18:27:22.857Z"}}]}}