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-113381 Overview
CVE-2026-113381 is a SQL injection vulnerability affecting Osclass versions up to 8.3.1. The flaw resides in the Item::findUserItems function within oc-includes/osclass/model/Item.php, part of the Item Model Handler component. Attackers can manipulate the sPattern argument to inject arbitrary SQL statements. The vulnerability is remotely exploitable without authentication or user interaction. A public exploit has been disclosed, increasing the risk of opportunistic attacks. The Osclass vendor was contacted prior to disclosure but did not respond, leaving affected installations exposed without an official coordinated patch timeline.
Critical Impact
Unauthenticated remote attackers can inject SQL through the sPattern parameter, potentially exposing or altering classified listings data stored in the Osclass database.
Affected Products
- Osclass versions up to and including 8.3.1
- oc-includes/osclass/model/Item.php (Item Model Handler component)
- Deployments exposing Item::findUserItems to remote input
Discovery Timeline
- 2026-10-20 - CVE-2026-113381 published to the National Vulnerability Database (NVD)
- 2026-10-20 - Last updated in NVD database
Technical Details for CVE-2026-113381
Vulnerability Analysis
The vulnerability is a SQL injection flaw classified under [CWE-74] (Improper Neutralization of Special Elements in Output Used by a Downstream Component). The Item::findUserItems function in oc-includes/osclass/model/Item.php accepts the sPattern argument and incorporates it into a database query without adequate sanitization or parameterization. An attacker can submit crafted input through this parameter to alter query logic, extract records, or modify stored data. Because the attack vector is network-based and requires neither authentication nor user interaction, exploitation can be automated at scale.
Root Cause
The root cause is improper neutralization of special characters in the sPattern input before it reaches the SQL query layer. The Osclass Item Model Handler concatenates user-controlled data into the SQL statement rather than binding it as a parameter. This design allows attacker-supplied SQL fragments to be interpreted as part of the query grammar.
Attack Vector
Exploitation occurs remotely over HTTP against any Osclass instance exposing the vulnerable code path. An attacker crafts a request containing malicious SQL syntax in the sPattern parameter. The server executes the injected statement against the backend database, potentially returning sensitive user listing data or enabling further manipulation. A public proof-of-concept is referenced in the VulDB entry for CVE-2026-113381.
No verified exploit code is reproduced here. Refer to the VulDB vulnerability record #422654 for technical submission details.
Detection Methods for CVE-2026-113381
Indicators of Compromise
- HTTP requests containing SQL metacharacters such as single quotes, UNION SELECT, --, or /* within the sPattern parameter.
- Unexpected database errors or stack traces referencing Item.php or findUserItems in web server logs.
- Anomalous outbound traffic from the Osclass web server after suspicious query activity.
Detection Strategies
- Review web server access logs for repeated requests targeting Osclass item search endpoints with abnormally long or encoded sPattern values.
- Enable MySQL general query logging temporarily to identify malformed statements originating from the Osclass application.
- Deploy web application firewall (WAF) rules that flag SQL injection patterns targeting the sPattern parameter.
Monitoring Recommendations
- Alert on database queries returning unusually large result sets from the oc_t_item table or related schemas.
- Monitor PHP error logs for warnings generated by failed SQL statements inside Item::findUserItems.
- Correlate authentication-free access patterns with spikes in search endpoint traffic to identify automated scanning.
How to Mitigate CVE-2026-113381
Immediate Actions Required
- Restrict public access to the Osclass item search functionality until a patched release is confirmed.
- Place a WAF in front of the Osclass application with rules blocking SQL injection payloads in the sPattern parameter.
- Audit database accounts used by Osclass to ensure they operate with least-privilege permissions.
Patch Information
As of publication, the vendor has not responded to the disclosure, and no official patch for Osclass 8.3.1 is referenced in the advisory. Monitor the VulDB entry for CVE-2026-113381 and the Osclass project repository for forthcoming fixes. Organizations should track upstream commits and apply community-maintained patches that convert concatenated SQL in Item::findUserItems to parameterized queries.
Workarounds
- Apply an input-validation filter upstream that rejects non-alphanumeric characters in the sPattern field where feasible.
- Isolate the Osclass database user so it cannot access tables outside the Osclass schema or execute dangerous functions such as LOAD_FILE.
- Disable or firewall the user-facing item search endpoint for unauthenticated visitors until a verified patch is applied.
# Example ModSecurity rule to block SQL metacharacters in sPattern
SecRule ARGS:sPattern "@rx (?i)(union(\s|/\*.*\*/)+select|--|/\*|;|0x[0-9a-f]+)" \
"id:1026113381,phase:2,deny,status:403,log,msg:'Possible SQLi targeting Osclass CVE-2026-113381'"
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

