{"id":"CVE-2026-40944","aliases":["CVE-2026-40944","GHSA-7jrq-q4pq-rhm6","GO-2026-5226"],"related":[],"kind":"vulnerability","state":"published","title":"Oxia: TLS CA certificate chain validation fails with multi-certificate PEM bundles","summary":"Oxia is a metadata store and coordination system. Prior to 0.16.2, the trustedCertPool() function in the TLS configuration only parses the first PEM block from CA certificate files. When a CA bundle contains multiple certificates (e.g., intermediate + root CA), only the first certificate is loaded. This silently breaks certificate chain validation for mTLS. This vulnerability is fixed in 0.16.2.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Oxia is a metadata store and coordination system. Prior to 0.16.2, the trustedCertPool() function in the TLS configuration only parses the first PEM block from CA certificate files. When a CA bundle contains multiple certificates (e.g., intermediate + root CA), only the first certificate is loaded. This silently breaks certificate chain validation for mTLS. This vulnerability is fixed in 0.16.2.","source":"cvelist"},{"lang":"en","text":"### Summary\nThe `trustedCertPool()` function in the TLS configuration only parses the first PEM block from CA certificate files. When a CA bundle contains multiple certificates (e.g., intermediate + root CA), only the first certificate is loaded. This silently breaks certificate chain validation for mTLS.\n\n### Impact\nIn deployments using mTLS with certificate chains (intermediate CA + root CA bundles), legitimate clients with properly chained certificates are rejected with `x509: certificate signed by unknown authority`. This degrades the security posture by making mTLS unusable with standard CA chain configurations, potentially forcing operators to disable client certificate verification.\n\nAll versions using TLS with `trustedCaFile` configuration are affected.\n\n### Details\nIn `common/security/tls.go`, the `trustedCertPool()` method calls `pem.Decode()` only once, processing a single PEM block. The remaining bytes (containing additional certificates) are silently discarded. Additionally, the error return from `pem.Decode` is ignored, so a corrupted CA file results in an empty certificate pool without any error.\n\n### Patches\nFixed by iterating over all PEM blocks in the file, parsing each CERTIFICATE block, and returning an error if no valid certificates are found.\n\n### Workarounds\nUse CA files containing only a single certificate (the direct issuer of client certificates, not a chain).","format":"markdown","source":"ghsa"},{"lang":"en","text":"Oxia's TLS CA certificate chain validation fails with multi-certificate PEM bundles in github.com/oxia-db/oxia","format":"markdown","source":"go"}],"published":"2026-04-14T23:15:16.000Z","modified":"2026-06-25T19:56:16.105Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U","rating":"HIGH"}],"cwes":["CWE-295"],"affected":[{"ranges":[{"version":"< 0.16.2","status":"affected"}],"vendor":"oxia-db","product":"oxia","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.16.2"}],"ecosystem":"Go","package":"github.com/oxia-db/oxia","purl":"pkg:golang/github.com/oxia-db/oxia","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.16.2"}],"ecosystem":"Go","package":"github.com/oxia-db/oxia","purl":"pkg:golang/github.com/oxia-db/oxia","source":"go"}],"references":[{"url":"https://github.com/oxia-db/oxia/security/advisories/GHSA-7jrq-q4pq-rhm6","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40944","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/oxia-db/oxia","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-04-22T13:18:24.370Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-40944","url":"https://www.cve.org/CVERecord?id=CVE-2026-40944","licence":"CVE Terms of Use","modified":"2026-04-22T13:18:32.925Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7jrq-q4pq-rhm6","url":"https://github.com/advisories/GHSA-7jrq-q4pq-rhm6","licence":"CC-BY-4.0","modified":"2026-06-25T19:56:16.105Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5226","url":"https://pkg.go.dev/vuln/GO-2026-5226","licence":"CC-BY-4.0","modified":"2026-06-25T19:45:16.800Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-40944","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40944","licence":"Public domain","modified":"2026-06-17T10:45:55.313Z"}],"updatedAt":"2026-11-25T22:59:19.199Z","epss":{"score":0.00167,"percentile":0.06222,"date":"2026-12-01T12:00:22.000Z"}}