{
    "containers": {
        "cna": {
            "affected": [
                {
                    "product": "Apache James",
                    "vendor": "Apache Software Foundation",
                    "versions": [
                        {
                            "lessThanOrEqual": "3.6.2",
                            "status": "affected",
                            "version": "Apache James",
                            "versionType": "custom"
                        }
                    ]
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "Apache James PMC would like to thanks Benoit TELLIER for this report, and Fabian Ising for his support."
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "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."
                }
            ],
            "metrics": [
                {
                    "other": {
                        "content": {
                            "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."
                        },
                        "type": "unknown"
                    }
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-77",
                            "description": "CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "dateUpdated": "2022-09-20T11:06:21",
                "orgId": "f0158376-9dc2-43b6-827c-5f631a4d8d09",
                "shortName": "apache"
            },
            "references": [
                {
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://james.apache.org/james/update/2022/08/26/james-3.7.1.html"
                },
                {
                    "name": "[oss-security] 20220919 CVE-2022-28220: STARTTLS command injection in Apache JAMES",
                    "tags": [
                        "mailing-list",
                        "x_refsource_MLIST"
                    ],
                    "url": "http://www.openwall.com/lists/oss-security/2022/09/20/1"
                }
            ],
            "source": {
                "defect": [
                    "JAMES-1862"
                ],
                "discovery": "UNKNOWN"
            },
            "title": "STARTTLS command injection in Apache JAMES",
            "workarounds": [
                {
                    "lang": "en",
                    "value": "Upgrade to Apache James 3.7.1 or Apache James 3.6.3."
                }
            ],
            "x_generator": {
                "engine": "Vulnogram 0.0.9"
            },
            "x_legacyV4Record": {
                "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 +1"
                                                    }
                                                ]
                                            }
                                        }
                                    ]
                                },
                                "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": [
                        {
                            "name": "https://james.apache.org/james/update/2022/08/26/james-3.7.1.html",
                            "refsource": "MISC",
                            "url": "https://james.apache.org/james/update/2022/08/26/james-3.7.1.html"
                        },
                        {
                            "name": "[oss-security] 20220919 CVE-2022-28220: STARTTLS command injection in Apache JAMES",
                            "refsource": "MLIST",
                            "url": "http://www.openwall.com/lists/oss-security/2022/09/20/1"
                        }
                    ]
                },
                "source": {
                    "defect": [
                        "JAMES-1862"
                    ],
                    "discovery": "UNKNOWN"
                },
                "work_around": [
                    {
                        "lang": "en",
                        "value": "Upgrade to Apache James 3.7.1 or Apache James 3.6.3."
                    }
                ]
            }
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-03T05:48:37.476Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://james.apache.org/james/update/2022/08/26/james-3.7.1.html"
                    },
                    {
                        "name": "[oss-security] 20220919 CVE-2022-28220: STARTTLS command injection in Apache JAMES",
                        "tags": [
                            "mailing-list",
                            "x_refsource_MLIST",
                            "x_transferred"
                        ],
                        "url": "http://www.openwall.com/lists/oss-security/2022/09/20/1"
                    }
                ]
            }
        ]
    },
    "cveMetadata": {
        "assignerOrgId": "f0158376-9dc2-43b6-827c-5f631a4d8d09",
        "assignerShortName": "apache",
        "cveId": "CVE-2022-28220",
        "datePublished": "2022-09-08T07:40:09",
        "dateReserved": "2022-03-30T00:00:00",
        "dateUpdated": "2024-08-03T05:48:37.476Z",
        "state": "PUBLISHED"
    },
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1"
}