import re


def is_correct_cve_id(cve):
    """
    Checks whether ID of CVE is valid.

    :param cve: ID of CVE
    :return: True if valid
    """
    return cve is not None and re.match(r'cve-\d+-\d+', cve.lower())