ppkarwasz commented on code in PR #683:
URL: https://github.com/apache/commons-text/pull/683#discussion_r2240089627


##########
src/conf/security/VEX.cyclonedx.xml:
##########
@@ -0,0 +1,124 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to you under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~      http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+<!--
+  To update this document:
+    1. Increment the `version` attribute in the <bom> element.
+    2. Update the `timestamp` in the <metadata> section.
+-->
+<bom xmlns="http://cyclonedx.org/schema/bom/1.6";
+     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+     xsi:schemaLocation="http://cyclonedx.org/schema/bom/1.6 
https://cyclonedx.org/schema/bom-1.6.xsd";
+     serialNumber="urn:uuid:f70dec29-fc7d-41f2-8c60-97e9075e0e73"
+     version="1">
+
+  <metadata>
+    <timestamp>2025-07-29T12:26:42Z</timestamp>
+    <component type="library" bom-ref="main_component">
+      <group>org.apache.commons</group>
+      <name>commons-text</name>
+      <cpe>cpe:2.3:a:apache:commons_text:*:*:*:*:*:*:*:*</cpe>
+      <purl>pkg:maven/org.apache.commons/commons-text?type=jar</purl>
+    </component>
+    <manufacturer>
+      <name>The Apache Software Foundation</name>
+      <url>https://commons.apache.org</url>
+      <contact>
+        <name>Apache Commons PMC</name>
+        <email>d...@commons.apache.org</email>
+      </contact>
+      <contact>
+        <name>Apache Commons Security Team</name>
+        <email>secur...@commons.apache.org</email>
+      </contact>
+    </manufacturer>
+  </metadata>
+
+  <vulnerabilities>
+    <vulnerability>
+      <id>CVE-2025-48924</id>
+      <references>
+        <reference>
+          <id>GHSA-j288-q9x7-2f5v</id>
+          <source>
+            <url>https://github.com/advisories/GHSA-j288-q9x7-2f5v</url>
+          </source>
+        </reference>
+      </references>
+      <analysis>
+        <state>exploitable</state>
+        <responses>
+          <response>update</response>
+        </responses>
+        <detail>
+          CVE-2025-48924 is exploitable in Apache Commons Text versions 1.5 
and later, but only when all the following conditions are met:
+
+          * The consuming project includes a vulnerable version of Commons 
Text on the classpath.
+            As of version `1.14.1`, Commons Text no longer references a 
vulnerable version of the `commons-lang3` library in its POM file.
+          * Unvalidated or unsanitized user input is passed to the 
`StringSubstitutor` or `StringLookup` classes.

Review Comment:
   Since CVE-2022-42889 the [Commons Text Security 
page](https://commons.apache.org/proper/commons-text/security.html) clearly 
states that unsanitized user input should not be passed to these classes, but 
one never knows how this is used in practice.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to