Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-108938 Overview
CVE-2026-108938 affects code-projects Matrimonial System 1.0, a PHP-based web application. The flaw allows unauthenticated remote attackers to access the db/matrimony.sql file through the web root. Exposure of this SQL file reveals database schema details and potentially embedded data, enabling reconnaissance for follow-on attacks. The weakness is classified under [CWE-425] Direct Request (Forced Browsing). A public exploit reference has been published on GitHub.
Critical Impact
Remote unauthenticated attackers can retrieve the matrimony.sql database dump file, exposing schema structure and application data that aid further compromise.
Affected Products
- code-projects Matrimonial System 1.0
- Deployments exposing the db/ directory through the web server
- Instances without access controls on .sql files
Discovery Timeline
- 2026-10-12 - CVE-2026-108938 published to NVD
- 2026-10-13 - Last updated in NVD database
Technical Details for CVE-2026-108938
Vulnerability Analysis
The Matrimonial System 1.0 application ships a database initialization file at db/matrimony.sql inside the web-accessible directory. The web server serves this file without authentication or access restrictions when it is requested directly. An attacker who guesses or discovers the path downloads the full SQL dump, which typically contains table definitions, column names, default accounts, and sample records.
The exposed schema accelerates subsequent injection, credential, or logic attacks against the live database. The issue aligns with [CWE-425] Direct Request, where sensitive resources are reachable without the intended access gate.
Root Cause
The root cause is deployment of raw SQL artifacts within the public web root combined with missing server-side rules to block requests for .sql files. The application does not place database assets outside the document root or require authentication for db/ content.
Attack Vector
An attacker sends a direct HTTP GET request to the /db/matrimony.sql path on a vulnerable host. No credentials, user interaction, or special privileges are required. The server responds with the contents of the SQL file, disclosing the backing database structure and seeded data.
For technical reproduction steps, see the GitHub SQLi Information Disclosure write-up and the VulDB CVE-2026-108938 Entry.
Detection Methods for CVE-2026-108938
Indicators of Compromise
- HTTP GET requests to /db/matrimony.sql or similar paths ending in .sql within access logs.
- Unexpected 200 OK responses for static database artifacts served from the web root.
- Outbound transfers of SQL file content to unfamiliar client IP addresses or automated scanners.
Detection Strategies
- Review web server access logs for requests targeting db/, backup/, install/, or .sql extensions.
- Deploy web application firewall rules that flag or block direct requests for database and backup files.
- Run authenticated vulnerability scans against staging hosts to confirm whether matrimony.sql is reachable.
Monitoring Recommendations
- Alert on repeated 404 or 200 responses for file-extension patterns such as .sql, .bak, and .zip.
- Correlate access-log anomalies with downstream SQL injection or authentication attempts in the same session.
- Baseline normal traffic to the Matrimonial System and flag user agents associated with mass directory enumeration.
How to Mitigate CVE-2026-108938
Immediate Actions Required
- Remove the db/matrimony.sql file from the web root and store it outside any publicly served directory.
- Rotate any credentials, API keys, or default accounts referenced in the exposed SQL dump.
- Audit access logs for prior successful downloads of matrimony.sql and treat affected deployments as leaked.
Patch Information
No vendor patch has been published at the time of writing. Review the VulDB Vulnerability #416762 record and the Code Projects Resource Hub for any updated release of Matrimonial System.
Workarounds
- Configure the web server to deny requests for files matching *.sql, *.bak, and *.sql.gz.
- Restrict access to the db/ directory using server-level authentication or an IP allow list.
- Relocate database initialization files to a path outside the document root during deployment.
# Configuration example
# Apache: block direct access to SQL and backup files
<FilesMatch "\.(sql|bak|sql\.gz|zip)$">
Require all denied
</FilesMatch>
# Nginx equivalent
location ~* \.(sql|bak|sql\.gz|zip)$ {
deny all;
return 403;
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

