CVE-2007-5615: Jetty Mortbay Jetty CRLF Injection Vulnerability Vulnerability
MODERATECVE-2007-5615 is a MODERATE mortbay jetty crlf injection vulnerability vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Jetty libraries in the Maven ecosystem. The issue involves mortbay jetty crlf injection vulnerability. Remediation is available by upgrading affected packages to version 6.1.6rc0.
CVE-2007-5615 at a Glance
How to Fix CVE-2007-5615
To remediate this vulnerability, upgrade all affected Jetty dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty</artifactId>
<version>6.1.6rc0</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.mortbay.jetty
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2007-5615, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.mortbay.jetty
Analyze the terminal output to locate any version of Jetty in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.1.6rc0), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.mortbay.jetty command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Jetty, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2007-5615 Affected Jetty Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.mortbay.jetty:jetty
|
Maven |
< 6.1.6rc0
|
6.1.6rc0
|
References
Frequently Asked Questions
What is CVE-2007-5615?
Which Jetty versions are affected?
What version fixes CVE-2007-5615?
Is jetty affected?
What CWE is associated with CVE-2007-5615?
How can I check Maven dependencies for CVE-2007-5615?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-966r-962g-2jq5",
"modified" : "2023-09-21T23:12:42Z",
"published" : "2022-05-01T18:35:01Z",
"aliases" : [ "CVE-2007-5615" ],
"summary" : "Mortbay Jetty CRLF Injection Vulnerability",
"details" : "CRLF injection vulnerability in Mortbay Jetty before 6.1.6rc0 allows remote attackers to inject arbitrary HTTP headers and conduct HTTP response splitting attacks via unspecified vectors.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.mortbay.jetty:jetty"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.1.6rc0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2007-5615"
}, {
"type" : "WEB",
"url" : "https://github.com/jetty-project/codehaus-jetty6/commit/0d2592ea3183914163d0921e4855bd3e18582a05"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20071007232422/http://svn.codehaus.org:80/jetty/jetty/trunk/VERSION.txt"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20150112202621/http://www.securityfocus.com/bid/26696"
}, {
"type" : "WEB",
"url" : "https://www.redhat.com/archives/fedora-package-announce/2008-July/msg00227.html"
}, {
"type" : "WEB",
"url" : "https://www.redhat.com/archives/fedora-package-announce/2008-July/msg00250.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2009-02/msg00002.html"
}, {
"type" : "WEB",
"url" : "http://www.kb.cert.org/vuls/id/212984"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-09-21T23:12:42Z",
"nvd_published_at" : "2007-12-05T11:46:00Z"
}
}