Loading...
Skip to main content

CVE-2026-40944 — Vulnerability in github.com/oxia-db/oxia — CVE...

HIGH

Oxia's TLS CA certificate chain validation fails with multi-certificate PEM bundles

Published April 14, 2026Updated June 25, 2026Source: osv

Summary

### Summary 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. ### Impact In 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. All versions using TLS with `trustedCaFile` configuration are affected. ### Details In `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. ### Patches Fixed by iterating over all PEM blocks in the file, parsing each CERTIFICATE block, and returning an error if no valid certificates are found. ### Workarounds Use CA files containing only a single certificate (the direct issuer of client certificates, not a chain).

Advisory Timeline

  • First published April 14, 2026 (181 days ago).
  • Last revised June 25, 2026 — 72 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update github.com/oxia-db/oxia to 0.16.2 or later
go get github.com/oxia-db/oxia@v0.16.2

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: go (1).

PackageEcosystemAffectedFixed In
github.com/oxia-db/oxia
go
All versions0.16.2

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-295
    Improper Certificate ValidationMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
—
Confidentiality
—
Integrity
—
Availability
—

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

Frequently Asked Questions

What is CVE-2026-40944?
Oxia's TLS CA certificate chain validation fails with multi-certificate PEM bundles This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.1/10).
How do I check if my project is affected by CVE-2026-40944?
CVE-2026-40944 affects github.com/oxia-db/oxia. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-40944 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.1

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-7jrq-q4pq-rhm6
GO-2026-5226

Related CVEs

  • CVE-2026-40946
    CRITICAL

    Oxia has an OIDC token audience validation bypass via SkipClientIDCheck

  • CVE-2026-107809
    HIGH

    Nginx-UI AuthRequired token cookie fallback enables CSRF against management APIs

  • CVE-2026-107813
    HIGH

    Nginx UI: Incomplete fix of CVE-2026-84315 - the api/cluster router was not - wrapped in RequireSecureSession, so those sensitive mutations run without OTP step-up

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies