Skip to content
vetkitChecksChangelogDocumentation

vetkit.java.deserialization.kryo-unregistered

Kryo class registration is disabled, so serialized input can instantiate arbitrary classes.

Last updated:

Suite: Security

java

Kryo class registration is disabled, so serialized input can instantiate arbitrary classes.

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Keep setRegistrationRequired(true) (the Kryo 5 default) and register every class you expect.

Rule pattern example

The engine’s matching pattern, not a confirmed exploit. Metavariables and ellipses describe matching syntax.

$K.setRegistrationRequired(false)

References

Source: packages/engine/rules/sast/java.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.