Vulnerabilities in pkg:maven/org.apache.sling/org.apache.sling.servlets.post
PACKAGECVE-2012-2138 is a MODERATE denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Org.apache.sling.servlets.post libraries in the Maven ecosystem. The issue involves apache sling post servlets denial of service vulnerability. Remediation is available by upgrading affected packages to version 2.1.2.
pkg:maven/org.apache.sling/org.apache.sling.servlets.post
Vulnerability advisories affecting package pkg:maven/org.apache.sling/org.apache.sling.servlets.post. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-342c-f869-5m44 | CVE-2012-2138 | MODERATE | Apache Sling POST Servlets Denial of Service Vulnerability |
| GHSA-rxvx-44w5-44r7 | CVE-2015-2944 | MODERATE | Improper Neutralization of Input During Web Page Generation in Apache Sling |
| GHSA-m27m-628v-xxp2 | CVE-2016-0956 | HIGH | Exposure of Sensitive Information to an Unauthorized Actor in Apache Sling Servlets Post |
| GHSA-8c82-9rgp-4qvr | CVE-2017-9802 | MODERATE | Improper Neutralization of Input During Web Page Generation Apache Sling Servlets Post |
CVE-2012-2138 at a Glance
How to Fix CVE-2012-2138
To remediate this vulnerability, upgrade all affected Org.apache.sling.servlets.post 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.apache.sling</groupId>
<artifactId>org.apache.sling.servlets.post</artifactId>
<version>2.1.2</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.apache.sling
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2012-2138, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.sling
Analyze the terminal output to locate any version of Org.apache.sling.servlets.post in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.1.2), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.sling 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-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Org.apache.sling.servlets.post, 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-2012-2138 Affected Org.apache.sling.servlets.post Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.sling:org.apache.sling.servlets.post
|
Maven |
< 2.1.2
|
2.1.2
|
References
Frequently Asked Questions
What is CVE-2012-2138?
Which Org.apache.sling.servlets.post versions are affected?
What version fixes CVE-2012-2138?
Is org.apache.sling.servlets.post affected?
What CWE is associated with CVE-2012-2138?
How can I check Maven dependencies for CVE-2012-2138?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-342c-f869-5m44",
"modified" : "2023-08-29T22:53:50Z",
"published" : "2022-05-17T05:28:00Z",
"aliases" : [ "CVE-2012-2138" ],
"summary" : "Apache Sling POST Servlets Denial of Service Vulnerability",
"details" : "The `@CopyFrom` operation in the POST servlet in the `org.apache.sling.servlets.post` bundle before 2.1.2 in Apache Sling does not prevent attempts to copy an ancestor node to a descendant node, which allows remote attackers to cause a denial of service (infinite loop) via a crafted HTTP request.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.sling:org.apache.sling.servlets.post"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.1.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-2138"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/sling-org-apache-sling-servlets-post/commit/0205892908d6ea755645be5fc16e9df53e2e7261"
}, {
"type" : "WEB",
"url" : "https://issues.apache.org/jira/browse/SLING-2517"
}, {
"type" : "WEB",
"url" : "http://mail-archives.apache.org/mod_mbox/www-announce/201207.mbox/%3CCAEWfVJ=PwoQmwJg0KmbrC17Gw51kgfKRsqgy=4RpMQsdGh0bVg@mail.gmail.com%3E"
}, {
"type" : "WEB",
"url" : "http://svn.apache.org/viewvc?view=revision&revision=1352865"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-08-29T22:53:50Z",
"nvd_published_at" : "2012-07-09T22:55:00Z"
}
}