Critical XXE Vulnerability in libspring-java Package: CVE-2014-0225

libspring-java Updated 03 Oct 2025

Summary

25/05/2017
N/A
Yes i
High
8.8

UBUNTU-CVE-2014-0225: When processing user provided XML documents, the Spring Framework 4.0.0 to 4.0.4, 3.0.0 to 3.2.8, and possibly earlier unsupported versions did not disable by default the resolution of URI references in a DTD declaration... Affects libspring-java versions < 3.0.6.RELEASE-13ubuntu0.1~esm1. Fixed in 3.0.6.RELEASE-13ubuntu0.1~esm1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The libspring-java package is a core component of the Spring Framework, which is widely used for building enterprise-level applications in Java. It provides comprehensive infrastructure support for developing Java applications, including features for dependency injection, aspect-oriented programming, and transaction management. However, certain versions of this package are vulnerable to an XML External Entity (XXE) attack, which can lead to severe security breaches.

Vulnerability Detail

The vulnerability arises from the Spring Framework versions 4.0.0 to 4.0.4 and 3.0.0 to 3.2.8, which do not disable the resolution of URI references in DTD declarations by default when processing user-provided XML documents. This oversight allows attackers to exploit the application by crafting malicious XML input that can lead to unauthorized access to sensitive data, server-side request forgery (SSRF), and other security risks. The CVSS score for this vulnerability is 8.8, indicating a high severity level.

How To Fix

Minimum fixed version

3.0.6.RELEASE-13ubuntu0.1~esm1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libspring-java

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can disable DTD processing in your XML parser configuration. This can be done by setting the following property in your XML parsing code:

System.setProperty('javax.xml.XMLConstants/property/accessExternalDTD', 'all');

However, this is not a permanent fix and should be followed by an update to the patched version.

Conclusion

The CVE-2014-0225 vulnerability in the libspring-java package poses significant security risks due to its potential for XXE attacks. It is crucial to update to the patched version to mitigate these risks. Users should also consider implementing temporary workarounds while preparing for the update.

See every vulnerability recorded for libspring-java →

Share this vulnerability

FAQ

CVE-2014-0225 is a vulnerability in the Spring Framework that allows for XML External Entity (XXE) attacks due to improper handling of DTD declarations.

The affected versions include Spring Framework 4.0.0 to 4.0.4 and 3.0.0 to 3.2.8.

Exploitation of this vulnerability can lead to unauthorized access to sensitive data, server-side request forgery, and other security breaches.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

If an immediate update is not possible, implement the provided workaround to disable DTD processing in your XML parser until you can apply the patch.

Related vulnerabilities

Recent vulnerabilities recorded for libspring-java.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

3.0.6.RELEASE-13ubuntu0.1~esm1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libspring-java

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback