# CVE-2025-33042: avro-compiler RCE — Fixed in 1.12.1

☕

☕ Maven

Not in CISA KEV

HIGH severity

# CVE-2025-33042 — avro-compiler

HIGH [Fix: apache/avro#3150](https://github.com/apache/avro/pull/3150)

CVE-2025-33042 is a high-severity (CVSS 7.3) Code Injection vulnerability in org.apache.avro:avro-compiler. A fix is available for org.apache.avro:avro-compiler — see the affected versions and patch details below.

Apache Avro Java SDK: Code injection on Java generated code

Also known as[GHSA-rp46-r563-jrc7](/vulnerability/GHSA-rp46-r563-jrc7)PYSEC-2026-26

Published

Feb 13, 2026

Updated

Oct 28, 2026

Affected

2 pkgs

Patched

2 / 2

Exploits

None indexed

Exploitation data as of Nov 9, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

## Exploitation Status

### No confirmed exploitation observed yet

-   CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
-   CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for CVE-2025-33042.

## EPSS Exploitation Probability

[via FIRST.org ↗](https://www.first.org/epss/)

0.6%probability of exploitation in next 30 days

Lower Risk\-0.04%

Lower risk than most CVEs51th percentile — riskier than 51% of all scored CVEsHighest risk

0.00%0.39%0.78%1.17%0.1%0.6%May 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from [FIRST.org EPSS](https://www.first.org/epss/).

## How urgent is this, really

## Where this sits among everything scored

## Real-World Exposure

2 pkgs affected

☕`org.apache.avro:avro-compiler`☕`org.apache.avro:avro-compiler`

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.

## Description

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.

## Affected Packages

2 total 2 fixed

Ecosystem

Package

Vulnerable range

Fix

☕Maven

`org.apache.avro:avro-compiler` 

≥ 1.12.0&&< 1.12.1

1.12.1`org.apache.avro:avro-compiler:1.12.1`

☕Maven

`org.apache.avro:avro-compiler` 

all versions

1.11.5`org.apache.avro:avro-compiler:1.11.5`

## Affected Products

1 product · 4 configurations

Application

`avro`apache

< 1.11.5

1 version

1.12.0

## Detection & mitigation playbook

Open-source dependency

1.  ### Detect
    
    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.apache.avro:avro-compiler, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
    
2.  ### Fix
    
    Update org.apache.avro:avro-compiler to 1.12.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2025-33042 is resolved across your whole dependency graph.
    
3.  ### Workarounds
    
    Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.
    

## Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatModerate

Workaround published by Red Hat

> Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Source: [Red Hat security advisory for CVE-2025-33042](https://access.redhat.com/security/cve/cve-2025-33042) (CC BY 4.0)

Product

Fixed in

Advisory

Red Hat build of Quarkus 3.20.6.redhat

`org.apache.avro/avro:1.12.1.redhat-00002`

[RHSA-2026:7109](https://access.redhat.com/errata/RHSA-2026:7109)

Red Hat build of Quarkus 3.27.3.redhat

`org.apache.avro/avro:1.12.1.redhat-00002`

[RHSA-2026:7380](https://access.redhat.com/errata/RHSA-2026:7380)

## Frequently Asked Questions

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.

O3 Security · Impact-Aware SCA

### Is CVE-2025-33042 in your dependencies?

Find it across Maven, including transitive dependencies.

[Scan my dependencies](/book-demo) [How O3 SCA works](/impact-aware-sca)