{"answers":{"affected":"2 open source packages ship an affected version, including org.apache.sling:org.apache.sling.servlets.post. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2012-2138 exists.","fix":"Upgrade org.apache.sling:org.apache.sling.servlets.post to 2.1.2 or later.","what":"CVE-2012-2138 is a medium-severity denial of service vulnerability in n/a, published on 9 Jul 2012. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2012-2138 and fix it if it is affected.\n\nWhat it is: CVE-2012-2138 is a medium-severity denial of service vulnerability in n/a, published on 9 Jul 2012. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2012-2138 exists.\n\nAffected packages and fixed versions:\n- org.apache.sling:org.apache.sling.servlets.post (Maven): affected all versions; fixed in 2.1.2\n- org.apache.sling:org.apache.sling.servlets.post (Maven): affected all versions; fixed in 2.1.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2012-2138/ (Markdown: https://insights.sbomify.com/CVE-2012-2138/index.md)","id":"CVE-2012-2138","markdown":"https://insights.sbomify.com/CVE-2012-2138/index.md","name":"CVE-2012-2138","record":{"aliases":["GHSA-342c-f869-5m44"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache Sling servlets","requires_auth":"low_privilege","summary":"Remote attackers can cause a denial of service via infinite loop in Apache Sling POST servlet by copying ancestor nodes to descendants.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"org.apache.sling.servlets.post","vendor":"apache"}],"cvss":{"score":5,"severity":"medium","source":"nvd","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","version":"2.0"},"cwes":[{"id":"CWE-264","name":null}],"description":"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.","ecosystems":["Maven"],"exploits":{"exploitdb":1,"first_seen":"2012-07-06","github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[{"date":"2012-07-06","kind":"exploitdb","ref":"37487","stars":null,"title":"Apache Sling - Denial of Service"}],"tier":"weaponised"},"has_fix":true,"headline":"Apache Sling POST Servlets Denial of Service Vulnerability","id":"CVE-2012-2138","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"denial_of_service","year":"2012"},"n_packages":2,"n_references":3,"next":{"headline":"Mail Gem Path Traversal vulnerability","id":"CVE-2012-2139"},"packages":[{"ecosystem":"Maven","fixed":["2.1.2"],"introduced":["0"],"last_affected":[],"package":"org.apache.sling:org.apache.sling.servlets.post","purl":null,"source":"GHSA-342c-f869-5m44"},{"ecosystem":"Maven","fixed":["2.1.2"],"introduced":["0"],"last_affected":[],"package":"org.apache.sling:org.apache.sling.servlets.post","purl":"pkg:maven/org.apache.sling/org.apache.sling.servlets.post","source":"GHSA-342c-f869-5m44"}],"prev":{"headline":"Memory corruption in n/a","id":"CVE-2012-2137"},"products":["n/a"],"published":"2012-07-09","related":[{"cvss_score":5,"headline":"Improper Restriction of Operations within the Bounds of a Memory Buffer in Apache Sling","id":"CVE-2013-2254","kev_date_added":null,"published":"2013-10-17"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-16","vendors":["n/a"]},"summary":"Remote attackers can cause a denial of service via infinite loop in Apache Sling POST servlet by copying ancestor nodes to descendants.","url":"https://insights.sbomify.com/CVE-2012-2138/"}