CVE-2025-33042: Apache Avro Java SDK is Vulnerable to Code Injection
Improper Control of Generation of Code ('Code Injection') vulnerability in Apache Avro Java SDK when generating specific records from untrusted Avro schemas. This issue affects Apache Avro Java SDK: all versions through 1.11.4 and version 1.12.0. Users are recommended to upgrade to version 1.12.1 or 1.11.5, which fix the issue.
Published Feb 13, 2026 · Updated Jun 5, 2026
Affected packages
org.apache.avro:avro-compiler
- Ecosystem
- Maven
- Affected
- = 1.12.0
- Fixed in
- 1.12.1
- Check
mvn dependency:tree -Dincludes=org.apache.avro:avro-compiler
org.apache.avro:avro-compiler
- Ecosystem
- Maven
- Affected
- < 1.11.5
- Fixed in
- 1.11.5
- Check
mvn dependency:tree -Dincludes=org.apache.avro:avro-compiler
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Improper Control of Generation of Code ('Code Injection') vulnerability in Apache Avro Java SDK when generating specific records from untrusted Avro schemas.
This issue affects Apache Avro Java SDK: all versions through 1.11.4 and version 1.12.0.
Users are recommended to upgrade to version 1.12.1 or 1.11.5, which fix the issue.
Credited to levpachmanov.
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-33042
- https://lists.apache.org/thread/fy88wmgf1lj9479vrpt12cv8x73lroj1
- https://github.com/apache/avro/pull/3150
- https://github.com/apache/avro/commit/84bc7322ca1c04ab4a8e4e708acf1e271541aac4
- https://issues.apache.org/jira/browse/AVRO-4053
- https://security.snyk.io/vuln/SNYK-JAVA-ORGAPACHEAVRO-15282783
- https://github.com/pypa/advisory-database/tree/main/vulns/avro/PYSEC-2026-26.yaml
- https://github.com/advisories/GHSA-rp46-r563-jrc7
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
