Legacy Modernization

RichFaces end of life: which parts of a JSF interface have no fix channel

RichFaces has had no project releases since June 2016. See which parts of one JSF interface still depend on it and when replacing the library is enough.

Three layers of one JSF interface from top to bottom: pages and own components, the RichFaces 4.5.17 layer with its last release in June 2016 highlighted, and JSF on javax.
In this article
  1. What the RichFaces notice says
  2. Which parts of the interface depend on the library
  3. Treat a scanner finding as a lead
  4. Replace the library or change the interface layer
  5. Scope a bounded change to one application
  6. Know which parts need RichFaces

RichFaces end of life came in June 2016: the project sponsors no more releases, and 4.5.17 is the last one. The older 3.3 branch had its last release, 3.3.4, in July 2013. The project ships no fixes for either branch. One community fork of the 4.x line published releases until 2023-01-11, and a commercial source of fixes was not found. The next question is which parts of a JSF interface still depend on the library.

What the RichFaces notice says

RichFaces is a library of user-interface components for pages built on JavaServer Faces (JSF). A fix channel is anyone who still ships corrected library code, on terms they state. This article reports what the project, the National Vulnerability Database (NVD), Red Hat and one fork publish about such channels, and it does not assess your application.

The RichFaces notice of 2016-02-12, the project's announcement posted on the JBoss Developer blog, sets out a release plan. It reads: “releasing a new version of RichFaces 4.5.x roughly every four weeks and that will continue until June 2016, after which we will not sponsor any more releases.”

The same notice says: “Unfortunately Feature Requests and Enhancements are likely to get rejected at this point.” The sentence closes a paragraph about some 800 unresolved issues, written while releases were still planned. The words describe the situation on the date of the notice. The notice does not say how requests are handled after June 2016.

The questions and answers page that the notice links to states the end plainly: “There will be no patches after the end of support.”

The notice speaks only of 4.5.x and does not mention the 3.3 branch. The last 4.5 release, 4.5.17.Final, was announced on 2016-06-22 as the last release of RichFaces. The 3.3.x branch is older. It moved into maintenance mode with 3.3.3.Final, and 3.3.4.Final, from July 2013, is its last release.

What the notice leaves open

The notice sends Red Hat customers to a related product announcement. It is a Red Hat knowledge base article that dates the end of life of JBoss Web Framework Kit to June 2015. The rest of that article is open to subscribers.

In 2018 Red Hat published security advisories for the RichFaces package in JBoss Enterprise Application Platform (EAP) 5.2 and three other products. The other three are JBoss Operations Network 3.3.11, JBoss SOA Platform 5.3.1 and JBoss BRMS 5.3.1. The advisories are dated from 2018-09-10 to 2018-11-13. Two of the EAP 5 advisories list a RichFaces 3.3.1 package, for example RHSA-2018:2664.

Red Hat's end-of-life FAQ for EAP 5 gives 2022-11-30 as the end-of-life date of that product. The advisories name the RichFaces package inside Red Hat products, and none of them names the project's 3.3.4.Final release.

A community fork of the 4.x line, albfernandez/richfaces, publishes on Maven Central under another group, com.github.albfernandez.richfaces, with 4.6.x.ayg versions. Its release notes of 2018-08-21 record the removal of the a4j:mediaOutput component to fix CVE-2018-12532. Its build file targets JSF 2.2 with javax. It has no 3.3.x branch, and its last release, 4.6.21.ayg, is dated 2023-01-11.

Two lanes on one date scale, Branch 3.3.x and Branch 4.x, each with three steps and a shared mark for NVD records, 2018. One accent at the right end shows where no active fix channel is recorded.
Who shipped fixes for each branch after its last project release, and where each lane ends.

For EAP 5, Red Hat's updates end with that product's end-of-life date, 2022-11-30. Apart from them, a commercial source of fixes for the project's releases was not found. The search covered provider pages and three web searches, not the whole market.

The last dated fix channel found on the 3.3.x lane is Red Hat's, with the EAP 5 end-of-life date 2022-11-30. On the 4.x lane it is the fork's last release, 2023-01-11. No active fix channel is recorded for either branch.

Which parts of the interface depend on the library

The library leaves signs in the build and in the pages. Search for these signs. The 4.5.17.Final developer guide describes them, and the project README lists the Maven artifact:

  • Jars richfaces-core, richfaces-a4j and richfaces-rich, or the Maven artifact org.richfaces:richfaces.
  • Page namespaces xmlns:rich and xmlns:a4j, which mark a page that uses the components.
  • The skin parameter org.richfaces.skin in web.xml, searched without regard to case, because the guide also writes it as org.richfaces.SKIN.
  • Own skins in *.skin.properties files and in ECSS style files.

For the 3.3.x branch, the 3.3 guide shows the Maven groups org.richfaces.framework and org.richfaces.ui, the filter org.ajax4jsf.Filter and JSP tags loaded through taglib. The namespace addresses are the same in both branches, so they show only that a page uses RichFaces. The jar names in the deployed build show which branch.

A record is one page for one interface: each part gets a row that says where and how it was read.

Part of the interface Where and how it was read What was found
Pages with rich and a4j namespaces Search of the page sources Intake and review pages
Page with a4j:mediaOutput Search of the page sources One claim document page
Skin web.xml and skin files Custom skin in skin.properties
Custom components tied to RichFaces classes Source search not yet done unknown
Version in the repository Build file of the project 4.5.17.Final
Version in the deployed build Jar names in WEB-INF/lib unknown until read
JSF implementation and level Server libraries JSF 2.2; implementation unknown

The component a4j:mediaOutput generates images, video and sounds on the fly. The fork removed it to fix CVE-2018-12532, so a page that uses it cannot take the fork's fix without changing itself.

Read the version in the build that runs

The version in the repository and the version in the deployed artifact can differ. Record the version from the jars in WEB-INF/lib of the running build, and the place where it was read. The jar names carry the branch and the version.

Treat a scanner finding as a lead

A scanner finding mixes three questions, and each has its own answer. Reachable means that the application can run the component a record names.

Question What answers it What this article says
Is the version old? The notice and the build Settled: no release since 2016 or 2013
Is a known vulnerability attached to it? An NVD record that names the version Three records are listed below
Is the component reachable here? A check of the application Not assessed here

NVD, the public register of known vulnerabilities, has three records whose version range ends at 4.5.17 or at 3.3.4. CVE-2018-12532 covers 4.5.3 through 4.5.17 and was published on 2018-06-18. CVE-2018-12533 covers 3.1.0 through 3.3.4 and was published on 2018-06-18. CVE-2018-14667 covers 3.x through 3.3.4 and was published on 2018-11-06. All three were published after the last releases of both branches.

A scanner report may call the same problem by a tracker number. NVD lists RF-14309 as another name of CVE-2018-12532 and RF-14310 as another name of CVE-2018-12533. Compare a finding with the NVD record, because the label in the report is only a pointer to it.

Replace the library or change the interface layer

Replacing the library comes first. The questions and answers page says there is no direct replacement for RichFaces and that page code has to change. It points to any JSF-based framework that is still active. Regression evidence is therefore part of the result, and unchanged behavior is not promised.

Replacement with JSF kept on javax

A RichFaces alternative stays a library replacement while its documentation names the JSF level and the namespace that the application already runs on. To size the work, inventory the pages, components, skins and custom components.

PrimeFaces documentation shows how to check this. The pages for versions 12 and 13 both list javax with JSF 2.0 to 2.3. The migration guide to version 14 removes JSF 2.2 and makes Java 11 the minimum, and the version 14 page lists JSF 2.3. The version 15 page still lists javax, and the migration guide to version 16 removes it.

An interface on JSF 2.2 therefore stays on javax up to PrimeFaces 13 inclusive. The example checks a condition and chooses no library.

When the interface layer changes

These are checks, and none of them is a default outcome:

  • The replacement needs a JSF level or namespace the application does not run on, such as a 3.3.x interface on JSF 1.2, which none of PrimeFaces 12 to 17 lists.
  • Custom components, skins or page logic depend on RichFaces internals.

Scope a bounded change to one application

When the checks show a replacement that needs another JSF level, or code bound to RichFaces internals, the work becomes a bounded change to one application. It has one interface, one inventory and one acceptance agreed in advance, and Java application modernization services for one JSF interface are scoped the same way.

Production, data and support are not promised automatically, and each is agreed on its own terms.

Record what is known about the interface

The record below summarizes the same fictional interface.

Line What is known Source
Branch and last release Branch 4.x; 4.5.17.Final, June 2016 Project notice
Who ships fixes No active fix channel recorded Project, Red Hat, fork
Version in the deployed build unknown until the jars are read WEB-INF/lib
Parts that hold the library As listed in the dependency record Dependency record
Scanner finding Old: yes; record names it: yes; reachable: unknown Table of questions
Smallest remaining decision Replace the library or change the layer Custom-code search

A different web framework raises a different support question, and you can check a Struts branch that gets no more fixes on its own terms.

Know which parts need RichFaces

A filled-in record shows, for one interface, the branch, who ships its fixes and which parts hold the library. The smallest remaining decision can be that replacing the library is enough. If one application is blocking a platform step, bring the component, version and workflow to discuss the next justified result. Discuss one application once the record is filled in.

Frequently asked questions

When was the last RichFaces release?

RichFaces 4.5.17.Final, announced on 2016-06-22 as the last release of the project, closed the 4.5 branch. The older 3.3.x branch ended earlier, with 3.3.4.Final in July 2013. A community fork of the 4.x line published releases until 2023-01-11.

Does anyone still ship fixes for RichFaces?

The project ships none and says there will be no patches after the end of support. Red Hat published security updates in 2018 for the package inside EAP 5, whose end-of-life date is 2022-11-30. A community fork published releases until 2023-01-11. A commercial source of fixes was not found.

Are RichFaces 3.3.4 and 4.5.17 affected by known vulnerabilities?

NVD names 4.5.17 in CVE-2018-12532, a record for 4.5.3 through 4.5.17. It names 3.3.4 in CVE-2018-12533, a record for 3.1.0 through 3.3.4, and in CVE-2018-14667, a record for 3.x through 3.3.4. A record that names a version does not yet say whether the component is reachable in an application.

Which parts of the interface depend on RichFaces?

Four places show the dependency: page namespaces, RichFaces jars in the deployed build, the skin setting with its skin files, and custom code tied to RichFaces classes. The last stays unknown until the source is searched.

Can the library be replaced while the application stays on its current JSF and javax namespace?

Yes, when the new library's documentation lists the JSF level and the javax namespace the application already runs on. For JSF 2.2 on javax, the PrimeFaces documentation lists both up to version 13. Version 14 removes JSF 2.2, and version 16 drops javax. Page code still changes, so regression evidence is part of the result.

When does the interface layer have to change instead of the library?

When the replacement needs a JSF level or namespace the application does not run on. A 3.3.x interface on JSF 1.2 is one case, because no PrimeFaces version from 12 to 17 lists JSF 1.2. The layer also changes when custom components, skins or page logic depend on RichFaces internals.

Does a scanner finding on RichFaces mean the application is exploitable?

A finding is a lead to verify. It can show that the version is old and that a record names it. Whether the component is reachable in the application is a separate check on the application itself, and the finding alone does not answer it.

How is the RichFaces question different from the Struts support question?

Struts is the web framework an application runs on, and Apache no longer ships fixes for its 2.5 branch. RichFaces is a library of components for the pages of a JSF interface. The Struts question is about one branch of one framework. The RichFaces question starts with which pages, skins and custom components use the library.

Insights

Keep reading

contact us

Share your software ideas with our expert team

Form before footer redesign

What our clients say