{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-63317 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2026-63317 is a medium-severity unsafe deserialization vulnerability in Apache OpenNLP, published on 24 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-63317 and fix it if it is affected.\n\nWhat it is: CVE-2026-63317 is a medium-severity unsafe deserialization vulnerability in Apache OpenNLP, published on 24 Jul 2026. 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-2026-63317 in the wild and no public exploit code.\n\nAffected product: Apache OpenNLP. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2026-63317/ (Markdown: https://insights.sbomify.com/CVE-2026-63317/index.md)","id":"CVE-2026-63317","markdown":"https://insights.sbomify.com/CVE-2026-63317/index.md","name":"CVE-2026-63317","record":{"aliases":["DEBIAN-CVE-2026-63317","GHSA-ccq5-x868-5p6x","RHLW-2026-2aebdb8547d9b041","UBUNTU-CVE-2026-63317","openSUSE-SU-2026:11369-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Java NLP library","requires_auth":"none","summary":"Attackers can trigger arbitrary class instantiation via crafted model archives or format names, potentially leading to code execution if vulnerable classes are on the classpath.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"opennlp","vendor":"apache"}],"cvss":{"score":5.6,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-470","name":"Use of Externally-Controlled Input to Select Classes or Code"}],"description":"Arbitrary Class Instantiation via XML Feature Generator Descriptor and Format Name in Apache OpenNLP\n\nVersions Affected: \n\n- before 2.5.10\n- before 3.0.0-M5\n\nDescription: \n\nThree code paths in Apache OpenNLP load a class by its fully-qualified name via Class.forName() and invoke its no-arg constructor without any prior validation of the class name or its type. \n\nThe affected paths are: \n\n(1) GeneratorFactory, which reads the class attribute of generator elements in an XML feature generator descriptor; such descriptors are embedded as artifacts in model archives (e.g. TokenNameFinder and POSTagger models) and are parsed during model loading, so an attacker who can supply a crafted model archive controls the class name directly. \n\n(2) StreamFactoryRegistry.getFactory(Class, String), which falls back to interpreting an unregistered format name as the fully-qualified class name of an ObjectStreamFactory; this is exploitable in applications that pass untrusted format names (e.g. exposing the -format parameter of the command-line tooling to external input). \n\n(3) StringInterners, which instantiates the interner implementation named by the opennlp.interner.class system property; this value is normally deployer-controlled, so it is hardened as defense in depth rather than being independently attacker-reachable.\n\nExploitation requires a class with attacker-useful side effects in its static initializer or no-arg constructor (JNDI lookup, outbound network I/O, filesystem access) to be present on the classpath, so this is not drop-in remote code execution. T\n\nMitigation: \n\nUpgrade to a fixed release. \n\nThe fix routes all three paths through ExtensionLoader.instantiateExtension(...), which consults a package-prefix allowlist before Class.forName() is invoked, so a disallowed class is never loaded, initialized, or constructed. \nClasses under the opennlp. prefix remain permitted by default. Deployments that load models referencing feature generator factories, object stream factories, or string interners outside opennlp.* must opt those packages in, either programmatically via ExtensionLoader.registerAllowedPackage(String) before the first model load, or by setting the OPENNLP_EXT_ALLOWED_PACKAGES system property to a comma-separated list of allowed package prefixes. \n\nUsers who cannot upgrade immediately should ensure all model files and format names are sourced from trusted origins and should audit their classpath for classes with side-effecting static initializers or constructors.","ecosystems":["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":"Apache OpenNLP: Arbitrary Class Instantiation in GeneratorFactory via Feature Descriptor XML","id":"CVE-2026-63317","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"deserialization","year":"2026"},"n_packages":1,"n_references":1,"next":{"headline":"Redocly CLI: Arbitrary code execution via Arazzo `$faker` expression using `respect`","id":"CVE-2026-63325"},"packages":[{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.9.5-2.1"],"introduced":["0"],"last_affected":[],"package":"opennlp","purl":"pkg:rpm/opensuse/opennlp\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11369-1"}],"prev":{"headline":"SQL Injection in Payload CMS","id":"CVE-2026-63316"},"products":["Apache OpenNLP"],"published":"2026-07-24","related":[{"cvss_score":10,"headline":"Apache OpenNLP, Apache OpenNLP: ReDoS / stack exhaustion in RegexNameFinderFactory built-in EMAIL and URL patterns","id":"CVE-2026-82617","kev_date_added":null,"published":"2026-09-11"},{"cvss_score":9.8,"headline":"Apache OpenNLP: Arbitrary Class Instantiation via Model Manifest in ExtensionLoader","id":"CVE-2026-42027","kev_date_added":null,"published":"2026-05-04"},{"cvss_score":9.8,"headline":"Improper Restriction of XML External Entity Reference in Apache OpenNLP","id":"CVE-2017-12620","kev_date_added":null,"published":"2017-10-02"},{"cvss_score":9.1,"headline":"Apache OpenNLP: XXE via Dictionary Parsing in DictionaryEntryPersistor","id":"CVE-2026-40682","kev_date_added":null,"published":"2026-05-04"},{"cvss_score":7.5,"headline":"Apache OpenNLP: OOM DoS via Unbounded Array Allocation in SymSpellModelSerializer","id":"CVE-2026-67211","kev_date_added":null,"published":"2026-09-11"},{"cvss_score":7.5,"headline":"Apache OpenNLP: OOM DoS via Unbounded Array Allocation in AbstractModelReader","id":"CVE-2026-42440","kev_date_added":null,"published":"2026-05-04"},{"cvss_score":7.3,"headline":"Apache OpenNLP :: Core :: ML :: LibSVM: Unsafe Java Deserialization in SvmDoccatModel","id":"CVE-2026-43825","kev_date_added":null,"published":"2026-07-06"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-24","vendors":["Apache Software Foundation"]},"summary":"Attackers can trigger arbitrary class instantiation via crafted model archives or format names, potentially leading to code execution if vulnerable classes are on the classpath.","url":"https://insights.sbomify.com/CVE-2026-63317/"}