{"answers":{"affected":"2 open source packages ship an affected version, including org.apache.archiva:archiva-common. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-27140 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2024-27140 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-27140 is a medium-severity cross-site scripting vulnerability in Apache Archiva, published on 1 Mar 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-27140 and fix it if it is affected.\n\nWhat it is: CVE-2024-27140 is a medium-severity cross-site scripting vulnerability in Apache Archiva, published on 1 Mar 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-27140 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.archiva:archiva-common (Maven): affected from 2.0.0 up to 2.2.10; no fix listed\n- org.apache.archiva:archiva-common (Maven): affected from 2.0.0 up to 2.2.10; 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-2024-27140/ (Markdown: https://insights.sbomify.com/CVE-2024-27140/index.md)","id":"CVE-2024-27140","markdown":"https://insights.sbomify.com/CVE-2024-27140/index.md","name":"CVE-2024-27140","record":{"aliases":["GHSA-hp2x-6vrm-7j7v"],"analysis":{"component_type":"server_software","fix_type":"end_of_life","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache Archiva","requires_auth":"low_privilege","summary":"Reflected XSS in Apache Archiva allows attackers to execute scripts, but the project is retired with no official fix available.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"archiva","vendor":"apache"}],"cvss":{"score":5.4,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"** UNSUPPORTED WHEN ASSIGNED **\n\nImproper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Apache Archiva.\n\nThis issue affects Apache Archiva: from 2.0.0.\n\nAs this project is retired, we do not plan to release a version that fixes this issue. Users are recommended to find an alternative or restrict access to the instance to trusted users. Alternatively, you could configure a HTTP proxy in front of your Archiva instance to only forward requests that do not have malicious characters in the URL.\n\nNOTE: This vulnerability only affects products that are no longer supported by the maintainer.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Apache Archiva: reflected XSS","id":"CVE-2024-27140","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":2,"n_references":2,"next":{"headline":"Pre-authenticated Time-Based Blind XXE injection","id":"CVE-2024-27141"},"packages":[{"ecosystem":"Maven","fixed":[],"introduced":["2.0.0"],"last_affected":["2.2.10"],"package":"org.apache.archiva:archiva-common","purl":null,"source":"GHSA-hp2x-6vrm-7j7v"},{"ecosystem":"Maven","fixed":[],"introduced":["2.0.0"],"last_affected":["2.2.10"],"package":"org.apache.archiva:archiva-common","purl":"pkg:maven/org.apache.archiva/archiva-common","source":"GHSA-hp2x-6vrm-7j7v"}],"prev":{"headline":"Apache Archiva: incorrect authentication potentially leading to account takeover","id":"CVE-2024-27139"},"products":["Apache Archiva"],"published":"2024-03-01","related":[{"cvss_score":9.8,"headline":"Apache Struts Improper Input Validation","id":"CVE-2013-2251","kev_date_added":"2022-03-25","published":"2013-07-18"},{"cvss_score":8.8,"headline":"Cross-site request forgery in n/a","id":"CVE-2016-4469","kev_date_added":null,"published":"2016-07-28"},{"cvss_score":8,"headline":"Apache Archiva vulnerable to Cross Site Request Forgery","id":"CVE-2017-5657","kev_date_added":null,"published":"2017-05-22"},{"cvss_score":7.5,"headline":"Apache Archiva: disabling user registration is not effective","id":"CVE-2024-27138","kev_date_added":null,"published":"2024-03-01"},{"cvss_score":7.5,"headline":"Apache Archiva: incorrect authentication potentially leading to account takeover","id":"CVE-2024-27139","kev_date_added":null,"published":"2024-03-01"},{"cvss_score":7.5,"headline":"Apache Archiva prior to 2.2.9 may allow the anonymous user to read arbitrary files","id":"CVE-2022-40308","kev_date_added":null,"published":"2022-11-15"},{"cvss_score":6.8,"headline":"Cross-site request forgery in n/a","id":"CVE-2011-1026","kev_date_added":null,"published":"2011-06-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":"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":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-13","vendors":["Apache Software Foundation"]},"summary":"Reflected XSS in Apache Archiva allows attackers to execute scripts, but the project is retired with no official fix available.","url":"https://insights.sbomify.com/CVE-2024-27140/"}