CVE-2025-11226
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedACE vulnerability in conditional configuration file processing by QOS.CH logback-core up to and including version 1.5.18 in Java applications, allows an attacker to execute arbitrary code by compromising an existing logback configuration file or by injecting an environment variable before program execution. A successful attack requires the presence of Janino library and Spring Framework to be present on the user's class path. In addition, the attacker must have write access to a configuration file. Alternatively, the attacker could inject a malicious environment variable pointing to a malicious configuration file. In both cases, the attack requires existing privilege.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceArbitrary code execution vulnerability in logback-core's conditional configuration processing allows attackers with write access to logback configuration files or ability to inject environment variables to execute malicious code when both Janino and Spring Framework are present on the classpath.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Local
- Complexity
- Low
- Privileges
- High
- Authentication
- None
- User interaction
- None
- Scope
- P
CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:P/AU:N/R:X/V:X/RE:M/U:Green
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify logback-core versionLocate the logback-core JAR file in your classpath or dependencies (e.g., in lib/, WEB-INF/lib/, Maven dependencies, or container classpath) and check its version. Common locations: WEB-INF/lib for web apps, target/ for Maven builds, or the application's classpath. Use 'jar -tf logback-core-X.X.X.jar' or inspect your dependency manager output (mvn dependency:tree, Gradle dependencies) to find the exact version number.Affected if The installed version of logback-core is earlier than 1.5.19 (e.g., 1.5.18, 1.5.0, 1.4.x, or 1.3.x series).
-
Check if Janino library is presentSearch for janino JAR files in your deployment (lib/, WEB-INF/lib/, classpath) or in your dependency tree. Common artifact names: janino.jar, janino-complete.jar, or commons-compiler.jar which contains Janino. Look for 'janino' in dependency listings from Maven, Gradle, or your container's lib directory.Affected if Janino library (any janino-*.jar or commons-compiler containing Janino classes) is found on the classpath.
-
Check if Spring Framework is presentSearch for Spring Framework JARs in your deployment or dependency list. Look for artifacts named spring-core, spring-beans, spring-context, or other spring-*.jar files. Use your build tool's dependency tree (mvn dependency:tree, gradle dependencies) to confirm Spring presence.Affected if Any Spring Framework JAR (spring-*.jar) is found on the classpath.
-
Identify logback configuration filesLocate logback.xml, logback.xml.groovy, logback-test.xml, or logback.groovy configuration files in your application's classpath, WEB-INF/classes, or working directory. Check application documentation or startup scripts for custom configuration file locations via system property 'logback.configurationFile'.Affected if Logback configuration files (logback.xml or logback.groovy) exist and are readable/writable by the application process.
You are affected if logback-core version is earlier than 1.5.19 AND both Janino and Spring Framework are present on the classpath, especially if logback configuration files or environment variables are accessible to untrusted users.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade logback-core to version 1.5.19 or later, restrict write access to configuration files, validate environment variables, and remove Janino library if not required.
logback-core version 1.5.19 or later (or latest stable 1.5.x/1.6.x release)
- 1. Identify all Java applications in your environment that use logback-core with Janino and Spring Framework on the classpath.
- 2. Audit the logback configuration files (logback.xml, logback-spring.xml) in your applications for any unauthorized modifications.
- 3. Review environment variables used in your deployment pipelines that could point to logback configuration files.
- 4. Upgrade logback-core to version 1.5.19 or later (or the latest stable 1.5.x/1.6.x release) in all affected applications by updating the dependency in your build configuration (Maven pom.xml, Gradle build.gradle, or equivalent).
- 5. After upgrading, verify that the application starts correctly and logback configuration is loaded properly.
- 6. Ensure that logback configuration files have appropriate file system permissions to prevent unauthorized write access.
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation6.0 h
- Testing6.0 h
- Review / QA3.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,992.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-11226 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-11226 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data