Skip to content

Fix CVE-2026-6009: add deserialization class filter to remaining entry points (Fixes #587)#588

Open
jmgomez77 wants to merge 1 commit into
Jaspersoft:masterfrom
jmgomez77:fix/cve-2026-6009-upstream
Open

Fix CVE-2026-6009: add deserialization class filter to remaining entry points (Fixes #587)#588
jmgomez77 wants to merge 1 commit into
Jaspersoft:masterfrom
jmgomez77:fix/cve-2026-6009-upstream

Conversation

@jmgomez77
Copy link
Copy Markdown

Fix (CVE-2026-6009): add deserialization class filter to remaining entry points.

Wire DeserializationClassFilter into VirtualizationObjectInputStream.resolveClass() to protect the virtualization deserialization path.
Replace bare ObjectInputStream in JRValueStringUtils.DefaultSerializer with ContextClassLoaderObjectInputStream, which applies the deserialization filter.

These two entry points were not covered by the filter introduced in 7.0.4 (commit 827c2f2), leaving them exploitable even when the filter is enabled.

Additionally, the filter should default to enabled=true (currently false in default.jasperreports.properties) to protect users who have not explicitly opted in.

This PR is submitted for peer-review.

…ry points

Wire DeserializationClassFilter into VirtualizationObjectInputStream.resolveClass()
to protect the virtualization deserialization path.

Replace bare ObjectInputStream in JRValueStringUtils.DefaultSerializer with
ContextClassLoaderObjectInputStream, which applies the deserialization filter.

These two entry points were not covered by the filter introduced in 7.0.4
(commit 827c2f2), leaving them exploitable even when the filter is enabled.

Additionally, the filter should default to enabled=true (currently false in
default.jasperreports.properties) to protect users who have not explicitly
opted in.

Includes unit tests covering all deserialization paths.
@jmgomez77 jmgomez77 changed the title Fix (CVE-2026-6009): add deserialization class filter to remaining entry points Fix #587 (CVE-2026-6009): add deserialization class filter to remaining entry points May 21, 2026
@jmgomez77 jmgomez77 marked this pull request as draft May 21, 2026 09:41
@jmgomez77 jmgomez77 changed the title Fix #587 (CVE-2026-6009): add deserialization class filter to remaining entry points Fix CVE-2026-6009: add deserialization class filter to remaining entry points (Fixes #587) May 21, 2026
@jmgomez77 jmgomez77 marked this pull request as ready for review May 21, 2026 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant