{"answers":{"affected":"4 open source packages ship an affected version, including opensymphony:xwork. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2007-4556 exists.","fix":"Upgrade opensymphony:xwork to a fixed version for your release line: 1.2.3 or 2.0.4.","what":"CVE-2007-4556 is a medium-severity code injection vulnerability in n/a, published on 28 Aug 2007. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2007-4556 and fix it if it is affected.\n\nWhat it is: CVE-2007-4556 is a medium-severity code injection vulnerability in n/a, published on 28 Aug 2007. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2007-4556 exists.\n\nAffected packages and fixed versions:\n- opensymphony:xwork (Maven): affected all versions; fixed in 1.2.3\n- opensymphony:xwork (Maven): affected all versions; fixed in 1.2.3\n- opensymphony:xwork (Maven): affected from 2.0.0; fixed in 2.0.4\n- opensymphony:xwork (Maven): affected from 2.0.0; fixed in 2.0.4\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-2007-4556/ (Markdown: https://insights.sbomify.com/CVE-2007-4556/index.md)","id":"CVE-2007-4556","markdown":"https://insights.sbomify.com/CVE-2007-4556/index.md","name":"CVE-2007-4556","record":{"aliases":["GHSA-h7mf-qrm9-2848"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"yes","non_default_config":true,"product_category":"Java web framework","requires_auth":"none","summary":"Remote attackers can execute arbitrary code or cause denial of service via OGNL injection in XWork when altSyntax is enabled.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"xwork","vendor":"opensymphony"}],"cvss":{"score":6.8,"severity":"medium","source":"nvd","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","version":"2.0"},"cwes":[],"description":"Struts support in OpenSymphony XWork before 1.2.3, and 2.x before 2.0.4, as used in WebWork and Apache Struts, recursively evaluates all input as an Object-Graph Navigation Language (OGNL) expression when altSyntax is enabled, which allows remote attackers to cause a denial of service (infinite loop) or execute arbitrary code via form input beginning with a \"%{\" sequence and ending with a \"}\" character.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":null,"kind":"nuclei","ref":"http/cves/2007/CVE-2007-4556.yaml","stars":null,"title":"OpenSymphony XWork/Apache Struts2 - Remote Code Execution"}],"tier":"weaponised"},"has_fix":true,"headline":"OpenSymphony XWork vulnerable to improper input validation","id":"CVE-2007-4556","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"code_injection","year":"2007"},"n_packages":4,"n_references":14,"next":{"headline":"Cross-site scripting in n/a","id":"CVE-2007-4557"},"packages":[{"ecosystem":"Maven","fixed":["1.2.3"],"introduced":["0"],"last_affected":[],"package":"opensymphony:xwork","purl":null,"source":"GHSA-h7mf-qrm9-2848"},{"ecosystem":"Maven","fixed":["1.2.3"],"introduced":["0"],"last_affected":[],"package":"opensymphony:xwork","purl":"pkg:maven/opensymphony/xwork","source":"GHSA-h7mf-qrm9-2848"},{"ecosystem":"Maven","fixed":["2.0.4"],"introduced":["2.0.0"],"last_affected":[],"package":"opensymphony:xwork","purl":null,"source":"GHSA-h7mf-qrm9-2848"},{"ecosystem":"Maven","fixed":["2.0.4"],"introduced":["2.0.0"],"last_affected":[],"package":"opensymphony:xwork","purl":"pkg:maven/opensymphony/xwork","source":"GHSA-h7mf-qrm9-2848"}],"prev":{"headline":"Cross-site scripting in n/a","id":"CVE-2007-4555"},"products":["n/a"],"published":"2007-08-28","related":[],"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":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-07","vendors":["n/a"]},"summary":"Remote attackers can execute arbitrary code or cause denial of service via OGNL injection in XWork when altSyntax is enabled.","url":"https://insights.sbomify.com/CVE-2007-4556/"}