SMTP Header Injection Affecting org.apache.commons:commons-email package, versions [,1.5)


0.0
high

Snyk CVSS

    Attack Complexity Low
    Integrity High

    Threat Intelligence

    EPSS 0.28% (68th percentile)
Expand this section
NVD
7.5 high

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-JAVA-ORGAPACHECOMMONS-31458
  • published 31 Aug 2017
  • disclosed 31 Jul 2017
  • credit Adam Williams

How to fix?

Upgrade org.apache.commons:commons-email to version 1.5 or higher.

Overview

org.apache.commons:commons-email aims to provide a API for sending email.

Affected versions of the package are vulnerable to SMTP Header Injection. When a call-site passes a subject for an email that contains line-breaks in Apache Commons Email 1.0 through 1.4, the caller can add arbitrary SMTP headers.