CVE-2026-27206 Zumba Json Serializer has a potential PHP Object Injection via Unrestricted @type in unserialize()

High 8.1 Published Updated

Attackers can achieve remote code execution by injecting malicious JSON into the Zumba Json Serializer library if untrusted input is deserialized.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-27206?

CVE-2026-27206 is a high-severity unsafe deserialization vulnerability in zumba json-serializer, published on 21 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Zumba Json Serializer is a library to serialize PHP variables in JSON format. In versions 3.2.2 and below, the library allows deserialization of PHP objects from JSON using a special @type field. The deserializer instantiates any class specified in the @type field without restriction. When processing untrusted JSON input, this behavior may allow an attacker to instantiate arbitrary classes available in the application. If a vulnerable application passes attacker-controlled JSON into JsonSerializer::unserialize() and contains classes with dangerous magic methods (such as __wakeup() or __destruct()), this may lead to PHP Object Injection and potentially Remote Code Execution (RCE), depending on available gadget chains in the application or its dependencies. This behavior is similar in risk profile to PHP's native unserialize() when used without the allowed_classes restriction. Applications are impacted only if untrusted or attacker-controlled JSON is passed into JsonSerializer::unserialize() and the application or its dependencies contain classes that can be leveraged as a gadget chain. This issue has been fixed in version 3.2.3. If an immediate upgrade isn't feasible, mitigate the vulnerability by never deserializing untrusted JSON with JsonSerializer::unserialize(), validating and sanitizing all JSON input before deserialization, and disabling @type-based object instantiation wherever possible.

Weakness: CWE-502

Which versions are affected by CVE-2026-27206?

2 open source packages ship an affected version, including zumba/json-serializer.

PackageAffectedFixed in
zumba/json-serializer PackagistAll versions3.2.3
zumba/json-serializer PackagistAll versions3.2.3

How do I fix CVE-2026-27206?

Upgrade zumba/json-serializer to 3.2.3 or later.

Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.

Is CVE-2026-27206 being exploited?

There is no known exploitation of CVE-2026-27206 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2026-27206, GHSA-v7m3-fpcr-h7m2, UBUNTU-CVE-2026-27206.

Is CVE-2026-27206 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free