Skip to content

[Bug]: x509_v2 basicConstraints does not validate pathlen against issuer cert #70042

Closed

Description

@lkubb

What happened?

When creating a CA certificate with a basicConstraints extension, salt.utils.x509._create_basic_constraints does not validate that an explicit pathlen is at most one lower than the one specified in the issuer certificate.

Also, if pathlen is not specified, it should default to pathlen_of_issuer - 1, while it currently issues a cert without one.

Type of salt install

Official deb

Major version

3006.x, 3007.x, 3008.x

What supported OS are you seeing the problem on? Can select multiple. (If bug appears on an unsupported OS, please open a GitHub Discussion instead)

ubuntu-24.04

salt --versions-report output

Latest HEAD of 3006.x

Activity

  1. added
    bug
    on Aug 14, 2026
  2. added a commit that references this issue on Aug 16, 2026
    b7594b3
  3. dwoz commented on Oct 16, 2026

    @dwoz
    Contributor

    This was fixed in v3006.28 and v3007.15. If you can still reproduce it on either release, please comment and we'll reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions