• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Are the ColdFusion2023 updates supposed to update java as well?

Community Beginner ,
Sep 27, 2024 Sep 27, 2024

Copy link to clipboard

Copied

Hi,
  After I upgraded ColdFusion 2023 to the latest version (build 10), the version of Java located in the "jre" folder under the "ColdFusion2023" directory  was still just "17.0.6".   It looks like Java version is supposed to be at version "17.0.10". Are the updates supposed to upgrade Java as well, or do I need to update them separately?
Thanks!

Views

389

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Sep 27, 2024 Sep 27, 2024

Bill: no, the CF updates do not update the Java underlying CF. Only new CF installers do that. And while there has been one for CF 2023 which came out in Oct 2023, offering update 5 pre-installed, sadly it did NOT update the Java version--it remains 17.0.6 as was offered with the original  installer. (I've updated that last sentence since my original answer here minutes ago, as I confirmed that 17.0.6 was indeed what was implemented in both the original May 2023 installer and the new one from Oc

...

Votes

Translate

Translate
Community Expert ,
Sep 27, 2024 Sep 27, 2024

Copy link to clipboard

Copied

Bill: no, the CF updates do not update the Java underlying CF. Only new CF installers do that. And while there has been one for CF 2023 which came out in Oct 2023, offering update 5 pre-installed, sadly it did NOT update the Java version--it remains 17.0.6 as was offered with the original  installer. (I've updated that last sentence since my original answer here minutes ago, as I confirmed that 17.0.6 was indeed what was implemented in both the original May 2023 installer and the new one from Oct 2023.)

 

And yes, that means you need to update the Java underlying CF yourself. That can be simple on the surface, though you do need to be careful about it. I have more on the topic, including steps and links to resources with still more, here: https://www.carehart.org/cfupdate/#java 


/Charlie (troubleshooter, carehart.org)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 27, 2024 Sep 27, 2024

Copy link to clipboard

Copied

very interesting and thanks!  Although the video explaintion on how to upgrade Java may be a problem for me.  It seems like it will leave the old version of Java at D:\ColdFusion\jre.  I believe our scanners will still find this old version of Java and declare it as a vulnerability. 
Do you think I could do this instead?
1)  stop ColdFusion service(s)
2) delete  the "jre" folder under D:\ColdFusion2023  (or temporaliy rename 'jre' to 'jre_bak')
3) extract the lastest Java version (17.0.10)  found at   cfdownload.adobe.com/pub/adobe/coldfusion/java/java17/java17012/jdk-17.0.12_windows-x64_bin.zip  to D:\ColdFusion2023\jre directory
4) Restart the server

and test everything?  Thanks for any assistance you may be able to proved!  🙂
 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 27, 2024 Sep 27, 2024

Copy link to clipboard

Copied

You could. Just understand that:

  • Your scanners will still find the renamed folder, so you'll want to delete that if it's a concern
  • If you do that, you will lose the ability to easily revert to the original jre. But if you're comfortable taking responsibility for all this, you can find the 17.0.6 version at oracle, via links I offer in my resources
  • Otherwise I'd propose you wait a few days before deleting the renamed folder 

/Charlie (troubleshooter, carehart.org)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 27, 2024 Sep 27, 2024

Copy link to clipboard

Copied

Thanks so much!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 27, 2024 Sep 27, 2024

Copy link to clipboard

Copied

Glad to have helped, and thanks for having marked my first reply as the "answer". That's more valuable than many appreciate. 🙂 


/Charlie (troubleshooter, carehart.org)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 27, 2024 Sep 27, 2024

Copy link to clipboard

Copied

@BILL314613570ssy , Like Charlie, I would also answer no to the question whether ColdFusion updates do update Java as well. The Java installation at /coldFusion/jre was the latest Java version when ColdFusion was released. It stays there, irrespective of any subsequent update levels. 

quote

It seems like it will leave the old version of Java at D:\ColdFusion\jre.  I believe our scanners will still find this old version of Java and declare it as a vulnerability. 
Do you think I could do this instead?
1)  stop ColdFusion service(s)
2) delete  the "jre" folder under D:\ColdFusion2023  (or temporaliy rename 'jre' to 'jre_bak')
3) extract the lastest Java version (17.0.10)  found at   cfdownload.adobe.com/pub/adobe/coldfusion/java/java17/java17012/jdk-17.0.12_windows-x64_bin.zip  to D:\ColdFusion2023\jre directory
4) Restart the server

 

By @BILL314613570ssy


No, don't delete it! Leave ColdFusion's in-built Java well alone. There may be vital background processes or dependencies that need it.

The question of your scanner declaring /coldFusion2023/jre a vulnerability is, of course, important. However, I don't think there is a pressing need to be preventive here. It is advisable to treat this as a bridge to cross if and when you get there.  

From what you say, I assume you already know how to get ColdFusion to run on a Java version newer than its own. All it takes is to:

  • Install the new Java Development Kit (LTS release);
    (Please note that, though you mention Java 17.0.10, the download link you mention is for JDK 17.0.12)
  • Edit the file /coldfusion2023/cfusion/bin/jvm-config and change the java.home property accordingly, for example, as follows:

 

java.home=D:\\path\\to\\JDK_directory

 

  • Restart ColdFusion.

 

That's it. 

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 30, 2024 Sep 30, 2024

Copy link to clipboard

Copied

LATEST

@BILL314613570ssy Maybe it would be worth letting Adobe know about vulnerability finding by logging in a new bug at their https://tracker.adobe.com/ site so maybe they would update the Java version with next ColdFusion update? I agree with @BKBK I would not touch the original folder (even if you test everything now, there is no guarantee next ColdFusion update won't look for it at the original location). Once you point your ColdFusion instances at the new JRE, they will not use the original JRE and will no longer be vulnerable. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation