{"answers":{"affected":"2 open source packages ship an affected version, including org.apache.uima:uimaj. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-39913 in the wild and no public exploit code.","fix":"Upgrade org.apache.uima:uimaj to 3.5.0 or later.","what":"CVE-2023-39913 is a high-severity unsafe deserialization vulnerability in Apache UIMA Java SDK CPE, published on 8 Nov 2023. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-39913 and fix it if it is affected.\n\nWhat it is: CVE-2023-39913 is a high-severity unsafe deserialization vulnerability in Apache UIMA Java SDK CPE, published on 8 Nov 2023. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-39913 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.uima:uimaj (Maven): affected all versions; fixed in 3.5.0\n- org.apache.uima:uimaj (Maven): affected all versions; fixed in 3.5.0\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-2023-39913/ (Markdown: https://insights.sbomify.com/CVE-2023-39913/index.md)","id":"CVE-2023-39913","markdown":"https://insights.sbomify.com/CVE-2023-39913/index.md","name":"CVE-2023-39913","record":{"aliases":["GHSA-5r8j-qmcm-7g7q","openSUSE-SU-2024:13471-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Java text analysis library","requires_auth":"low_privilege","summary":"Attackers can execute arbitrary code via unsafe deserialization of binary CAS formats in Apache UIMA Java SDK, particularly when using Vinci services or custom CasIOUtils implementations.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"uimaj","vendor":"apache"}],"cvss":{"score":8.8,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"},{"id":"CWE-20","name":"Improper Input Validation"}],"description":"Deserialization of Untrusted Data, Improper Input Validation vulnerability in Apache UIMA Java SDK, Apache UIMA Java SDK, Apache UIMA Java SDK, Apache UIMA Java SDK.This issue affects Apache UIMA Java SDK: before 3.5.0.\n\nUsers are recommended to upgrade to version 3.5.0, which fixes the issue.\n\nThere are several locations in the code where serialized Java objects are deserialized without verifying the data. This affects in particular:\n  *  the deserialization of a Java-serialized CAS, but also other binary CAS formats that include TSI information using the CasIOUtils class;\n  *  the CAS Editor Eclipse plugin which uses the the CasIOUtils class to load data;\n  *  the deserialization of a Java-serialized CAS of the Vinci Analysis Engine service which can receive using Java-serialized CAS objects over network connections;\n  *  the CasAnnotationViewerApplet and the CasTreeViewerApplet;\n  *  the checkpointing feature of the CPE module.\n\nNote that the UIMA framework by default does not start any remotely accessible services (i.e. Vinci) that would be vulnerable to this issue. A user or developer would need to make an active choice to start such a service. However, users or developers may use the CasIOUtils in their own applications and services to parse serialized CAS data. They are affected by this issue unless they ensure that the data passed to CasIOUtils is not a serialized Java object.\n\nWhen using Vinci or using CasIOUtils in own services/applications, the unrestricted deserialization of Java-serialized CAS files may allow arbitrary (remote) code execution.\n\nAs a remedy, it is possible to set up a global or context-specific ObjectInputFilter (cf.  https://openjdk.org/jeps/290  and  https://openjdk.org/jeps/415 ) if running UIMA on a Java version that supports it. \n\nNote that Java 1.8 does not support the ObjectInputFilter, so there is no remedy when running on this out-of-support platform. An upgrade to a recent Java version is strongly recommended if you need to secure an UIMA version that is affected by this issue.\n\nTo mitigate the issue on a Java 9+ platform, you can configure a filter pattern through the \"jdk.serialFilter\" system property using a semicolon as a separator:\n\nTo allow deserializing Java-serialized binary CASes, add the classes:\n  *  org.apache.uima.cas.impl.CASCompleteSerializer\n  *  org.apache.uima.cas.impl.CASMgrSerializer\n  *  org.apache.uima.cas.impl.CASSerializer\n  *  java.lang.String\n\nTo allow deserializing CPE Checkpoint data, add the following classes (and any custom classes your application uses to store its checkpoints):\n  *  org.apache.uima.collection.impl.cpm.CheckpointData\n  *  org.apache.uima.util.ProcessTrace\n  *  org.apache.uima.util.impl.ProcessTrace_impl\n  *  org.apache.uima.collection.base_cpm.SynchPoint\n\nMake sure to use \"!*\" as the final component to the filter pattern to disallow deserialization of any classes not listed in the pattern.\n\nApache UIMA 3.5.0 uses tightly scoped ObjectInputFilters when reading Java-serialized data depending on the type of data being expected. Configuring a global filter is not necessary with this version.","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":true,"headline":"Apache UIMA Java SDK Deserialization of Untrusted Data, Improper Input Validation vulnerability","id":"CVE-2023-39913","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"deserialization","year":"2023"},"n_packages":2,"n_references":2,"next":{"headline":"BER/CER/DER decoder panics on invalid input","id":"CVE-2023-39914"},"packages":[{"ecosystem":"Maven","fixed":["3.5.0"],"introduced":["0"],"last_affected":[],"package":"org.apache.uima:uimaj","purl":null,"source":"GHSA-5r8j-qmcm-7g7q"},{"ecosystem":"Maven","fixed":["3.5.0"],"introduced":["0"],"last_affected":[],"package":"org.apache.uima:uimaj","purl":"pkg:maven/org.apache.uima/uimaj","source":"GHSA-5r8j-qmcm-7g7q"}],"prev":{"headline":"Path traversal in n/a","id":"CVE-2023-39912"},"products":["Apache UIMA Java SDK CPE","Apache UIMA Java SDK Core","Apache UIMA Java SDK Vinci adapter","Apache UIMA Java SDK tools"],"published":"2023-11-08","related":[{"cvss_score":7.5,"headline":"Apache UIMA prior to 3.3.1 has a path traversal vulnerability when extracting (PEAR) archives","id":"CVE-2022-32287","kev_date_added":null,"published":"2022-11-03"}],"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":"total"},"state":"PUBLISHED","updated":"2025-02-13","vendors":["Apache Software Foundation"]},"summary":"Attackers can execute arbitrary code via unsafe deserialization of binary CAS formats in Apache UIMA Java SDK, particularly when using Vinci services or custom CasIOUtils implementations.","url":"https://insights.sbomify.com/CVE-2023-39913/"}