1 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
2 |
Gentoo Linux Security Advisory GLSA 202301-05 |
3 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
4 |
https://security.gentoo.org/ |
5 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
6 |
|
7 |
Severity: High |
8 |
Title: Apache Commons Text: Arbitrary Code Execution |
9 |
Date: January 11, 2023 |
10 |
Bugs: #877577 |
11 |
ID: 202301-05 |
12 |
|
13 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
14 |
|
15 |
Synopsis |
16 |
======== |
17 |
|
18 |
A vulnerability has been discovered in Apache Commons Text which could |
19 |
result in arbitrary code execution. |
20 |
|
21 |
Background |
22 |
========== |
23 |
|
24 |
Apache Commons Text is a library focused on algorithms working on |
25 |
strings. |
26 |
|
27 |
Affected packages |
28 |
================= |
29 |
|
30 |
------------------------------------------------------------------- |
31 |
Package / Vulnerable / Unaffected |
32 |
------------------------------------------------------------------- |
33 |
1 dev-java/commons-text < 1.10.0 >= 1.10.0 |
34 |
|
35 |
Description |
36 |
=========== |
37 |
|
38 |
Apache Commons Text performs variable interpolation, allowing properties |
39 |
to be dynamically evaluated and expanded. The standard format for |
40 |
interpolation is "${prefix:name}", where "prefix" is used to locate an |
41 |
instance of org.apache.commons.text.lookup.StringLookup that performs |
42 |
the interpolation. The set of default Lookup instances included |
43 |
interpolators that could result in arbitrary code execution or contact |
44 |
with remote servers. These lookups are: - "script" - execute expressions |
45 |
using the JVM script execution engine (javax.script) - "dns" - resolve |
46 |
dns records - "url" - load values from urls, including from remote |
47 |
servers Applications using the interpolation defaults in the affected |
48 |
versions may be vulnerable to remote code execution or unintentional |
49 |
contact with remote servers if untrusted configuration values are used. |
50 |
|
51 |
Impact |
52 |
====== |
53 |
|
54 |
Crafted input to Apache Commons Text could trigger remote code |
55 |
execution. |
56 |
|
57 |
Workaround |
58 |
========== |
59 |
|
60 |
There is no known workaround at this time. |
61 |
|
62 |
Resolution |
63 |
========== |
64 |
|
65 |
All Apache Commons Text users should upgrade to the latest version: |
66 |
|
67 |
# emerge --sync |
68 |
# emerge --ask --oneshot --verbose ">=dev-java/commons-text-1.10.0" |
69 |
|
70 |
References |
71 |
========== |
72 |
|
73 |
[ 1 ] CVE-2022-42889 |
74 |
https://nvd.nist.gov/vuln/detail/CVE-2022-42889 |
75 |
|
76 |
Availability |
77 |
============ |
78 |
|
79 |
This GLSA and any updates to it are available for viewing at |
80 |
the Gentoo Security Website: |
81 |
|
82 |
https://security.gentoo.org/glsa/202301-05 |
83 |
|
84 |
Concerns? |
85 |
========= |
86 |
|
87 |
Security is a primary focus of Gentoo Linux and ensuring the |
88 |
confidentiality and security of our users' machines is of utmost |
89 |
importance to us. Any security concerns should be addressed to |
90 |
security@g.o or alternatively, you may file a bug at |
91 |
https://bugs.gentoo.org. |
92 |
|
93 |
License |
94 |
======= |
95 |
|
96 |
Copyright 2023 Gentoo Foundation, Inc; referenced text |
97 |
belongs to its owner(s). |
98 |
|
99 |
The contents of this document are licensed under the |
100 |
Creative Commons - Attribution / Share Alike license. |
101 |
|
102 |
https://creativecommons.org/licenses/by-sa/2.5 |