CVE-2023-7330
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 · uneditedRuijie NBR series routers contain an unauthenticated arbitrary file upload vulnerability via /ddi/server/fileupload.php. The endpoint accepts attacker-supplied values in the name and uploadDir parameters and saves the provided multipart file content without adequate validation or sanitization of file type, path, or extension. A remote attacker can upload a crafted PHP file and then access it from the web root, resulting in arbitrary code execution in the context of the web service. Exploitation evidence was observed by the Shadowserver Foundation on 2025-01-14 UTC.
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 confidenceRuijie NBR series routers contain an unauthenticated arbitrary file upload vulnerability in the /ddi/server/fileupload.php endpoint. The affected component accepts attacker-controlled values in the 'name' and 'uploadDir' parameters and stores uploaded multipart file content without validating file type, path, or extension. A remote unauthenticated attacker can upload a crafted PHP file to the web root and execute it, achieving arbitrary code execution in the context of the web service. Shadowserver Foundation observed active exploitation of this vulnerability on 2025-01-14.
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
- Network
- Complexity
- Low
- Privileges
- None
- Authentication
- X
- User interaction
- None
- Scope
- X
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/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:X/AU:X/R:X/V:X/RE:X/U:X
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 Ruijie NBR router exposureDetermine if the Ruijie NBR device management interface is accessible from untrusted networks by scanning for HTTP/HTTPS services on the public IP or testing access to the device's web interface from external networks.Affected if The device management interface is directly accessible from the internet or untrusted networks.
-
Verify fileupload endpoint existsAttempt to access the path /ddi/server/fileupload.php on the Ruijie NBR web server (e.g., curl -I http://<device-ip>/ddi/server/fileupload.php). Check if the endpoint responds (200, 404, or other status).Affected if The endpoint returns any response other than a clear 'not found' 404, indicating the vulnerable script exists on the system.
-
Check for unauthorized PHP files in web rootIf you have administrative access, examine the web root directory (typically /www or /htdocs) for unexpected .php files with names that do not match legitimate router firmware files. Look for files created recently or with random/encoded names.Affected if Unexpected PHP files exist in the web root that were not installed as part of the official firmware.
-
Review access logs for fileupload activityExamine web server access logs (typically stored in /var/log or /ddi/logs) for requests to /ddi/server/fileupload.php, especially with unusual 'name' or 'uploadDir' parameters or requests originating from external IP addresses.Affected if There are logged requests to the fileupload endpoint from untrusted or unknown IP addresses, particularly with multipart file uploads.
-
Compare installed firmware versionAccess the router administration panel and check the firmware version under System Status or Management settings. Compare this version against any vendor advisories for CVE-2023-7330 or contact Ruijie support to confirm if the version is affected.Affected if The installed firmware version has not been patched to address the arbitrary file upload vulnerability.
A Ruijie NBR router is affected if it is directly exposed to untrusted networks, the /ddi/server/fileupload.php endpoint exists, and the firmware version predates available patches for this vulnerability.
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.
From vendor dataApply vendor-supplied patches for Ruijie NBR routers; if no patch is available, disable or block external access to the /ddi/server/fileupload.php endpoint via firewall or WAF rules and consider network segmentation to limit exposure of management interfaces.
- Consultation4.0 h
- Implementation8.0 h
- Testing4.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 $5,408.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2023-7330 — 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-2023-7330 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