|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + ~ Licensed to the Apache Software Foundation (ASF) under one or more |
| 4 | + ~ contributor license agreements. See the NOTICE file distributed with |
| 5 | + ~ this work for additional information regarding copyright ownership. |
| 6 | + ~ The ASF licenses this file to you under the Apache License, Version 2.0 |
| 7 | + ~ (the "License"); you may not use this file except in compliance with |
| 8 | + ~ the License. You may obtain a copy of the License at |
| 9 | + ~ |
| 10 | + ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | + ~ |
| 12 | + ~ Unless required by applicable law or agreed to in writing, software |
| 13 | + ~ distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | + ~ See the License for the specific language governing permissions and |
| 16 | + ~ limitations under the License. |
| 17 | + --> |
| 18 | +<!-- |
| 19 | + To update this document: |
| 20 | + 1. Increment the `version` attribute in the <bom> element. |
| 21 | + 2. Update the `timestamp` in the <metadata> section. |
| 22 | +--> |
| 23 | +<bom xmlns="http://cyclonedx.org/schema/bom/1.6" |
| 24 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 25 | + xsi:schemaLocation="http://cyclonedx.org/schema/bom/1.6 https://cyclonedx.org/schema/bom-1.6.xsd" |
| 26 | + serialNumber="urn:uuid:5181c7a1-21fd-48b1-8d7b-285c2204c809" |
| 27 | + version="1"> |
| 28 | + <metadata> |
| 29 | + <timestamp>2025-08-04T11:45:36Z</timestamp> |
| 30 | + <component type="library" bom-ref="main_component"> |
| 31 | + <group>org.apache.commons</group> |
| 32 | + <name>commons-configuration2</name> |
| 33 | + <cpe>cpe:2.3:a:apache:commons_configuration:*:*:*:*:*:*:*:*</cpe> |
| 34 | + <purl>pkg:maven/org.apache.commons/commons-configuration2?type=jar</purl> |
| 35 | + </component> |
| 36 | + <manufacturer> |
| 37 | + <name>The Apache Software Foundation</name> |
| 38 | + <url>https://commons.apache.org</url> |
| 39 | + <contact> |
| 40 | + <name>Apache Commons PMC</name> |
| 41 | + <email>dev@commons.apache.org</email> |
| 42 | + </contact> |
| 43 | + <contact> |
| 44 | + <name>Apache Commons Security Team</name> |
| 45 | + <email>security@commons.apache.org</email> |
| 46 | + </contact> |
| 47 | + </manufacturer> |
| 48 | + </metadata> |
| 49 | + <vulnerabilities> |
| 50 | + <vulnerability> |
| 51 | + <id>CVE-2025-48924</id> |
| 52 | + <references> |
| 53 | + <reference> |
| 54 | + <id>GHSA-j288-q9x7-2f5v</id> |
| 55 | + <source> |
| 56 | + <url>https://github.com/advisories/GHSA-j288-q9x7-2f5v</url> |
| 57 | + </source> |
| 58 | + </reference> |
| 59 | + </references> |
| 60 | + <analysis> |
| 61 | + <state>exploitable</state> |
| 62 | + <responses> |
| 63 | + <response>update</response> |
| 64 | + </responses> |
| 65 | + <detail> |
| 66 | +CVE-2025-48924 **affects** Apache Commons Configuration versions 2.4 and later, but only when **all** of the following conditions are met: |
| 67 | + |
| 68 | +* The application includes a **vulnerable version** of Commons Lang on the classpath. |
| 69 | +* The library is used to parse configuration files from **untrusted sources**. |
| 70 | + |
| 71 | +When these conditions are present, an attacker can trigger an **infinite loop** by submitting a configuration containing a `${const:...}` expression. |
| 72 | + |
| 73 | +### Root Cause |
| 74 | + |
| 75 | +This issue stems from the use of a default `ConfigurationInterpolator`, which delegates string resolution to Commons Text’s `InterpolatorStringLookup`. |
| 76 | +This lookup is exploitable under certain conditions, as detailed in the [Commons Text VEX document](https://raw.githubusercontent.com/apache/commons-text/refs/heads/master/src/conf/security/VEX.cyclonedx.xml). |
| 77 | + |
| 78 | +### Recommended Mitigations |
| 79 | + |
| 80 | +Projects that process untrusted configuration input should: |
| 81 | + |
| 82 | +* **Upgrade Commons Lang** to version 3.18.0 or later. |
| 83 | +* **Restrict `Lookup` classes** used by the `ConfigurationInterpolator` to safe implementations by explicitly configuring them via `Configuration.installInterpolator`. |
| 84 | + |
| 85 | +### References |
| 86 | + |
| 87 | +* [Commons Text VEX document](https://raw.githubusercontent.com/apache/commons-text/refs/heads/master/src/conf/security/VEX.cyclonedx.xml) |
| 88 | + </detail> |
| 89 | + <firstIssued>2025-08-04T11:45:36Z</firstIssued> |
| 90 | + <lastUpdated>2025-08-04T11:45:36Z</lastUpdated> |
| 91 | + </analysis> |
| 92 | + <affects> |
| 93 | + <target> |
| 94 | + <ref>main_component</ref> |
| 95 | + <versions> |
| 96 | + <version> |
| 97 | + <range><![CDATA[vers:maven/>=2.4|<3]]></range> |
| 98 | + <status>affected</status> |
| 99 | + </version> |
| 100 | + </versions> |
| 101 | + </target> |
| 102 | + </affects> |
| 103 | + </vulnerability> |
| 104 | + </vulnerabilities> |
| 105 | + <annotations> |
| 106 | + <annotation> |
| 107 | + <annotator> |
| 108 | + <individual> |
| 109 | + <name>Apache Commons PMC</name> |
| 110 | + <email>dev@commons.apache.org</email> |
| 111 | + </individual> |
| 112 | + </annotator> |
| 113 | + <timestamp>2025-08-04T11:45:36Z</timestamp> |
| 114 | + <text> |
| 115 | + This document provides information about the **exploitability of known vulnerabilities** in the **dependencies** of Apache Commons Text. |
| 116 | + |
| 117 | + # When is a dependency vulnerability exploitable? |
| 118 | + |
| 119 | + Because Apache Commons libraries do **not** bundle their dependencies, a vulnerability in a dependency is only exploitable if **both** of the following conditions are true: |
| 120 | + |
| 121 | + 1. The vulnerable dependency is included in the consuming project. |
| 122 | + 2. Apache Commons Text is explicitly listed as affected by the vulnerability. |
| 123 | + |
| 124 | + # Notes and Limitations |
| 125 | + |
| 126 | + * This VEX document is **experimental** and provided **as-is**. |
| 127 | + The semantics of this document may change in the future. |
| 128 | + * The **absence** of a vulnerability entry does **not** indicate that this component is unaffected. |
| 129 | + * If a version of Text is not listed under the `affects` section of a vulnerability, that version may still be affected or not. |
| 130 | + * Only the **latest major version** of Text is currently assessed for vulnerabilities. |
| 131 | + * The `analysis` field in the VEX file uses **Markdown** formatting. |
| 132 | + </text> |
| 133 | + </annotation> |
| 134 | + </annotations> |
| 135 | +</bom> |
0 commit comments