CertMate handles TLS private keys, ACME account credentials, and DNS-provider API tokens. We take security reports seriously and treat them as the highest priority class of issue in this project.
Only the latest minor release line receives security fixes. Operators running
older lines should upgrade to the latest patch on 2.26.x before reporting —
fixes for retired lines are out of scope.
| Version | Supported |
|---|---|
2.26.x |
Yes |
< 2.26 |
No (please upgrade) |
The supported line moves forward with each 2.x.0 release; everything below
it is retired at that moment. This file is updated by the release tooling, so
the line above is always the one currently receiving fixes.
Do not open a public GitHub issue or pull request for security reports. Public disclosure before a fix is available puts every operator running CertMate at risk.
Open a private security advisory: https://github.com/fabriziosalmi/certmate/security/advisories/new
This is the recommended path. It keeps the report private, gives both sides a durable record, lets the maintainer coordinate a fix in a private fork, and the published advisory becomes the CVE record once a fix ships.
If you cannot use GitHub advisories (no GitHub account, the form is unavailable, the bug is in the advisory flow itself), email fabrizio.salmi@gmail.com with:
- A descriptive subject prefixed with
[certmate-security] - The CertMate version you tested against (output of
docker image inspector the running container's/healthendpoint includes the version) - Reproduction steps or a proof-of-concept
- The impact you observed and the impact you expect
Encrypted email is welcome but not required.
| Stage | Target |
|---|---|
| Acknowledgement of the report | within 72 hours |
| Triage decision (accept / decline / need more info) | within 7 days |
Fix landed on main (for accepted reports) |
within 30 days for high/critical severity |
| Public advisory + release | coordinated with the reporter |
If a report sits in accept state for longer than the target above, send a
gentle nudge to the same channel.
In scope:
- The CertMate application code in this repository (Python backend, JS dashboard, Flask routes, certbot integration, storage backends, deploy hooks).
- The Docker image published from this repository.
- The default configuration shipped in the repository.
Out of scope:
- Third-party dependencies whose vulnerabilities should be reported upstream (certbot, acme.sh, the Azure / AWS / GCP SDKs, etc.). We will of course pull in the fixed version once it lands upstream.
- Operator misconfiguration (running CertMate as root, exposing the dashboard on a public interface without auth, granting overly broad DNS API tokens, etc.). The documentation calls these out; if you find a scenario where the default configuration is unsafe, that is in scope.
- Issues that require physical access or local root on the host running CertMate.
Deploy hooks run operator-configured shell commands on the CertMate host after a successful issuance or renewal (to reload nginx/HAProxy, copy the certificate into place, run custom scripts). This is intentional: a user with the admin role can configure commands that CertMate then executes, so admin access is equivalent to shell access on the host.
Hook commands are validated to reject shell metacharacters and references to
CertMate's own infrastructure secrets (settings.json, api_bearer_token,
client_secret, vault_token, .env). That validation is defence-in-depth
against accidental footguns — it is not a sandbox and is not intended to
contain a malicious admin. The issued certificate's own private key
(privkey.pem) is deliberately not blocked, because installing it is the
normal job of a deploy hook.
Treat the admin role as highly privileged: grant it only to trusted operators, and prefer scoped, non-admin API keys for automation that only needs to create or download certificates.
CertMate pins cryptography==46.0.7 and pyopenssl==26.0.0. Every version
that would clear the advisories below needs a pyOpenSSL that breaks the pinned
ACME stack, so the pins are held deliberately: the alerts are open by choice,
not by oversight. One reason blocks all of them, and one fix clears all of
them (issue #103); both are described once, after the advisories.
Four advisories are held by this constraint. The first is a flaw in the
OpenSSL statically linked into the cryptography wheel; the other three,
published 2026-08-03, are in cryptography's own code and are reached only
through specific APIs. That difference is what makes the reachability argument
below hold for the three, and it is why they are analysed separately rather
than folded into the first.
CertMate currently pins cryptography==46.0.7, which is flagged HIGH by
GHSA-537c-gmf6-5ccf: wheels of cryptography prior to 48.0.1 statically
link an OpenSSL vulnerable to CVE-2026-45447 (heap use-after-free in
PKCS7_verify(), OpenSSL security advisory of 2026-06-09). The fixed
versions are 48.0.1 and later; there is no backported fix on the 46.x
or 47.x lines (46.0.7 is the final 46.x release).
Why the bump is blocked. The constraint chain, verified against PyPI metadata and a clean-room install on 2026-07-07:
acme==3.3.0requirespyOpenSSL>=25.0.0;josepy==1.13.0also depends on pyOpenSSL. These pins, together withcertbot==2.10.0, are deliberately held (see issue #103).- The first pyOpenSSL release whose metadata admits cryptography
48.xis26.2.0(cryptography>=46.0.0,<49). The pinnedpyopenssl==26.0.0caps at<47, and26.1.0caps at<48. - pyOpenSSL
26.2.0(2026-05-04) removed the long-deprecatedOpenSSL.crypto.X509Extension. acme==3.3.0referencescrypto.X509Extensionin the signature ofacme.crypto_util.gen_ss_cert()withoutfrom __future__ import annotations, so the name is evaluated at import time. Withpyopenssl>=26.2.0,import acme.crypto_util— and therefore everycertbotinvocation — fails withAttributeError: module 'OpenSSL.crypto' has no attribute 'X509Extension'(reproduced withcryptography==48.0.1+pyopenssl==26.2.0:certbot --versioncrashes).- The same applies to
cryptography49.x, which needspyopenssl>=26.3.0.
In short: every cryptography version that fixes the GHSA requires a pyOpenSSL that breaks the pinned ACME stack at import.
Re-verified 2026-08-08 against cryptography==50.0.0 (Dependabot #516), and
the situation has become more dangerous, not less.
- pip now accepts the combination.
pip install certbot==2.10.0 josepy==1.13.0 cryptography==50.0.0resolves and installs cleanly, pullingpyopenssl==26.4.0. The dependency metadata no longer refuses it, so the guard rail that used to stop this bump at resolution time is gone. The failure has moved from install time to run time: an image builds green and then dies the first time it tries to issue a certificate. - The failure is now
X509Req, notX509Extension. pyOpenSSL 26.4.0 has dropped both (hasattr(OpenSSL.crypto, 'X509Req') == False), andX509Reqis the one that breaks first. certbotitself no longer starts. Not merelyacme.crypto_util:certbot --versionraisesAttributeError: module 'OpenSSL.crypto' has no attribute 'X509Req'fromcertbot/_internal/main.py:21. CertMate drives certbot as a CLI subprocess, so this is the entire issuance path, not a library nicety.
So the pin is now doing more work than it was, not less: nothing upstream
enforces it any more. Do not relax cryptography or pyopenssl here without
re-running that clean-room install and confirming certbot --version still
answers. The real fix remains the certbot 5.x stack migration (#103).
Mitigation / actual exposure. The vulnerable code path is
PKCS7_verify() (PKCS#7 / S/MIME signature verification):
- No CertMate code path reaches it. Nothing in
modules/orapp.py, nor in the pinnedcertbot/acme/josepystack, performs PKCS#7 or S/MIME verification, and pyca/cryptography's Python API does not expose PKCS#7 signature verification at all (it can only create and serialize PKCS#7 structures). The vulnerable function is present in the statically linked library but unreachable from CertMate. - The operations that do run inside the statically linked OpenSSL — X.509 parsing and issuance, CSR handling, the private CA, client certificates, OCSP/CRL checks, and audit-log signing — do not touch the PKCS#7 routines.
- CertMate's TLS network I/O (gunicorn/Flask,
requeststo ACME and DNS provider APIs) uses Python'ssslmodule, which links the interpreter's own OpenSSL, not the copy inside the cryptography wheel.
Three further advisories against cryptography <= 46.0.7 were published on
2026-08-03. They are a different shape from the one above: the defect is in
cryptography's own Rust and Python code, not in the linked OpenSSL, so each
is reached through one named API and through nothing else.
| Advisory | Severity | Defect | Reached through | First fixed in |
|---|---|---|---|---|
| GHSA-g6cj-pr64-35w5 | HIGH | duplicate self-signed intermediates cause exponential X.509 path building | cryptography.x509.verification |
49.0.0 |
| GHSA-jwv3-5hgf-82ww | HIGH | PKCS#7 EnvelopedData decryption exposes a Bleichenbacher oracle |
the PKCS#7 decryption API | 50.0.0 |
| GHSA-m2h6-j472-rp4c | MEDIUM | the verifier accepts wildcard DNS names, allowing escape from permittedSubtrees name constraints |
cryptography.x509.verification |
49.0.0 |
Actual exposure: none of the three is reachable. Two need the X.509
verifier (PolicyBuilder / ClientVerifier / ServerVerifier), one needs
PKCS#7 EnvelopedData decryption. Neither API is called anywhere in the
shipped stack — verified across modules/, app.py and the pinned
certbot==2.10.0 / acme==3.3.0 / josepy==1.13.0, none of which references
x509.verification, PolicyBuilder, ClientVerifier, ServerVerifier,
pkcs7 or EnvelopedData.
What CertMate does use from cryptography is X.509 parsing and building,
Fernet, hashes, key serialization, RSA and Ed25519 key generation, and
PBKDF2. The .pfx export
(modules/core/storage_backends.py:175) calls serialization.pkcs12, which
is PKCS#12 — a different structure and a different code path from the PKCS#7
EnvelopedData decryption the Bleichenbacher advisory describes. CertMate
never decrypts PKCS#7 at all; it only ever writes PKCS#12.
The constraint has tightened, not loosened. Clearing all three needs
cryptography>=50.0.0, and 50.0.0 is the exact version the re-verification
above proves fatal: it installs cleanly and then certbot --version dies on
X509Req. The version that would close these alerts is the version that
breaks issuance.
Fix path. The certbot 5.x migration epic (issue #103): newer acme
releases drop the removed pyOpenSSL API but require josepy>=2 and a newer
certbot line. Once that migration lands, pyopenssl>=26.2.0 and
cryptography>=48.0.1 unblock together, and all four Dependabot alerts above
can be closed. Until then they remain open by choice, not by oversight, and
this section is the record of that choice: an advisory against cryptography
that is not listed here has not been assessed, and should be treated as new.
We coordinate disclosure with the reporter. For high or critical severity:
- A fix lands on a private branch.
- A release is prepared and the security advisory is drafted in parallel.
- The release tag, the advisory publication, and (where appropriate) the CVE request all go out together.
- The advisory credits the reporter unless they request anonymity.
Thank you for taking the time to make CertMate safer for the operators who depend on it.