{
    "CVE_data_meta": {
        "ASSIGNER": "security@apache.org",
        "ID": "CVE-2022-28220",
        "STATE": "PUBLIC",
        "TITLE": "STARTTLS command injection in Apache JAMES"
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "product": {
                        "product_data": [
                            {
                                "product_name": "Apache James",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "<=",
                                            "version_name": "Apache James",
                                            "version_value": "3.6.2"
                                        },
                                        {
                                            "version_affected": "<=",
                                            "version_name": "Apache James",
                                            "version_value": "3.7.0"
                                        }
                                    ]
                                }
                            }
                        ]
                    },
                    "vendor_name": "Apache Software Foundation"
                }
            ]
        }
    },
    "credit": [
        {
            "lang": "eng",
            "value": "Apache James PMC would like to thanks Benoit TELLIER for this report, and Fabian Ising for his support."
        }
    ],
    "data_format": "MITRE",
    "data_type": "CVE",
    "data_version": "4.0",
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "Apache James prior to release 3.6.3 and 3.7.1 is vulnerable to a buffering attack relying on the use of the STARTTLS command. Fix of CVE-2021-38542, which solved similar problem fron Apache James 3.6.1, is subject to a parser differential and do not take into account concurrent requests."
            }
        ]
    },
    "generator": {
        "engine": "Vulnogram 0.0.9"
    },
    "impact": [
        {
            "other": "This can result in Man-in -the-middle command injection attacks, leading potentially to leakage of sensible information like user credentials. Exploit in IMAP requires a local account but SMTP exploit does not. Data integrity could be compromised in POP3."
        }
    ],
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "refsource": "MISC",
                "url": "https://james.apache.org/james/update/2022/08/26/james-3.7.1.html",
                "name": "https://james.apache.org/james/update/2022/08/26/james-3.7.1.html"
            },
            {
                "refsource": "MLIST",
                "name": "[oss-security] 20220919 CVE-2022-28220: STARTTLS command injection in Apache JAMES",
                "url": "http://www.openwall.com/lists/oss-security/2022/09/20/1"
            }
        ]
    },
    "source": {
        "defect": [
            "JAMES-1862"
        ],
        "discovery": "UNKNOWN"
    },
    "work_around": [
        {
            "lang": "eng",
            "value": "Upgrade to Apache James 3.7.1 or Apache James 3.6.3."
        }
    ]
}