CVE-2016-1000031
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 Commons FileUpload before 1.3.3 DiskFileItem File Manipulation Remote Code Execution
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 Commons FileUpload before 1.3.3 contains a DiskFileItem deserialization flaw that allows remote attackers to manipulate file uploads and write arbitrary files to the filesystem, potentially achieving remote code execution through malicious serialized objects.
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<= 1.3.2CVSS 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
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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 Commons FileUpload version in useSearch for commons-fileupload JAR files in your application dependencies (pom.xml, build.gradle, lib directories) or classpath, and check the file version in the JAR manifest or filenameAffected if The version is 1.3.2 or earlier, or the version cannot be determined and the library is present
-
Confirm DiskFileItem usage in file upload codeReview application code that handles file uploads and check if DiskFileItem or the standard FileUpload API is used (look for imports like org.apache.commons.fileupload.disk.DiskFileItem or org.apache.commons.fileupload.FileItem)Affected if The application performs file uploads using Apache Commons FileUpload and DiskFileItem is in use (this is the default behavior)
-
Check for deserialization of DiskFileItem objectsSearch codebase for deserialization of DiskFileItem objects: look for ObjectInputStream usage with DiskFileItem, any endpoints accepting serialized DiskFileItem, or code paths that reconstruct DiskFileItem from serialized dataAffected if The application deserializes DiskFileItem objects from untrusted sources (this is the primary exploitation condition)
-
Inspect upload directory configurationReview the application's file upload directory configuration (uploadDir, temporary directory settings, or where uploaded files are stored)Affected if The upload directory is writable and not outside the web root (though this affects impact, not vulnerability existence)
Your environment is affected if Apache Commons FileUpload version 1.3.2 or earlier is in use AND your application deserializes DiskFileItem objects from untrusted input, allowing attackers to write arbitrary files to the filesystem.
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 Commons FileUpload to version 1.3.3 or later; alternatively, validate all uploaded files, restrict upload directories, and disable dangerous file types.
Commons FileUpload 1.3.3 or later (preferably latest 1.5.x stable release)
- Identify all project dependency configuration files (pom.xml, build.gradle, package.json, lib folder, etc.) that reference Apache Commons FileUpload
- Locate the Commons FileUpload dependency declaration and note the current version
- Update the Commons FileUpload dependency version to 1.3.3 or later (recommended: latest stable 1.5.x)
- Rebuild the project to verify the dependency resolves correctly
- Run existing test suites to confirm functionality is unaffected
- Redeploy the updated application
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation4.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,096.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2016-1000031 — 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 sources- issues.apache.org
- www.securityfocus.com
- www.zerodayinitiative.com
- www.tenable.com
- www.tenable.com
- www.tenable.com
- lists.opensuse.org
- www.oracle.com
- issues.apache.org
- lists.apache.org
- lists.apache.org
- security.netapp.com
- www.oracle.com
- www.oracle.com
- www.oracle.com
- www.oracle.com
- www.oracle.com
- www.oracle.com
- www.oracle.com
- www.oracle.com
- www.oracle.com
- www.oracle.com
- www.oracle.com
- www.oracle.com
- nvd.nist.gov
Practitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2016-1000031 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