Java4Shell (CVE-2026-114938) and Azure Functions for Java
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 74/100
Hướng nghiên cứu
Issue mô tả các cờ JVM của Java worker và liên kết đến worker.config.json cùng tài liệu tham khảo dành cho nhà phát triển Java. Trước tiên, hãy kiểm tra các giá trị mặc định và hướng dẫn đó dựa trên thông báo OpenJDK được liên kết. Sau đó, xác nhận các bước giảm thiểu rủi ro được ghi lại và các cài đặt riêng theo gói là chính xác. Hoàn tất khi người đọc có thể biết khi nào worker có thể sử dụng C2, cách giảm mức độ rủi ro và cách xác minh các cờ JVM.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
CVE-2026-114938 is an OpenJDK Base64 decoder bug that can lead to a crash or remote code execution. It affects unpatched Java 17 from 17.0.6 onward, Java 21 and Java 25, on x86-64 CPUs with AVX-512 VBMI. For an attack, malicious Base64 input must reach the affected C2 intrinsic.
Default configuration is not exposed
The Java worker starts the JVM with -XX:+TieredCompilation -XX:TieredStopAtLevel=1, so only the C1 compiler runs. C1 does not call the vulnerable C2 Base64 intrinsic.
- Source: in OpenJDK 17u, 21u and 25u, the built-in C2 compiler calls the vulnerable decoder. C1 uses only intrinsics on an allowlist, and Base64 isn't on it.
- Azure: we tested Microsoft builds on Functions hosts with AVX-512 VBMI. Child JVMs used the worker's default flags or enabled C2.
| Java | Plan | CPU | Worker defaults | C2 enabled |
|---|---|---|---|---|
| 17.0.21 | Flex Consumption | Intel Xeon 8370C | Not used | Used |
| 21.0.13 | Flex / Linux Consumption | EPYC 9V74 / Xeon 8573C | Not used | Used |
| 25.0.5 | Flex Consumption | Intel Xeon 8573C | Not used | Used |
“Used” means the JVM reported using the Base64 decode intrinsic. We did not reproduce memory corruption. Our Premium and Windows samples ran on CPUs without VBMI, but hosts vary. Do not assume a particular CPU across hosting plans.
When you are exposed
JAVA_OPTS and languageWorkers__java__arguments are both added after the worker defaults. Either setting is safe by itself. However, conflicting options in either setting, such as -XX:TieredStopAtLevel=4 or -XX:-TieredCompilation, can enable C2 and make an app potentially vulnerable when the other conditions above are met. _JAVA_OPTIONS can also override the defaults.
What to do
- Update the JDK to a vendor-fixed build when available. For managed runtimes, check Azure's rollout status. Custom containers need a rebuild and redeploy.
- If you changed the JVM options, remove the options that enable C2, or add
-XX:+TieredCompilation -XX:TieredStopAtLevel=1after conflicting options. Preserve your other options. This may lower peak throughput. - To keep C2, add
-XX:-UseBASE64Intrinsicson a JDK that supports it. Base64 decoding may be slower. An unsupported option can prevent startup, so verify it on your runtime. - Check the running worker, where
jcmdis available, withjcmd <pid> VM.versionandjcmd <pid> VM.flags -all. Check for bothTieredStopAtLevel=1andTieredCompilation=true, orUseBASE64Intrinsics=false.
Changing app settings restarts the app. Use languageWorkers__java__arguments for Consumption plans and JAVA_OPTS for Premium and Dedicated plans. See the Java developer reference.
For details, see the OpenJDK advisory and Datadog's analysis.
- Ngôn ngữ chính
- Java
- Star
- 103
- Fork
- 75
- Merge trung bình
- 10 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Azure/azure-functions-java-worker
-
[Feature] Support raw Kafka record (KafkaRecord) binding with Protobuf deserializationCó thể đã có người làm @TsuyoshiUshio đã nhận 208 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 50/100
-
[Feature] Support for reverse propagation of request telemetry tagsCó thể đã có người làm @arnabnandy7 đã nhận 101 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
-
[Feature] Support OpenTelemetry BaggageCó thể đã có người làm @arnabnandy7 đã nhận 101 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
-
mcp-extension
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
Add advanced MCP tool samplesCó thể làm lại được @ahmedmuhsin đã nhận 217 ngày trước và không có pull request nào đang mở. Đang mởmcp-extension
Azure/azure-functions-java-worker#863 · 1 người được giao ·
Tất cả issue của Azure/azure-functions-java-worker
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
tchiotludo/akhq#3438 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Paul-Austin-Oswego-CSC480-HCI521/gift-app#266 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
ome/bioformats#4509 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
module/email Type/Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
ballerina-platform/ballerina-library#9758 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Wikidata-Toolkit/Wikidata-Toolkit#1029 ·