{"answers":{"affected":"2 open source packages ship an affected version, including commons-httpclient:commons-httpclient. It affects 2 products.","exploited":"There is no known exploitation of CVE-2012-5783 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2012-5783 is a medium-severity vulnerability in Canonical Ubuntu Linux, published on 4 Nov 2012. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2012-5783 and fix it if it is affected.\n\nWhat it is: CVE-2012-5783 is a medium-severity vulnerability in Canonical Ubuntu Linux, published on 4 Nov 2012. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2012-5783 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- commons-httpclient:commons-httpclient (Maven): affected from 3.0; no fix listed\n- commons-httpclient:commons-httpclient (Maven): affected from 3.0; no fix listed\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-5783/ (Markdown: https://insights.sbomify.com/CVE-2012-5783/index.md)","id":"CVE-2012-5783","markdown":"https://insights.sbomify.com/CVE-2012-5783/index.md","name":"CVE-2012-5783","record":{"aliases":["CLSA-2025-1751328213","DEBIAN-CVE-2012-5783","GHSA-3832-9276-x7gf","MGASA-2013-0199","RHSA-2013:0270","RHSA-2013:0680","RHSA-2013:0682","RHSA-2014:0224","openSUSE-SU-2024:10381-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Java HTTP client library","requires_auth":"none","summary":"Man-in-the-middle attackers can spoof SSL servers due to missing hostname verification in Apache Commons HttpClient, compromising secure communications.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"httpclient","vendor":"apache"},{"product":"ubuntu_linux","vendor":"canonical"}],"cvss":{"score":5.8,"severity":"medium","source":"nvd","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:N","version":"2.0"},"cwes":[{"id":"CWE-295","name":"Improper Certificate Validation"}],"description":"Apache Commons HttpClient 3.x, as used in Amazon Flexible Payments Service (FPS) merchant Java SDK and other products, does not verify that the server hostname matches a domain name in the subject's Common Name (CN) or subjectAltName field of the X.509 certificate, which allows man-in-the-middle attackers to spoof SSL servers via an arbitrary valid certificate.","ecosystems":["Maven","Red Hat:enterprise_linux:5::server","Red Hat:enterprise_linux:6::client","Red Hat:enterprise_linux:6::computenode","Red Hat:enterprise_linux:6::server","Red Hat:enterprise_linux:6::workstation","Red Hat:jboss_enterprise_application_platform:5::el4","Red Hat:jboss_enterprise_application_platform:5::el5","Red Hat:jboss_enterprise_application_platform:5::el6","Red Hat:jboss_enterprise_web_platform:5::el5","Red Hat:jboss_enterprise_web_platform:5::el6","Red Hat:rhev_manager:3","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Improper Certificate Validation in Apache Commons HttpClient","id":"CVE-2012-5783","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"canonical:ubuntu_linux","products":["canonical:ubuntu_linux"],"type":"security_feature_bypass","year":"2012"},"n_packages":34,"n_references":18,"next":{"headline":"Man-in-the-middle attack in Apache Axis","id":"CVE-2012-5784"},"packages":[{"ecosystem":"Maven","fixed":[],"introduced":["3.0"],"last_affected":[],"package":"commons-httpclient:commons-httpclient","purl":null,"source":"GHSA-3832-9276-x7gf"},{"ecosystem":"Maven","fixed":[],"introduced":["3.0"],"last_affected":[],"package":"commons-httpclient:commons-httpclient","purl":"pkg:maven/commons-httpclient/commons-httpclient","source":"GHSA-3832-9276-x7gf"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["1:3.0-7jpp.2"],"introduced":["0"],"last_affected":[],"package":"jakarta-commons-httpclient","purl":"pkg:rpm/redhat/jakarta-commons-httpclient","source":"RHSA-2013:0270"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["1:3.0-7jpp.2"],"introduced":["0"],"last_affected":[],"package":"jakarta-commons-httpclient-debuginfo","purl":"pkg:rpm/redhat/jakarta-commons-httpclient-debuginfo","source":"RHSA-2013:0270"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["1:3.0-7jpp.2"],"introduced":["0"],"last_affected":[],"package":"jakarta-commons-httpclient-demo","purl":"pkg:rpm/redhat/jakarta-commons-httpclient-demo","source":"RHSA-2013:0270"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["1:3.0-7jpp.2"],"introduced":["0"],"last_affected":[],"package":"jakarta-commons-httpclient-javadoc","purl":"pkg:rpm/redhat/jakarta-commons-httpclient-javadoc","source":"RHSA-2013:0270"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["1:3.0-7jpp.2"],"introduced":["0"],"last_affected":[],"package":"jakarta-commons-httpclient-manual","purl":"pkg:rpm/redhat/jakarta-commons-httpclient-manual","source":"RHSA-2013:0270"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["1:3.1-0.7.el6_3"],"introduced":["0"],"last_affected":[],"package":"jakarta-commons-httpclient","purl":"pkg:rpm/redhat/jakarta-commons-httpclient","source":"RHSA-2013:0270"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["1:3.1-0.7.el6_3"],"introduced":["0"],"last_affected":[],"package":"jakarta-commons-httpclient-debuginfo","purl":"pkg:rpm/redhat/jakarta-commons-httpclient-debuginfo","source":"RHSA-2013:0270"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["1:3.1-0.7.el6_3"],"introduced":["0"],"last_affected":[],"package":"jakarta-commons-httpclient-demo","purl":"pkg:rpm/redhat/jakarta-commons-httpclient-demo","source":"RHSA-2013:0270"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["1:3.1-0.7.el6_3"],"introduced":["0"],"last_affected":[],"package":"jakarta-commons-httpclient-javadoc","purl":"pkg:rpm/redhat/jakarta-commons-httpclient-javadoc","source":"RHSA-2013:0270"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["1:3.1-0.7.el6_3"],"introduced":["0"],"last_affected":[],"package":"jakarta-commons-httpclient-manual","purl":"pkg:rpm/redhat/jakarta-commons-httpclient-manual","source":"RHSA-2013:0270"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["1:3.1-0.7.el6_3"],"introduced":["0"],"last_affected":[],"package":"jakarta-commons-httpclient","purl":"pkg:rpm/redhat/jakarta-commons-httpclient","source":"RHSA-2013:0270"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["1:3.1-0.7.el6_3"],"introduced":["0"],"last_affected":[],"package":"jakarta-commons-httpclient-debuginfo","purl":"pkg:rpm/redhat/jakarta-commons-httpclient-debuginfo","source":"RHSA-2013:0270"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["1:3.1-0.7.el6_3"],"introduced":["0"],"last_affected":[],"package":"jakarta-commons-httpclient-demo","purl":"pkg:rpm/redhat/jakarta-commons-httpclient-demo","source":"RHSA-2013:0270"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["1:3.1-0.7.el6_3"],"introduced":["0"],"last_affected":[],"package":"jakarta-commons-httpclient-javadoc","purl":"pkg:rpm/redhat/jakarta-commons-httpclient-javadoc","source":"RHSA-2013:0270"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["1:3.1-0.7.el6_3"],"introduced":["0"],"last_affected":[],"package":"jakarta-commons-httpclient-manual","purl":"pkg:rpm/redhat/jakarta-commons-httpclient-manual","source":"RHSA-2013:0270"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["1:3.1-0.7.el6_3"],"introduced":["0"],"last_affected":[],"package":"jakarta-commons-httpclient","purl":"pkg:rpm/redhat/jakarta-commons-httpclient","source":"RHSA-2013:0270"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["1:3.1-0.7.el6_3"],"introduced":["0"],"last_affected":[],"package":"jakarta-commons-httpclient-debuginfo","purl":"pkg:rpm/redhat/jakarta-commons-httpclient-debuginfo","source":"RHSA-2013:0270"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["1:3.1-0.7.el6_3"],"introduced":["0"],"last_affected":[],"package":"jakarta-commons-httpclient-demo","purl":"pkg:rpm/redhat/jakarta-commons-httpclient-demo","source":"RHSA-2013:0270"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["1:3.1-0.7.el6_3"],"introduced":["0"],"last_affected":[],"package":"jakarta-commons-httpclient-javadoc","purl":"pkg:rpm/redhat/jakarta-commons-httpclient-javadoc","source":"RHSA-2013:0270"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["1:3.1-0.7.el6_3"],"introduced":["0"],"last_affected":[],"package":"jakarta-commons-httpclient-manual","purl":"pkg:rpm/redhat/jakarta-commons-httpclient-manual","source":"RHSA-2013:0270"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["1:3.1-0.7.el6_3"],"introduced":["0"],"last_affected":[],"package":"jakarta-commons-httpclient","purl":"pkg:rpm/redhat/jakarta-commons-httpclient","source":"RHSA-2013:0270"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["1:3.1-0.7.el6_3"],"introduced":["0"],"last_affected":[],"package":"jakarta-commons-httpclient-debuginfo","purl":"pkg:rpm/redhat/jakarta-commons-httpclient-debuginfo","source":"RHSA-2013:0270"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["1:3.1-0.7.el6_3"],"introduced":["0"],"last_affected":[],"package":"jakarta-commons-httpclient-demo","purl":"pkg:rpm/redhat/jakarta-commons-httpclient-demo","source":"RHSA-2013:0270"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["1:3.1-0.7.el6_3"],"introduced":["0"],"last_affected":[],"package":"jakarta-commons-httpclient-javadoc","purl":"pkg:rpm/redhat/jakarta-commons-httpclient-javadoc","source":"RHSA-2013:0270"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["1:3.1-0.7.el6_3"],"introduced":["0"],"last_affected":[],"package":"jakarta-commons-httpclient-manual","purl":"pkg:rpm/redhat/jakarta-commons-httpclient-manual","source":"RHSA-2013:0270"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:5::el4","fixed":["1:3.1-2.1_patch_01.ep5.el4"],"introduced":["0"],"last_affected":[],"package":"jakarta-commons-httpclient","purl":"pkg:rpm/redhat/jakarta-commons-httpclient","source":"RHSA-2013:0680"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:5::el5","fixed":["1:3.1-2.1_patch_01.ep5.el5"],"introduced":["0"],"last_affected":[],"package":"jakarta-commons-httpclient","purl":"pkg:rpm/redhat/jakarta-commons-httpclient","source":"RHSA-2013:0680"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:5::el6","fixed":["1:3.1-2_patch_01.ep5.el6"],"introduced":["0"],"last_affected":[],"package":"jakarta-commons-httpclient","purl":"pkg:rpm/redhat/jakarta-commons-httpclient","source":"RHSA-2013:0680"},{"ecosystem":"Red Hat:jboss_enterprise_web_platform:5::el5","fixed":["1:3.1-2.1_patch_01.ep5.el5"],"introduced":["0"],"last_affected":[],"package":"jakarta-commons-httpclient","purl":"pkg:rpm/redhat/jakarta-commons-httpclient","source":"RHSA-2013:0682"},{"ecosystem":"Red Hat:jboss_enterprise_web_platform:5::el6","fixed":["1:3.1-2_patch_01.ep5.el6"],"introduced":["0"],"last_affected":[],"package":"jakarta-commons-httpclient","purl":"pkg:rpm/redhat/jakarta-commons-httpclient","source":"RHSA-2013:0682"},{"ecosystem":"Red Hat:rhev_manager:3","fixed":["0:3.3.0-14.el6ev"],"introduced":["0"],"last_affected":[],"package":"redhat-support-plugin-rhev","purl":"pkg:rpm/redhat/redhat-support-plugin-rhev","source":"RHSA-2014:0224"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.1-8.5"],"introduced":["0"],"last_affected":[],"package":"apache-commons-httpclient","purl":"pkg:rpm/opensuse/apache-commons-httpclient\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:10381-1"}],"prev":{"headline":"Security feature bypass in n/a","id":"CVE-2012-5782"},"products":["n/a"],"published":"2012-11-04","related":[{"cvss_score":9.8,"headline":"Hostname verification in Apache HttpClient 4.3 was disabled by default","id":"CVE-2013-4366","kev_date_added":null,"published":"2017-10-30"},{"cvss_score":9.1,"headline":"Apache HttpComponents Client: TLS hostname verification silently disabled on the async transport (default config, MITM)","id":"CVE-2026-71290","kev_date_added":null,"published":"2026-08-11"},{"cvss_score":7.5,"headline":"Apache HttpComponents: PSL (Public Suffix List) validation bypass","id":"CVE-2025-27820","kev_date_added":null,"published":"2025-04-24"},{"cvss_score":7.3,"headline":"Apache HttpClient accepts SCRAM-SHA-256 authentication without proper mutual authentication verification","id":"CVE-2026-40542","kev_date_added":null,"published":"2026-04-22"},{"cvss_score":5.3,"headline":"Apache HttpComponents Client: Connection Leak on Content-Encoding Decode Error Leads to Pool Exhaustion DoS","id":"CVE-2026-64607","kev_date_added":null,"published":"2026-07-31"},{"cvss_score":5.3,"headline":"Cross-site scripting in Apache HttpClient","id":"CVE-2020-13956","kev_date_added":null,"published":"2020-12-02"}],"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":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-06","vendors":["n/a"]},"summary":"Man-in-the-middle attackers can spoof SSL servers due to missing hostname verification in Apache Commons HttpClient, compromising secure communications.","url":"https://insights.sbomify.com/CVE-2012-5783/"}