Skip to content

openssl_csr_sign might leak new cert on error #12987

Closed
@bukka

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

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