CVE-2025-48795
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 · uneditedApache CXF stores large stream based messages as temporary files on the local filesystem. A bug was introduced which means that the entire temporary file is read into memory and then logged. An attacker might be able to exploit this to cause a denial of service attack by causing an out of memory exception. In addition, it is possible to configure CXF to encrypt temporary files to prevent sensitive credentials from being cached unencrypted on the local filesystem, however this bug means that the cached files are written out to logs unencrypted. Users are recommended to upgrade to versions 3.5.11, 3.6.6, 4.0.7 or 4.1.1, which fixes this issue.
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 confidenceApache CXF stores large stream-based messages as temporary files on the local filesystem. A bug causes the entire temporary file to be loaded into memory before being logged, enabling denial of service via out-of-memory exceptions. Additionally, when CXF is configured to encrypt temporary files to protect sensitive credentials, the bug bypasses this protection by writing the files to logs in unencrypted form.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data= 3.5.10= 3.6.5= 4.0.6= 4.1.0CVSS 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
- Network
- Complexity
- High
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- Low
- Availability
- Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
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 Apache CXF versionLocate the CXF jar file (cxf-core-[version].jar) or check the pom.xml dependency version, or run: java -cp 'cxf-core-*.jar' org.apache.cxf.version 2>/dev/null || unzip -p cxf-core-*.jar META-INF/MANIFEST.MF | grep Implementation-VersionAffected if The version is exactly 3.5.10, 3.6.5, 4.0.6, or 4.1.0
-
Determine if stream-based messages with large payloads are processedReview application logs for CXF message handling or check if the application processes large request/response payloads (XML, JSON, or binary streams) through CXF endpointsAffected if The application processes large stream-based messages through CXF that would trigger temporary file creation
-
Verify if CXF temporary file encryption is configuredCheck CXF configuration files (cxf.xml, beans.xml, or application properties) for settings such as org.apache.cxf.streaming.temp.file.encryption.enabled or similar encryption-related properties for temporary filesAffected if CXF is configured to encrypt temporary files (this configuration is bypassed by the vulnerability)
-
Check for memory-related issues in logsReview application logs for OutOfMemoryError exceptions or excessive memory usage coinciding with CXF message processing of large payloadsAffected if OutOfMemoryError exceptions occur when processing large messages through CXF, indicating the entire temp file is being loaded into memory
You are affected if you run Apache CXF exactly version 3.5.10, 3.6.5, 4.0.6, or 4.1.0 AND process large stream-based messages that trigger temporary file creation.
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 Apache CXF to version 3.5.11, 3.6.6, 4.0.7, or 4.1.1 to resolve both the memory exhaustion and encrypted file bypass issues.
3.5.11, 3.6.6, 4.0.7, or 4.1.1 (depending on current major.minor version)
- 1. Identify the current Apache CXF version in use by checking project dependencies (pom.xml, build.gradle, or similar)
- 2. Determine the upgrade path based on current version: if using 3.5.x, upgrade to 3.5.11; if using 3.6.x, upgrade to 3.6.6; if using 4.0.x, upgrade to 4.0.7; if using 4.1.x, upgrade to 4.1.1
- 3. Update the dependency version in the project's build configuration file (e.g., pom.xml: change org.apache.cxf:cxf-core to version 3.5.11, 3.6.6, 4.0.7, or 4.1.1 as appropriate)
- 4. Rebuild and redeploy the application
- 5. Verify the upgrade by checking that CXF version now reports the patched version
- 6. Test that message processing continues to work correctly, especially with large messages that would previously trigger the out-of-memory condition
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation4.0 h
- Implementation4.0 h
- Testing8.0 h
- Review / QA4.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $5,504.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-48795 — 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-48795 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