Email me

Rust advisories / x509-validator

Vulnerability HighRUSTSEC-2026-0312 · x509-validator

RUSTSEC-2026-0312: Excluded iPAddress name constraints with an all-zero mask are not applied

Short answerA security vulnerability in the x509-validator crate: Excluded iPAddress name constraints with an all-zero mask are not applied. High severity (CVSS 7.4). Fixed in 0.3.1: update to a fixed version.

Cratex509-validator
TypeVulnerability (crypto-failure)
Affected versionsBefore 0.3.1.
Fixed in0.3.1
SeverityHigh, CVSS 7.4
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Published2026-09-24
Last changed2026-09-28
Also known asGHSA-39mm-4q6x-3vrx

What to do

  1. See which version you have: cargo tree -i x509-validator (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p x509-validator. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example x509-validator = "0.3.1") or update the dependency that pulls it in.
  3. Check again with cargo audit, or paste your Cargo.lock into our Cargo.toml checker.

Details from the advisory

An excluded_subtrees iPAddress name constraint with an all-zero mask (0.0.0.0/0 or ::/0) does not restrict iPAddress SANs in certificates issued beneath it. The mask check treated an all-zero mask as matching nothing, when a /0 prefix matches every address of its family, so the exclusion was silently ignored.

CA/Browser Forum Baseline Requirements ยง7.1.2.5.2 require exactly these exclusions on every technically constrained sub-CA that may not issue for IP addresses. As a result, anyone holding (or having compromised) the key of such a sub-CA can issue a certificate for an arbitrary IP address, and Validator with RFC5280Policy and ServerIdentityPolicy accepts it for that address. A permitted_subtrees dNSName entry on the same issuer does not prevent this, because iPAddress SANs are a different name form.

All users of Validator with RFC5280Policy are affected when a chain can contain a name-constrained issuer with an all-zero iPAddress exclusion.

The issue is fixed in x509-validator 0.3.1 (commit da661f8). Users should upgrade to 0.3.1 or later.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Up next

Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ