Skip to content

openssl_csr_sign might leak new cert on error #12987

Closed

Description

@bukka

Description

The new_cert variable in openssl_csr_sign implementation is not correctly freed if there is an error. It should be always checked in the clean if not used (set to the new object) and if so, then freed.

PHP Version

PHP 8.2+

Operating System

No response

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions