import re


def get_cves_from_text(text):
    """
    Extracts CVE from the input text.

    :param text: text from which the CVEs are extracted
    :return: extracted CVEs
    """
    cve_pat = r'CVE-\d+-\d+'
    return re.findall(cve_pat, text.upper())