Skip to content

Fix CVE-2026-9648: require crypton-x509-validation >= 1.9.1#205

Merged
ikaro1192 merged 1 commit into
mainfrom
worktree-crispy-giggling-mochi
Jun 15, 2026
Merged

Fix CVE-2026-9648: require crypton-x509-validation >= 1.9.1#205
ikaro1192 merged 1 commit into
mainfrom
worktree-crispy-giggling-mochi

Conversation

@ikaro1192

Copy link
Copy Markdown
Owner

Summary

  • PureMyHA validates MySQL server certificates (verify-ca / verify-full modes) via crypton-x509-validation in src/PureMyHA/MySQL/TLS.hs.
  • Versions of that library before 1.9.1 fail to enforce X.509 NameConstraints (CVE-2026-9648 / CWE-295), allowing a name-constrained sub-CA to issue certificates for domains outside its permitted subtree — enabling MITM / domain impersonation.
  • The previous >= 1.6 lower bound permitted resolving a vulnerable version. Bumped to >= 1.9.1 (the patched release).
  • skip-verify / disabled modes do not perform validation and are unaffected (they already emit a startup WARN).

Test plan

  • cabal update then cabal build all resolves crypton-x509-validation-1.9.1 and links cleanly.
  • cabal test passes (51/51).
  • Verify TLS E2E (verify-ca / verify-full) still connects against the test MySQL container.

🤖 Generated with Claude Code

Versions of crypton-x509-validation before 1.9.1 fail to enforce X.509
NameConstraints (CWE-295), letting a name-constrained sub-CA issue certs
for domains outside its permitted subtree. PureMyHA uses this library for
MySQL TLS certificate validation (verify-ca and verify-full modes), so it
was exposed to MITM/impersonation. Bump the lower bound to the patched
release.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@codecov

codecov Bot commented Jun 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.18%. Comparing base (a02b5ce) to head (648fb7f).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #205   +/-   ##
=======================================
  Coverage   97.18%   97.18%           
=======================================
  Files          50       50           
  Lines        8175     8175           
=======================================
  Hits         7945     7945           
  Misses        230      230           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ikaro1192 ikaro1192 merged commit fe117cc into main Jun 15, 2026
12 checks passed
@ikaro1192 ikaro1192 deleted the worktree-crispy-giggling-mochi branch June 15, 2026 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant